/*
Theme Name: Bản Mơ Sanctuary
Theme URI: https://banmohotel.com/
Author: Bản Mơ
Description: Theme khách sạn boutique chuyển thể từ bộ giao diện Stitch, tích hợp quản lý phòng và đặt phòng bằng Secure Custom Fields.
Version: 1.0.0
Text Domain: banmo
*/

:root {
  --surface: #fbf9f5;
  --linen: #f7f3ed;
  --sand: #e8dfd3;
  --wood: #2b1d16;
  --muted: #745853;
  --primary: #9a4100;
  --terracotta: #c85a17;
  --pine: #2c402e;
  --white: #fff;
  --shadow: 0 18px 45px rgba(43, 29, 22, .12);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--wood); background: var(--surface); font: 400 15px/1.65 var(--sans); }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: 96px; }
.container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.site-main { min-height: 60vh; padding-top: 78px; }
.section { padding: 88px 0; }
.section-soft { background: var(--linen); }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.display, h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.12; }
.display { font-size: clamp(42px, 6vw, 74px); }
h1 { font-size: clamp(38px, 5vw, 62px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 25px; }
.lead { color: #574238; font-size: 18px; line-height: 1.75; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 10px; background: var(--terracotta); color: #fff; font: 700 14px var(--sans); cursor: pointer; transition: .2s ease; }
.button:hover { background: var(--primary); transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(200,90,23,.3); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .7; transform: none; }
.button-outline { border: 1px solid var(--wood); background: transparent; color: var(--wood); }
.button-outline:hover { background: var(--wood); color: #fff; }
.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; border-bottom: 1px solid rgba(232,223,211,.75); background: rgba(251,249,245,.92); backdrop-filter: blur(15px); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-name { display: block; font: 600 23px/1 var(--serif); }
.brand-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 8px 11px; border-radius: 8px; color: #574238; font-size: 13px; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); background: #efeeea; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.hotline { font-size: 13px; font-weight: 700; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--wood); font-size: 27px; cursor: pointer; }
.menu-toggle:hover { background: var(--linen); }
.hero { position: relative; min-height: 720px; display: grid; align-items: center; color: white; background: linear-gradient(90deg, rgba(34,25,19,.72), rgba(34,25,19,.1)), var(--hero) center/cover; }
.hero-content { max-width: none; padding: 110px 0 155px; }
.hero-content > h1 { max-width: 750px; }
.hero .eyebrow { color: #ffdbcb; }
.hero p { max-width: 610px; font-size: 18px; }
.booking-bar { position: absolute; right: 0; bottom: 42px; left: 0; }
.booking-form { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 12px; padding: 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; background: rgba(247,243,237,.95); box-shadow: var(--shadow); color: var(--wood); }
.booking-form > .button { align-self: end; min-height: 48px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { color: #8a7267; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--sand); border-radius: 8px; background: #fff; color: var(--wood); font: 500 14px var(--sans); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(200,90,23,.1); outline: 0; }
.field textarea { min-height: 100px; resize: vertical; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.split-media { min-height: 570px; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--sand); }
.stat strong { display: block; color: var(--primary); font: 600 28px var(--serif); }
.stat span { color: var(--muted); font-size: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head p { max-width: 570px; margin: 8px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { overflow: hidden; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--sand); border-radius: 18px; background: #fff; transition: .25s ease; }
.card > a { display: block; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e4e2de; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 15px; left: 15px; padding: 7px 11px; border-radius: 999px; background: rgba(251,249,245,.92); color: var(--wood); font-size: 11px; font-weight: 700; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.card-body > p { overflow-wrap: anywhere; }
.meta { color: #8a7267; font-size: 12px; }
.card h3 { margin: 8px 0; }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.price { color: var(--terracotta); font-size: 21px; font-weight: 700; }
.offers { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 24px; }
.offer { min-height: 420px; display: flex; align-items: end; padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(0deg, rgba(35,24,17,.85), rgba(35,24,17,.05)), var(--image) center/cover; }
.offer p { color: rgba(255,255,255,.85); }
.cta { padding: 65px; border-radius: 26px; background: var(--wood); color: #fff; text-align: center; }
.cta p { color: #ddc1b3; }
.site-footer { padding: 70px 0 26px; background: #efeae2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 45px; }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 9px; color: #574238; overflow-wrap: anywhere; }
.newsletter-form { display: flex; align-items: end; gap: 8px; }
.newsletter-form .field { flex: 1; }
.newsletter-form .button { flex: 0 0 auto; }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--sand); color: #745853; font-size: 12px; }
.page-hero { padding: 95px 0 70px; background: var(--linen); text-align: center; }
.page-hero p { max-width: 720px; margin: 18px auto 0; }
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post-card { overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--sand); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-content { padding: 23px; }
.post-card h2 { font-size: 26px; margin: 8px 0 12px; }
.post-card:only-child { grid-column: 1/-1; display: grid; width: min(860px, 100%); grid-template-columns: 1.1fr 1fr; margin-inline: auto; }
.post-card:only-child > a { min-height: 100%; }
.post-card:only-child img { height: 100%; aspect-ratio: auto; }
.article { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0; }
.article-header { margin-bottom: 34px; text-align: center; }
.article-cover { width: min(1120px, calc(100% - 32px)); max-height: 650px; margin: 0 auto; border-radius: 22px; object-fit: cover; }
.article-content { font-size: 17px; }
.article-content h2 { margin-top: 42px; }
.article-content img { margin: 30px auto; border-radius: 16px; }
.room-hero { padding: 55px 0; }
.room-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 30px; }
.room-gallery img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; border-radius: 16px; }
.room-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 55px; align-items: start; }
.amenities { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding: 0; list-style: none; }
.amenities li { padding: 13px 15px; border-radius: 10px; background: var(--linen); }
.booking-card { position: sticky; top: 105px; padding: 27px; border: 1px solid var(--sand); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.booking-card .field { margin-bottom: 12px; }
.notice { display: none; margin: 12px 0; padding: 11px; border-radius: 8px; background: #e8f3e8; color: var(--pine); }
.pagination { margin-top: 38px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 13px; border-radius: 8px; background: var(--linen); }
.pagination .current { background: var(--wood); color: #fff; }
@media (max-width: 1050px) {
  .main-nav { display: none; position: absolute; top: 78px; right: 20px; left: 20px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .menu-toggle { display: block; }
  .hotline { display: none; }
  .booking-form { grid-template-columns: repeat(2,1fr); }
  .split { gap: 38px; }
  .cards, .posts { grid-template-columns: repeat(2,1fr); }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer:first-child { grid-column: 1/-1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1/-1; }
}
@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(100% - 32px, 1280px); }
  .site-main { padding-top: 68px; }
  .header-inner { height: 68px; }
  .main-nav { top: 68px; }
  .brand-name { font-size: 20px; }
  .brand img { width: 40px; height: 40px; }
  .header-actions .button { display: none; }
  .hero { min-height: 0; display: block; padding-bottom: 24px; }
  .hero-content { padding: 80px 0 32px; }
  .booking-bar { position: static; }
  .booking-form { grid-template-columns: 1fr 1fr; padding: 14px; }
  .booking-form .button { grid-column: 1/-1; }
  .section { padding: 62px 0; }
  .split, .room-layout { grid-template-columns: 1fr; }
  .split-media { min-height: 390px; }
  .section-head { align-items: start; flex-direction: column; }
  .cards, .posts, .offers { grid-template-columns: 1fr; }
  .post-card:only-child { display: block; grid-column: auto; }
  .post-card:only-child img { height: auto; aspect-ratio: 16/10; }
  .offer:first-child { grid-column: auto; }
  .offer { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1/-1; }
  .copyright { flex-direction: column; }
  .room-gallery { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .cta { padding: 45px 22px; }
}
@media (max-width: 480px) {
  .booking-form { grid-template-columns: 1fr; }
  .booking-form .button { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid, .amenities { grid-template-columns: 1fr; }
  .footer-grid > * { grid-column: auto !important; }
  .newsletter-form { align-items: stretch; flex-direction: column; }
  .newsletter-form .button { width: 100%; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .card-footer .button { width: 100%; }
}
