/*
Theme Name: Mansion De' Wan
Theme URI: https://mansiondewan.com
Author: Mansion De' Wan
Author URI: https://mansiondewan.com
Description: Boutique hotel theme for Mansion De' Wan — elegant navy & gold design with Thai hospitality warmth.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: mansion-dewan
*/

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --gold:    #C4923F;
  --gold-lt: #D9A85A;
  --navy:    #1C2B3A;
  --navy-lt: #26394D;
  --cream:   #FAF8F4;
  --warm:    #F2EDE4;
  --line:    #E4DDD0;
  --text:    #1C2B3A;
  --sub:     #6B7A8D;
  --white:   #FFFFFF;
  --ff-d: 'Cormorant Garamond', Georgia, serif;
  --ff-b: 'Bai Jamjuree', system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(28,43,58,.12);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-b);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ────────────────────────────────────────────── */
.display {
  font-family: var(--ff-d);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(28,43,58,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196,146,63,.25);
  transition: background .3s;
}

.site-nav .brand {
  font-family: var(--ff-d);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .04em;
}

.site-nav .brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(250,248,244,.75);
  transition: color .2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-book {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: 4px;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  transition: background .2s !important;
}

.nav-book:hover { background: var(--gold-lt) !important; color: var(--navy) !important; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: .45;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,43,58,.3) 0%, rgba(28,43,58,.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 700px;
}

.hero-content .eyebrow { color: var(--gold); margin-bottom: 20px; }

.hero-title {
  font-family: var(--ff-d);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(250,248,244,.75);
  margin-bottom: 40px;
  max-width: 460px;
  margin-inline: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--cream);
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1.5px solid rgba(250,248,244,.5);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Section Common ────────────────────────────────────────── */
.section {
  padding: 96px 48px;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-family: var(--ff-d);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  color: var(--text);
  margin-top: 12px;
}

.section-header p {
  margin-top: 16px;
  color: var(--sub);
  font-size: 15px;
}

/* Dark section */
.section-dark {
  background: var(--navy);
  color: var(--cream);
}

.section-dark .section-header h2 { color: var(--cream); }
.section-dark .section-header p { color: rgba(250,248,244,.65); }

/* ─── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--ff-d);
  font-size: 36px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sub);
  margin-top: 6px;
  display: block;
}

/* ─── Rooms Grid ────────────────────────────────────────────── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28,43,58,.18);
}

.room-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--warm);
}

.room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.room-card:hover .room-thumb img { transform: scale(1.06); }

.room-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
}

.room-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.room-name {
  font-family: var(--ff-d);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.room-desc {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 20px;
  flex: 1;
}

.room-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feat-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 10px;
  background: var(--warm);
  color: var(--navy);
  border-radius: 20px;
}

.room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.room-price {
  font-size: 13px;
  color: var(--sub);
}

.room-price strong {
  font-family: var(--ff-d);
  font-size: 24px;
  color: var(--gold);
}

/* ─── Gallery ───────────────────────────────────────────────── */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gf-btn {
  padding: 9px 22px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 30px;
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  cursor: pointer;
  transition: all .2s;
}

.gf-btn:hover, .gf-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--warm);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,43,58,.55);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .04em;
}

/* ─── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  object-fit: contain;
}

.lb-close {
  position: fixed;
  top: 20px; right: 28px;
  font-size: 32px;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.lb-close:hover { color: var(--gold); }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: 12px 16px;
  background: rgba(28,43,58,.6);
  border: none;
  border-radius: 4px;
  transition: background .2s, color .2s;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: var(--gold); color: var(--navy); }

/* ─── LINE Booking ──────────────────────────────────────────── */
.booking-strip {
  background: var(--navy);
  padding: 72px 48px;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.booking-strip h2 {
  font-family: var(--ff-d);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cream);
  margin-bottom: 16px;
}

.booking-strip p {
  color: rgba(250,248,244,.65);
  margin-bottom: 36px;
  font-size: 15px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: #00B900;
  color: #fff;
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 6px;
  transition: background .2s, transform .15s;
  text-decoration: none;
}

.btn-line:hover { background: #00A300; transform: translateY(-2px); }

.btn-line svg { width: 22px; height: 22px; fill: #fff; }

/* ─── Amenities ─────────────────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.amenity-item {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(196,146,63,.2);
  border-radius: var(--radius);
  transition: background .25s, border-color .25s;
}

.amenity-item:hover {
  background: rgba(196,146,63,.1);
  border-color: var(--gold);
}

.amenity-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.amenity-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--cream);
}

/* ─── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--warm);
}

.about-img img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 {
  font-family: var(--ff-d);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  margin: 12px 0 20px;
}

.about-text p { color: var(--sub); margin-bottom: 16px; }

.about-text .btn-primary { margin-top: 8px; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #111820;
  color: rgba(250,248,244,.7);
  padding: 64px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.footer-brand-name {
  font-family: var(--ff-d);
  font-size: 26px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer-brand-name span { color: var(--gold); }

.footer-tagline { font-size: 13px; margin-bottom: 20px; }

.footer-contact { font-size: 13px; line-height: 1.9; }
.footer-contact a:hover { color: var(--gold); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(250,248,244,.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(250,248,244,.35);
}

/* ─── Floating LINE Button ──────────────────────────────────── */
.float-line {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #00B900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,185,0,.4);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.float-line:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,185,0,.5);
}

.float-line svg { width: 30px; height: 30px; fill: #fff; }

/* ─── Scroll Reveal ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .section { padding: 64px 24px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 16px; }
  .booking-strip { padding: 48px 24px; }
  .site-footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
