/* ==========================================================================
   Giá Vàng Ngọc Thẩm — style.css
   Phong cách theo ngoctham.com, tông xanh dương thay cho đỏ yên chi.
   ========================================================================== */

:root {
  --primary: #0b3d82;        /* xanh dương chủ đạo (thay #a2041b) */
  --primary-dark: #072a5c;
  --primary-soft: #e8f0fb;   /* nền nhạt (thay #FFF4E8) */
  --gold: #fecb8b;           /* vàng đồng giữ từ thương hiệu gốc */
  --gold-deep: #f8c868;
  --gold-text: #9a6a1c;      /* vàng đậm, đủ tương phản trên nền trắng */
  --up: #157347;
  --down: #c0262d;
  --text: #3e3d42;
  --muted: #6f6f6f;
  --line: #e5e5e5;
  --bg-soft: #f7f7f7;
  --white: #ffffff;

  --font-sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --font-display: "Lora", "Times New Roman", serif;

  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; color: var(--primary-dark); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1032px; /* 1000px nội dung + 2 x 16px lề; mọi khối dùng chung bề rộng này */
  margin: 0 auto;
  padding: 0 16px;
}

.center { text-align: center; }
.center .hero__actions { justify-content: center; }

/* ---------- Header: chỉ có logo ---------- */
.site-header { padding: 18px 0; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); }
.logo:hover { color: var(--primary); }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .08em;
}
.logo__sub {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--gold-text);
  text-transform: uppercase;
  margin-top: 3px;
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .2s, color .2s;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--primary-dark); }
.btn--gold:hover { background: var(--gold-deep); color: var(--primary-dark); }
.btn--outline { border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--primary); }

/* ---------- Hero trang chủ ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(254,203,139,.18), transparent 45%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 72px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--gold-text); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 46px;
  color: var(--white);
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: rgba(255,255,255,.85); max-width: 520px; font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
}

.quote-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.quote-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 6px;
}
.quote-card__head h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.quote-card__head small { color: var(--muted); font-size: 12px; }
.quote-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.quote-row:last-of-type { border-bottom: 0; }
.quote-row__name { font-weight: 600; color: var(--primary-dark); }
.quote-row__price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.quote-row__price small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); text-transform: uppercase; }
.quote-card__foot { margin: 14px 0 0; font-size: 13px; }

/* ---------- Section chung ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--primary-soft); }
.section--gray { background: var(--bg-soft); }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 10px;
}
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold-deep);
  margin: 18px auto 0;
}

/* ---------- Bảng giá vàng ---------- */
.price-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-box__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  background: var(--primary);
  color: var(--white);
}
.price-box__head h2 {
  color: var(--gold);
  margin: 0;
  font-size: 22px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.price-box__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.price-box__meta span { color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }
.price-box__meta strong { color: var(--white); margin-left: 6px; }
.price-box__note {
  margin: 0;
  padding: 14px 28px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th,
.price-table td { padding: 16px 28px; text-align: left; }
.price-table thead th {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-bottom: 1px solid var(--line);
}
.price-table tbody tr + tr { border-top: 1px solid var(--line); }
.price-table td:first-child { font-weight: 600; color: var(--primary-dark); }
.price-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.price-table .num--sell { color: var(--primary); }
.change { font-size: 13px; color: var(--muted); }
.change--up { color: var(--up); }
.change--down { color: var(--down); }

/* ---------- Lưới thẻ ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3,
.card__title { font-size: 18px; }
.card p:last-child { margin-bottom: 0; }

.stats { margin: 28px 0; }
.stat { text-align: center; padding: 12px; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, rgba(254,203,139,.55), transparent 55%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: grid;
  place-items: center;
  color: var(--gold);
}
.split__art svg { width: 38%; height: auto; }

/* ---------- Dải kêu gọi ---------- */
.cta { background: var(--primary-dark); color: var(--white); padding: 56px 0; }
.cta .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 { color: var(--white); font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0 0 6px; }
.cta p { margin: 0; color: rgba(255,255,255,.75); }
.cta__phone { font-size: 30px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.cta__phone:hover { color: var(--white); }

/* ---------- Banner trang con ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 48px 0;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  color: var(--white);
  margin: 0 0 8px;
}
.page-hero p { margin: 0; color: rgba(255,255,255,.85); max-width: 720px; }
.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.5); }
.breadcrumb a { color: var(--gold); }
.breadcrumb li[aria-current] { color: rgba(255,255,255,.8); }

/* ---------- Bài viết ---------- */
.prose { font-size: 16px; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  margin-top: 1.8em;
  scroll-margin-top: 16px;
}
.prose .price-box { margin: 20px 0 8px; }
.prose .price-table th,
.prose .price-table td { padding: 12px 18px; }
.prose .faq { margin-top: 8px; }

.toc {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.toc__title { font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }

.disclaimer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--gold-deep);
  transform: rotate(45deg);
}

/* ---------- Dòng thời gian ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 32px; padding: 0 0 26px; position: relative; }
.timeline li::after {
  content: "";
  position: absolute;
  left: 66px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--gold-deep);
  transform: rotate(45deg);
}
.timeline__year { font-family: var(--font-display); font-size: 20px; color: var(--primary); font-weight: 600; line-height: 1.2; }
.timeline p { margin: 0; }

/* ---------- Cửa hàng ---------- */
.region { margin-bottom: 48px; }
.region:last-child { margin-bottom: 0; }
.region__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.region__title small { font-family: var(--font-sans); font-size: 13px; color: var(--muted); }

.region-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.region-nav a {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
}
.region-nav a:hover { border-color: var(--primary); color: var(--primary); }

.store { display: flex; flex-direction: column; }
.store h3 { font-size: 17px; margin-bottom: 10px; }
.store dl { margin: 0 0 18px; font-size: 14px; }
.store dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
.store dd { margin: 2px 0 0; }
.store .btn { margin-top: auto; align-self: flex-start; padding: 9px 18px; font-size: 12px; }

/* ---------- Hỏi đáp ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  color: var(--primary-dark);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.75); font-size: 14px; }
.footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer__title {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--gold); }
.footer .logo { color: var(--white); margin-bottom: 18px; }
.footer .logo__sub { color: var(--gold); }
.footer__company { color: var(--white); font-weight: 600; margin-bottom: 8px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer__social a {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: 12px;
}
.footer__social a:hover { border-color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero .container,
  .split,
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .hero h1 { font-size: 34px; }

  .section { padding: 52px 0; }
  .section-title h2,
  .heading { font-size: 26px; }
  .page-hero h1 { font-size: 30px; }
  .prose h2 { font-size: 22px; }

  .price-table th,
  .price-table td,
  .prose .price-table th,
  .prose .price-table td { padding: 12px 14px; }
  .price-box__head,
  .price-box__note { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 560px) {
  .grid--4,
  .footer__main { grid-template-columns: 1fr; }
  .quote-card { padding: 20px; }
  .quote-row { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .quote-row__name { grid-column: 1 / -1; }
  .quote-row__price { text-align: left; }
  .price-table { font-size: 14px; }
  .timeline::before { left: 52px; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 24px; }
  .timeline li::after { left: 48px; }
  .timeline__year { font-size: 17px; }
  .cta__phone { font-size: 26px; }
}
