/* =====================================================================
   VIÊN MINH ĐĂNG — Tôn tượng & đồ thờ
   Concept: "Tĩnh tại" — nền ngà ấm, mực espresso, nhấn đồng cổ.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Be+Vietnam+Pro:wght@300;400;500;600&display=swap');

:root {
  --paper:      #F4EEE2;
  --paper-2:    #EDE5D5;
  --paper-3:    #E4D9C4;
  --ink:        #221E18;
  --ink-soft:   #554E43;
  --ink-mute:   #8C8171;
  --gold:       #A67C3D;
  --gold-lt:    #C29A5A;
  --gold-deep:  #7E5E2B;
  --line:       rgba(34, 30, 24, 0.14);
  --line-soft:  rgba(34, 30, 24, 0.08);
  --shadow:     0 24px 60px -28px rgba(34, 30, 24, 0.45);
  --shadow-sm:  0 10px 30px -18px rgba(34, 30, 24, 0.5);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Be Vietnam Pro', -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

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

::selection { background: var(--gold); color: var(--paper); }

/* ---------- typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 30px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

section { position: relative; z-index: 2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.9em;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: all 0.5s var(--ease);
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(244, 238, 226, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold-deep); font-family: var(--serif); font-size: 1.15rem;
  flex-shrink: 0;
}
.brand-name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: 0.02em; line-height: 1; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a { font-size: 0.83rem; letter-spacing: 0.04em; color: var(--ink-soft); position: relative; transition: color 0.3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { height: 1.5px; background: var(--ink); transition: all 0.35s var(--ease); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  background:
    radial-gradient(120% 90% at 78% 20%, var(--paper-2) 0%, var(--paper) 55%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  margin: 26px 0 22px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero-lead { font-size: 1.08rem; color: var(--ink-soft); font-weight: 300; max-width: 460px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 54px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.hero-stat .num { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.hero-stat .lbl { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 8px; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--paper-3), var(--paper-2));
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 90px rgba(34,30,24,0.16);
}
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 18px 24px; border-radius: 3px; box-shadow: var(--shadow-sm);
  max-width: 220px;
}
.hero-badge .t { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-deep); }
.hero-badge .d { font-size: 0.76rem; color: var(--ink-mute); margin-top: 4px; }
.hero-ring {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0.25;
  top: -60px; right: -70px; z-index: -1;
}

/* =====================================================================
   MARQUEE TRUST STRIP
   ===================================================================== */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  padding: 40px 30px; text-align: center;
  border-right: 1px solid var(--line-soft);
}
.trust-item:last-child { border-right: none; }
.trust-item .ic { color: var(--gold); margin-bottom: 14px; display: flex; justify-content: center; }
.trust-item .tt { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 6px; }
.trust-item .td { font-size: 0.82rem; color: var(--ink-mute); }

/* =====================================================================
   SECTION HEAD
   ===================================================================== */
.section { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 20px 0 18px; }
.section-head p { color: var(--ink-soft); font-weight: 300; font-size: 1.02rem; }

/* =====================================================================
   STORY (editorial)
   ===================================================================== */
.story { background: var(--ink); color: var(--paper); }
.story .eyebrow { color: var(--gold-lt); }
.story .eyebrow::before, .story .eyebrow::after { background: var(--gold-lt); }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.story-img { position: relative; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-copy h2 { color: var(--paper); font-size: clamp(2rem, 3.6vw, 3.1rem); margin: 22px 0 24px; }
.story-copy h2 em { font-style: italic; color: var(--gold-lt); }
.story-copy p { color: rgba(244,238,226,0.72); font-weight: 300; margin-bottom: 20px; }
.story-quote {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5;
  color: var(--paper); border-left: 2px solid var(--gold); padding-left: 24px; margin: 34px 0;
}

/* =====================================================================
   COLLECTION / SHOP
   ===================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 56px; }
.chip {
  padding: 0.6em 1.3em; font-size: 0.82rem; letter-spacing: 0.03em;
  border: 1px solid var(--line); border-radius: 40px; color: var(--ink-soft);
  transition: all 0.35s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px;
}
.card {
  background: var(--paper-2); border-radius: 4px; overflow: hidden;
  cursor: pointer; transition: all 0.5s var(--ease);
  border: 1px solid transparent;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-soft); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(244,238,226,0.9); backdrop-filter: blur(4px);
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); padding: 5px 11px; border-radius: 30px;
}
.card-view {
  position: absolute; inset: 0; background: rgba(34,30,24,0.4);
  display: grid; place-items: center; opacity: 0; transition: opacity 0.45s var(--ease);
}
.card-view span {
  color: var(--paper); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(244,238,226,0.6); padding: 0.7em 1.5em; border-radius: 2px;
}
.card:hover .card-view { opacity: 1; }
.card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-family: var(--serif); font-size: 1.08rem; line-height: 1.25; }
.card-size { font-size: 0.76rem; color: var(--ink-mute); letter-spacing: 0.04em; }
.card-price { margin-top: auto; padding-top: 12px; font-size: 0.95rem; color: var(--gold-deep); font-weight: 500; }

.shop-more { text-align: center; margin-top: 56px; }

/* =====================================================================
   FLAGSHIP
   ===================================================================== */
.flagship { background: var(--paper-2); overflow: hidden; }
.flagship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.flagship-media { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.flagship-media img { width: 100%; height: 100%; object-fit: cover; }
.flagship h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 20px 0 20px; }
.flagship h2 em { font-style: italic; color: var(--gold-deep); }
.flagship .price-tag { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-deep); margin: 8px 0 26px; }
.flagship p { color: var(--ink-soft); font-weight: 300; margin-bottom: 30px; max-width: 440px; }

