/* Na Navi Baby House — giao diện /baby/ (bố cục theo phong cách sankid.vn, màu theo logo Na Navi) */
:root {
  --brand: #A8695B;          /* nâu hồng đất (logo) — màu nhấn chính */
  --brand-dk: #8C5347;
  --brand-lt: #D9A08F;
  --grad: linear-gradient(45deg, #A8695B, #E7B3A8); /* nhãn thẻ kiểu sankid */
  --bg: #FFF6F1;             /* nền hồng kem nhạt toàn trang */
  --cream: #F3E0D0;          /* kem đào (logo) */
  --pink: #F2C4CE;
  --lav: #C9B8E0;
  --ink: #3E2E2A;
  --ink-2: #6E5750;
  --white: #fff;
  --shadow-card: 2px 2px 20px rgba(0, 0, 0, .11);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }
button { font: inherit; }

.wrap { width: min(1170px, 100% - 30px); margin-inline: auto; }
.sec { padding: 50px 0 40px; }
.sec-tight { padding-bottom: 20px; }

/* Tiêu đề khối: chữ đậm màu nhấn, 2 gạch chân lệch nhau (đúng kiểu sankid) */
.h-sec {
  position: relative; display: inline-block; margin-bottom: 30px;
  font: 700 30px/1.3 var(--sans); color: var(--brand); text-wrap: balance;
}
.h-sec::before, .h-sec::after { content: ""; position: absolute; left: 0; height: 1px; background: var(--brand); }
.h-sec::before { width: 100px; bottom: -4px; }
.h-sec::after { width: 70px; bottom: -8px; }
.sec-intro { margin: -10px 0 26px; color: var(--ink-2); max-width: 760px; }
.sec-intro:empty { display: none; }

/* ---- nút ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border-radius: 99px; border: 2px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn-solid { background: var(--brand); color: var(--white); }
.btn-solid:hover { background: var(--brand-dk); box-shadow: 0 6px 16px -6px var(--brand); }
.btn-line { border-color: var(--brand); color: var(--brand); background: var(--white); }
.btn-pill { border-color: var(--brand); color: var(--brand); font-weight: 700; background: transparent; }
.btn-pill:hover, .btn-line:hover { background: var(--brand); color: var(--white); }
.btn-sm { font-weight: 500; font-size: 15px; padding: 0 20px; }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ================= MENU ================= */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255, 255, 255, .97); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nav-in { height: 100%; width: min(1400px, 100% - 30px); margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.nav-logo { flex: none; display: block; }
.nav-logo img { height: 62px; width: auto; }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-menu > a {
  position: relative; display: flex; align-items: center; height: var(--nav-h);
  font: 600 16px/1 var(--sans); color: rgba(18, 18, 18, .85); text-decoration: none; white-space: nowrap;
}
.nav-menu > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); transform: scaleX(0); transition: transform .25s; }
.nav-menu > a:hover, .nav-menu > a.active { color: var(--brand); }
.nav-menu > a.active::after, .nav-menu > a:hover::after { transform: none; }
.nav-m-cta { display: none; }
.nav-cta { flex: none; min-height: 40px; padding: 0 20px; }
.nav-burger, .nav-call { display: none; }
.nav-shade { display: none; }

@media (max-width: 1100px) { .nav-menu { gap: 18px; } .nav-menu > a { font-size: 15px; } }

@media (max-width: 960px) {
  :root { --nav-h: 70px; }
  .nav-in { justify-content: space-between; gap: 8px; }
  .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-logo img { height: 50px; }
  .nav-cta { display: none; }
  .nav-burger, .nav-call {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--brand); cursor: pointer;
  }
  .nav-burger { gap: 5px; align-content: center; }
  .nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); transition: transform .25s, opacity .25s; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-call { margin-left: auto; }
  .nav-call svg { width: 22px; height: 22px; fill: currentColor; }
  /* Menu trượt từ trái (off-canvas như sankid) */
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; bottom: 0; width: min(300px, 82vw); margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 30px; overflow-y: auto;
    background: var(--white); box-shadow: 4px 0 24px rgba(0, 0, 0, .12);
    transform: translateX(-102%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open .nav-menu { transform: none; visibility: visible; }
  .nav-menu > a { height: auto; min-height: 50px; border-bottom: 1px solid #f1e6e0; font-size: 16px; }
  .nav-menu > a::after { display: none; }
  .nav-m-cta { display: grid; gap: 10px; margin-top: 20px; }
  .nav-shade:not([hidden]) { display: block; position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: rgba(40, 28, 25, .35); }
}

/* ================= BANNER TRƯỢT ================= */
.hero { position: relative; padding: 0; background: var(--white); }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; }
.slider-track::-webkit-scrollbar { display: none; }
.hero-track { --w: min(100%, 1320px); padding-inline: calc((100% - var(--w)) / 2); scroll-padding-inline: calc((100% - var(--w)) / 2); }
.slide { position: relative; flex: 0 0 var(--w); aspect-ratio: 12 / 5; max-height: 560px; width: var(--w); overflow: hidden; scroll-snap-align: center; transition: opacity .4s; }
.hero-track .slide:not(.on) { opacity: .45; }
.slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 44px; text-align: center; color: var(--white); background: linear-gradient(transparent, rgba(60, 35, 30, .5)); }
.slide-title { font: 700 clamp(26px, 3.4vw, 44px)/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.slide-sub { margin-top: 6px; font: italic 500 clamp(15px, 1.6vw, 22px)/1.35 var(--sans); color: #FFE9DE; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.slide-sub:empty { display: none; }
.slider-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--brand); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .25s; }
.hero:hover .slider-arrow { opacity: 1; }
.slider-arrow.prev { left: 16px; } .slider-arrow.next { right: 16px; }
.slider-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slider-dots { display: flex; justify-content: center; gap: 0; }
.slider-dots button { min-width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider-dots button::before { content: ""; width: 18px; height: 5px; border-radius: 5px; background: rgba(168, 105, 91, .3); transition: width .25s, background .25s; }
.slider-dots button.on::before { width: 36px; background: var(--brand); }
.hero .slider-dots, .slider-dots.on-img { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.hero .slider-dots button::before, .slider-dots.on-img button::before { background: rgba(255, 255, 255, .75); }
.hero .slider-dots button.on::before, .slider-dots.on-img button.on::before { background: var(--brand); }

@media (max-width: 700px) {
  .slide { aspect-ratio: 16 / 11; }
  .slide-cap { padding: 40px 14px 34px; }
  .slider-arrow { display: none; }
}

/* ================= GIỚI THIỆU ================= */
.about { padding-top: 60px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.about-body { margin-bottom: 22px; }
.about-slider { position: relative; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-card); }
.aslide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 10 / 7; }
.aslide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-body { font-style: italic; font-size: 17px; line-height: 1.65; }
}

/* ================= THẺ DỊCH VỤ / ALBUM ================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { display: block; text-decoration: none; color: var(--white); }
.card-pic { border: 5px solid var(--white); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 1; background: var(--cream); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s ease; }
.card:hover .card-pic img { transform: scale(1.08); }
.card-label {
  margin-top: 10px; padding: 15px 10px; border-radius: 5px; background: var(--grad);
  font: 700 clamp(16px, 1.7vw, 20px)/1.3 var(--sans); text-align: center; color: var(--white); text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.card:hover .card-label { filter: brightness(1.05); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } .card-label { font-size: 17px; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; gap: 26px; } .card-label { font-size: 20px; } }

/* ================= CONCEPT ================= */
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cc { display: block; text-decoration: none; color: var(--ink); }
.cc-pic { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.cc-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s ease; }
.cc:hover .cc-pic img { transform: scale(1.08); }
.cc-title { margin-top: 10px; padding: 0 6px 10px; font: 500 15px/1.45 var(--sans); text-align: center; }
.cc:hover .cc-title { color: var(--brand); }
@media (max-width: 900px) { .cc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } .cc-title { font-size: 14px; } }