/* =====================================================================
   CARE / KNOWLEDGE
   ===================================================================== */
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.care-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 40px 34px; transition: all 0.45s var(--ease);
}
.care-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.care-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold); margin-bottom: 18px; }
.care-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.care-card p { font-size: 0.92rem; color: var(--ink-soft); font-weight: 300; }

/* =====================================================================
   CTA BANNER
   ===================================================================== */
.cta-banner { background: var(--ink); color: var(--paper); text-align: center; padding: 110px 0; }
.cta-banner .eyebrow { color: var(--gold-lt); }
.cta-banner .eyebrow::before, .cta-banner .eyebrow::after { background: var(--gold-lt); }
.cta-banner h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); color: var(--paper); margin: 22px 0 22px; }
.cta-banner h2 em { font-style: italic; color: var(--gold-lt); }
.cta-banner p { color: rgba(244,238,226,0.7); font-weight: 300; max-width: 500px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--paper-2); padding: 90px 0 40px; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer .brand-name { font-size: 1.5rem; }
.footer-about { color: var(--ink-soft); font-weight: 300; font-size: 0.92rem; margin: 20px 0 24px; max-width: 320px; }
.footer-col h4 { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-deep); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-soft); transition: all 0.35s var(--ease);
}
.footer-social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-mute); flex-wrap: wrap; gap: 10px; }

/* =====================================================================
   MODAL (product detail)
   ===================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(20,17,13,0.6); backdrop-filter: blur(6px); }
.modal-box {
  position: relative; background: var(--paper); border-radius: 5px; overflow: hidden;
  max-width: 940px; width: 100%; max-height: 88vh; display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow); z-index: 1; animation: pop 0.5s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-media { background: var(--paper-3); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 50px 46px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-cat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.modal-info h3 { font-size: 2rem; margin-bottom: 10px; }
.modal-size { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 22px; }
.modal-price { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-deep); margin-bottom: 26px; }
.modal-desc { color: var(--ink-soft); font-weight: 300; font-size: 0.94rem; margin-bottom: 30px; }
.modal-desc li { margin-left: 18px; margin-bottom: 6px; }
.modal-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(244,238,226,0.9);
  display: grid; place-items: center; color: var(--ink); transition: all 0.3s;
}
.modal-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }

/* =====================================================================
   FLOATING MESSENGER
   ===================================================================== */
.fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--gold-deep); color: #fff; padding: 14px 20px; border-radius: 40px;
  box-shadow: var(--shadow-sm); font-size: 0.85rem; letter-spacing: 0.02em;
  transition: all 0.4s var(--ease);
}
.fab:hover { background: var(--ink); transform: translateY(-3px); }

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .story-grid { gap: 50px; }
  .hero-grid { gap: 30px; }
}
@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { gap: 0; }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--paper); padding: 30px 32px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-stats { justify-content: space-between; gap: 20px; }
  .story-grid, .flagship-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-img, .flagship-media { max-width: 480px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .care-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .modal-box { grid-template-columns: 1fr; max-height: 90vh; }
  .modal-media { aspect-ratio: 4/3; }
  .modal-info { padding: 34px 28px; }
  .section { padding: 84px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-body { padding: 14px 14px 18px; }
  .card-name { font-size: 0.95rem; }
  .hero-stats { flex-wrap: wrap; }
  .fab span { display: none; }
  .fab { padding: 14px; }
}