/* ================= ĐÁNH GIÁ ================= */
.rv-track { gap: 30px; padding: 6px 4px 20px; }
.rv {
  position: relative; flex: 0 0 calc((100% - 60px) / 3); scroll-snap-align: start;
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow-card); padding: 26px 20px 22px; text-align: center;
}
.rv-q { width: 26px; height: 20px; margin: 0 auto 12px; fill: var(--brand); }
.rv-pic { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.rv-pic img { width: 100%; height: 100%; object-fit: cover; }
.rv-text { margin-top: 14px; font-size: 14px; color: var(--ink-2); text-align: left; }
.rv-name { margin-top: 14px; font: 600 17px/1.3 var(--sans); }
.rv-slider .slider-dots { margin-top: 6px; }
@media (max-width: 900px) { .rv { flex-basis: calc((100% - 30px) / 2); } }
@media (max-width: 600px) { .rv-track { gap: 16px; } .rv { flex-basis: 100%; } }

/* ================= MẠNG XÃ HỘI ================= */
.social-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.soc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-height: 80px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-card); text-decoration: none; transition: transform .2s; }
.soc:hover { transform: translateY(-2px); }
.soc > svg, .soc > .zalo-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; padding: 11px; fill: var(--white); }
.soc span { display: grid; }
.soc b { font-size: 17px; color: var(--ink); }
.soc small { font-size: 14px; color: var(--ink-2); }
.soc-fb > svg { background: #1877F2; }
.soc-mess > svg { background: linear-gradient(135deg, #0099FF, #A033FF 60%, #FF5C87); }
.zalo-ic { display: grid; place-items: center; background: #0068FF; color: var(--white); font: 700 12px/1 var(--sans); padding: 0 !important; }
@media (max-width: 800px) { .social-row { grid-template-columns: 1fr; gap: 12px; } }

/* ================= GÓC CHIA SẺ ================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post { display: block; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 6px rgba(0, 0, 0, .1); text-decoration: none; transition: box-shadow .25s, transform .25s; }
.post:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); transform: translateY(-3px); }
.post-pic { position: relative; aspect-ratio: 16 / 10; background: var(--cream); }
.post-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.post-date { position: absolute; top: 12px; left: 12px; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-content: center; text-align: center; line-height: 1; }
.post-date b { font-size: 15px; }
.post-date small { font-size: 10px; margin-top: 2px; }
.post-body { padding: 16px 18px 20px; }
.post-body h3 { font: 700 17px/1.4 var(--sans); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid rgba(0, 0, 0, .08); }
.post-body p { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post:hover h3 { color: var(--brand); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ================= FOOTER ================= */
.foot { position: relative; margin-top: 40px; background: linear-gradient(160deg, #F2C9C0 0%, #EFC1C9 55%, #E9C9DD 100%); color: var(--ink); }
.anchor { position: absolute; top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 30px; padding: 40px 0 30px; }
.foot-logo { height: 56px; width: auto; margin-bottom: 16px; background: rgba(255, 255, 255, .7); border-radius: 10px; padding: 4px 10px; }
.foot h4 { font: 700 16px/1.3 var(--sans); text-transform: uppercase; margin: 0 0 14px; }
.foot-col h4:not(:first-child) { margin-top: 22px; }
.foot-col > .foot-logo + h4 { margin-top: 0; }
.foot p { margin-bottom: 10px; font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--brand-dk); text-decoration: underline; }
.foot-note { font-size: 13px !important; color: var(--ink-2); }
.foot-note:empty { display: none; }
.foot-link { font-weight: 700; word-break: break-word; }
.foot-menu { list-style: none; padding: 0; }
.foot-menu a { display: flex; align-items: center; min-height: 36px; font-size: 14px; }
.foot-soc { display: flex; gap: 10px; margin-top: 16px; }
.foot-soc a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--white); }
.foot-soc a:hover { background: var(--brand-dk); color: var(--white); text-decoration: none; }
.foot-soc svg { width: 20px; height: 20px; fill: currentColor; }
.foot-soc .z b { font-size: 11px; }
.price-list { display: grid; gap: 12px; }
.price { display: flex; gap: 12px; align-items: center; min-height: 64px; }
.price img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 2px solid var(--white); }
.price span { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.price em { font-style: normal; font-weight: 700; color: var(--brand-dk); }
.foot-copy { margin: 0 !important; padding: 16px 15px calc(16px + env(safe-area-inset-bottom)); text-align: center; background: rgba(168, 105, 91, .55); color: var(--white); font-size: 14px !important; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ================= NÚT NỔI ================= */
.fab { position: fixed; z-index: 60; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.fab a { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--white); text-decoration: none; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); }
.fab a::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: inherit; opacity: .3; z-index: -1; animation: fab-pulse 2s infinite; }
.fab svg { width: 24px; height: 24px; fill: currentColor; }
.fab b { font: 700 12px/1 var(--sans); }
.fab-fb { background: #1877F2; }
.fab-mess { background: linear-gradient(135deg, #0099FF, #A033FF 60%, #FF5C87); }
.fab-mess::before { background: #A033FF !important; }
.fab-zalo { background: #0068FF; }
.fab-call { background: var(--brand); }
.fab-call svg { animation: fab-ring 1.6s infinite; }
@keyframes fab-pulse { 0% { transform: scale(.85); opacity: .45; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
@keyframes fab-ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-8deg); } }
.to-top { position: fixed; z-index: 60; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .fab { right: 10px; gap: 14px; } .fab a { width: 46px; height: 46px; } }

/* ---- hiện dần khi cuộn tới ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .fab a::before, .fab-call svg { animation: none; } }
body.is-edit .fab, body.is-edit .to-top { display: none; }
