/* ═══════════════════════════════════════════════════════════
   CAPTAINS TOWN — styles.css v2
   Stack: GSAP 3.15 + Lenis + Vanilla JS
   Design: Cinematic Dark · Bebas Neue × Cormorant × Jost
   ═══════════════════════════════════════════════════════════ */

/* 0. SVG ICON SYSTEM — global icon rules */
svg use { pointer-events: none; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-icon svg { color: var(--brand); }
.c-icon { color: var(--brand); }
/* Port-bg fills its container */
.port-bg { position: absolute; inset: 0; }
.port-bg svg { width: 100%; height: 100%; display: block; }
/* Blog thumb fills */
.blog-thumb svg { width: 100%; height: 100%; display: block; }
/* About img box fills */
.about-img-box svg { position: absolute; inset: 0; }

/* 1. TOKENS */
:root {
  --brand:        #b52828;
  --brand-dark:   #8a1c1c;
  --brand-glow:   rgba(181, 40, 40, 0.18);
  --accent:       #c9a55a;
  --accent-dim:   rgba(201,165,90,.12);

  --bg:           #060606;
  --surface:      #0d0d0d;
  --surface-2:    #141414;
  --surface-3:    #1c1c1c;
  --dark:         #030303;

  --text:         #eeeeee;
  --text-2:       #888888;
  --text-3:       #3d3d3d;
  --border:       #181818;
  --border-2:     #242424;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Lora', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Be Vietnam Pro', system-ui, sans-serif;

  --fs-xs:   0.70rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.2rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.4rem;
  --fs-4xl:  3rem;
  --fs-hero: clamp(3.8rem, 9.5vw, 8.5rem);
  --fs-display: clamp(5rem, 14vw, 13rem);

  --sp-1:0.25rem; --sp-2:0.5rem;  --sp-3:0.75rem; --sp-4:1rem;
  --sp-6:1.5rem;  --sp-8:2rem;    --sp-10:2.5rem; --sp-12:3rem;
  --sp-16:4rem;   --sp-20:5rem;   --sp-24:6rem;   --sp-32:8rem;

  --r-sm: 2px; --r-md: 4px; --r-lg: 8px; --r-pill: 999px;

  --shadow-brand: 0 0 40px rgba(181,40,40,.2);
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 0.3s;
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: none;
  text-wrap: balance;
}
p { color: var(--text-2); line-height: 1.8; }

.serif {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brand);
  flex-shrink: 0;
}

/* 4. LAYOUT */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-header { margin-bottom: clamp(32px, 4vw, 56px); }

/* ─────────────────────────────────────────────
   CURSOR
───────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease),
              border-color .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.cursor-ring.hovering {
  width: 60px; height: 60px;
  border-color: var(--brand);
  background: rgba(181,40,40,.08);
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button { cursor: auto; }
}

/* ─────────────────────────────────────────────
   FILM GRAIN
───────────────────────────────────────────── */
.grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.045;
  animation: grain .4s steps(1) infinite;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  will-change: transform;
}
@keyframes grain {
  0%  { transform: translate(0,0); }
  10% { transform: translate(-4%,-8%); }
  20% { transform: translate(-14%,4%); }
  30% { transform: translate(6%,-22%); }
  40% { transform: translate(-4%,24%); }
  50% { transform: translate(-14%,9%); }
  60% { transform: translate(14%,0%); }
  70% { transform: translate(0%,14%); }
  80% { transform: translate(2%,30%); }
  90% { transform: translate(-9%,9%); }
}

/* ─────────────────────────────────────────────
   PAGE LOADER
───────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.loader-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 4rem);
  letter-spacing: 0.4em;
  color: var(--text);
  opacity: 0;
  animation: fadeIn .6s .2s forwards;
}
.loader-title span { color: var(--brand); }
@keyframes fadeIn { to { opacity: 1; } }
.loader-track {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}
.loader-bar {
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .05s linear;
}
.loader-pct {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--text-3);
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6,6,6,.88);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: var(--text);
}
.logo-wordmark b { color: var(--brand); font-weight: 400; }
.logo-sub {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1px;
  background: var(--brand);
  transition: right .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: .55em 1.4em !important;
  border-radius: var(--r-sm) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--brand-dark) !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  position: relative;
  z-index: 600;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--dur);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 499;
  background: var(--dark);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 clamp(24px, 8vw, 80px);
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: color var(--dur);
  line-height: 1.1;
}
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu-social {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-2);
  width: 100%;
}
.mobile-menu-social a {
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  color: var(--text-3) !important;
  font-family: var(--font-body) !important;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}

/* Animated background */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 65% 35%, rgba(140,28,28,.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 5% 85%, rgba(201,165,90,.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(181,40,40,.08) 0%, transparent 50%),
    linear-gradient(170deg, #0c0203 0%, #060606 45%, #030303 100%);
  animation: bgPulse 12s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  0%  { opacity: 1; }
  100% { opacity: 0.85; }
}

/* Scan lines */
.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,.08) 3px,
    rgba(0,0,0,.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Decorative large text behind */
.hero-bg-text {
  position: absolute;
  bottom: -5%;
  right: -3%;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 22rem);
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.03);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* Vertical accent line */
.hero-vline {
  position: absolute;
  top: 0; right: 28%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.05) 30%, rgba(255,255,255,.05) 70%, transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(60px, 8vw, 110px);
  padding-top: 130px;
  max-width: 880px;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
}
.hero-title .line-inner {
  display: block;
}
.hero-title .outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(238,238,238,.2);
}
.hero-title .brand-text { color: var(--brand); }

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 767px) { .hero-scroll { display: none; } }
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: var(--border-2);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand);
  animation: scrollDrop 2.4s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .85em 2.2em;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.06);
  opacity: 0;
  transition: opacity var(--dur);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 24px rgba(181,40,40,.25);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(181,40,40,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.4); }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #060606;
}

/* ─────────────────────────────────────────────
   STATS
───────────────────────────────────────────── */
.stats-bar {
  background: var(--brand);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.04) 0px,
    rgba(255,255,255,.04) 1px,
    transparent 1px,
    transparent 60px
  );
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(0,0,0,.15);
  gap: 1px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  background: var(--brand);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: 8px;
}

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-layout { grid-template-columns: 1.1fr 1fr; gap: 100px; }
}

.about-img-wrap {
  position: relative;
}
.about-img-box {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-img-box img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #120404 0%, #0a0a0a 50%, #0c0505 100%);
  display: flex; align-items: center; justify-content: center;
}
/* Red accent line decoration */
.about-img-wrap::before {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 60%; height: 60%;
  border: 1px solid var(--border-2);
  pointer-events: none;
  z-index: -1;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: -1px;
  width: 3px;
  height: 40%;
  background: var(--brand);
}

.about-badge {
  position: absolute;
  right: -20px;
  top: 32px;
  background: var(--brand);
  padding: 20px 24px;
  text-align: center;
}
.about-badge .n {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1;
}
.about-badge .t {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

.about-text h2 {
  font-size: clamp(2.2rem, 5vw, var(--fs-4xl));
  line-height: 1.2;
  margin: 16px 0 24px;
}
.about-text p { font-size: var(--fs-base); line-height: 1.85; }
.about-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.5;
}
.about-list li::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--brand);
  margin-top: 10px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
.services-section { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}
@media (min-width: 600px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  background: var(--surface);
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: background var(--dur);
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0;
  height: 2px;
  background: var(--brand);
  transition: width .5s var(--ease);
}
.svc-card:hover { background: var(--surface-2); }
.svc-card:hover::after { width: 100%; }

.svc-card.featured {
  background: var(--brand);
}
@media (min-width: 1024px) { .svc-card.featured { grid-column: span 2; } }
.svc-card.featured::after { display: none; }
.svc-card.featured h3,
.svc-card.featured p { color: #fff; }
.svc-card.featured p { color: rgba(255,255,255,.7); }
.svc-card.featured .svc-num { color: rgba(255,255,255,.15); }

.svc-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, var(--fs-4xl));
  color: var(--text-3);
  line-height: 1;
  letter-spacing: 0.05em;
}
.svc-card h3 {
  font-size: clamp(1.1rem, 2vw, var(--fs-xl));
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.svc-card p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  flex: 1;
  color: var(--text-3);
}
.svc-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  transition: gap var(--dur);
}
.svc-card.featured .svc-link { color: rgba(255,255,255,.7); }
.svc-link:hover { gap: 14px; }

/* ─────────────────────────────────────────────
   PORTFOLIO
───────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}
@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(12, 1fr); }
  .port-item:nth-child(1) { grid-column: span 7; }
  .port-item:nth-child(2) { grid-column: span 5; }
  .port-item:nth-child(3) { grid-column: span 5; }
  .port-item:nth-child(4) { grid-column: span 7; }
}

.port-item {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16/10;
  cursor: none;
}
@media (min-width: 768px) { .port-item { aspect-ratio: auto; min-height: 300px; } }

.port-bg {
  position: absolute; inset: 0;
  transition: transform .7s var(--ease);
}
.port-item:hover .port-bg { transform: scale(1.06); }

.port-item:nth-child(1) .port-bg { background: linear-gradient(135deg, #1a0505 0%, #2a0808 40%, #0a0808 100%); }
.port-item:nth-child(2) .port-bg { background: linear-gradient(135deg, #06080e 0%, #0d0d1a 40%, #080808 100%); }
.port-item:nth-child(3) .port-bg { background: linear-gradient(135deg, #040d04 0%, #091509 40%, #080808 100%); }
.port-item:nth-child(4) .port-bg { background: linear-gradient(135deg, #100808 0%, #1a0d08 40%, #080808 100%); }

/* Diagonal line decoration */
.port-item::before {
  content: '';
  position: absolute;
  top: 0; left: -200%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent);
  transition: left .6s var(--ease);
  z-index: 1;
}
.port-item:hover::before { left: 200%; }

.port-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  z-index: 2;
}
.port-item:hover .port-overlay { opacity: 1; }
.port-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.port-overlay h3 {
  font-size: clamp(1.2rem, 2.5vw, var(--fs-2xl));
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.port-overlay p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.6);
  margin-top: 8px;
}
/* CMS-driven portfolio — link wrapper */
.port-link {
  display: block;
  position: absolute; inset: 0;
  text-decoration: none;
  color: inherit;
}
.port-cta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   WHY CTW
───────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
@media (min-width: 600px)  { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  background: var(--surface);
  padding: 40px 32px;
  transition: background var(--dur);
  position: relative;
}
.why-card:hover { background: var(--surface-2); }
.why-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
  transition: border-color var(--dur);
}
.why-card:hover .why-icon { border-color: var(--brand); }
.why-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.why-card p { font-size: var(--fs-sm); line-height: 1.75; color: var(--text-3); }

/* ─────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────── */
.testi-section { background: var(--surface); padding: clamp(60px,10vw,130px) 0; overflow: hidden; }
.testi-header { padding: 0 clamp(20px, 5vw, 80px); margin-bottom: 64px; }

.marquee-wrap {
  display: flex;
  gap: 16px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.testi-card {
  background: var(--bg);
  border: 1px solid var(--border-2);
  padding: 36px 32px;
  min-width: 380px;
  max-width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 28px;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--brand);
  opacity: 0.15;
  line-height: 1;
}
.testi-stars { color: var(--accent); font-size: var(--fs-xs); letter-spacing: 3px; }
.testi-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}
.testi-author {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brand);
  flex-shrink: 0;
}
.testi-author strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.testi-author span { font-size: var(--fs-xs); color: var(--text-3); }

/* ─────────────────────────────────────────────
   BLOG
───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background var(--dur);
}
.blog-card:hover { background: var(--surface-2); }
.blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.blog-thumb-bg {
  width: 100%; height: 100%;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-thumb-bg { transform: scale(1.06); }
/* Real <img> inside .blog-thumb — same zoom behaviour */
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
/* Real <img> inside .port-bg */
.port-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── SPLIT TEXT ─────────────────────────────────────────── */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-char { display: inline-block; transform-origin: bottom center; }
.blog-card:nth-child(1) .blog-thumb-bg { background: linear-gradient(135deg, #180404, #0d0808); }
.blog-card:nth-child(2) .blog-thumb-bg { background: linear-gradient(135deg, #040408, #08080f); }
.blog-card:nth-child(3) .blog-thumb-bg { background: linear-gradient(135deg, #080808, #0a100a); }

.blog-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}
.blog-cat { color: var(--brand); font-weight: 700; }
.blog-card h3 {
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text);
  transition: color var(--dur);
}
.blog-card:hover h3 { color: var(--brand); }
.blog-card p { font-size: var(--fs-sm); line-height: 1.75; flex: 1; }
.blog-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  transition: gap var(--dur);
}
.blog-link:hover { gap: 14px; }

/* ─────────────────────────────────────────────
   CTA
───────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0;
  background: var(--dark);
  text-align: center;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .eyebrow { justify-content: center; margin-bottom: 20px; }
.cta-title {
  font-size: clamp(1.6rem, 4.5vw, 6rem);
  line-height: 1.25;
  margin-bottom: 28px;
}
.cta-title em {
  /* inline — dùng <br> trước em để xuống dòng, tránh block-in-inline bug */
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0.01em;
}
.cta-sub {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto 44px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: clamp(60px, 8vw, 100px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}
.footer-logo { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--text-3);
  line-height: 1.8;
  max-width: 280px;
  margin-top: 16px;
}
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all var(--dur);
}
.social-btn:hover { border-color: var(--brand); color: var(--brand); }
.social-btn svg { width: 14px; height: 14px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: var(--fs-sm); color: var(--text-3); transition: color var(--dur); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.footer-bottom a:hover { color: var(--text); }

/* ─────────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────────── */
.page-hero {
  padding: 150px 0 clamp(60px, 8vw, 100px);
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 120px; height: 1px;
  background: var(--brand);
}
.page-hero h1 { font-size: clamp(1.6rem, 4.5vw, 6rem); margin: 16px 0 24px; }
.page-hero p { font-size: var(--fs-lg); line-height: 1.75; max-width: 560px; }

/* ─────────────────────────────────────────────
   REVEAL (fallback if GSAP not loaded)
───────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────
   SERVICES DETAIL (services.html)
───────────────────────────────────────────── */
.services-detail { display: flex; flex-direction: column; }
.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 56px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--dur);
}
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 180px 1fr; gap: 80px; align-items: start; }
}
.svc-row:hover { background: var(--surface-2); }
.svc-row-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  color: var(--text-3);
  line-height: 1;
  letter-spacing: 0.05em;
}
.svc-row-body h3 { font-size: clamp(1.6rem, 3vw, var(--fs-3xl)); margin-bottom: 16px; }
.svc-row-body p { margin-bottom: 12px; }
.svc-features { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.svc-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--fs-sm); color: var(--text-2);
}
.svc-features li::before { content: '—'; color: var(--brand); flex-shrink: 0; margin-top: 1px; }

/* ─────────────────────────────────────────────
   CONTACT (contact.html)
───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 2fr 3fr; gap: 100px; align-items: start; }
}
.contact-info h2 { font-size: clamp(2rem, 5vw, var(--fs-4xl)); margin: 16px 0 20px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.c-detail { display: flex; gap: 16px; align-items: flex-start; }
.c-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
  transition: border-color var(--dur);
}
.c-detail:hover .c-icon { border-color: var(--brand); }
.c-detail strong {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 4px;
}
.c-detail a, .c-detail span { font-size: var(--fs-base); color: var(--text); }
.c-detail a:hover { color: var(--brand); }

.contact-form-box {
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: clamp(28px, 5vw, 48px);
}
.cform { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 500px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
}
.form-field label .req { color: var(--brand); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: .85em 1em;
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color var(--dur);
  appearance: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--brand);
  background: var(--surface-3);
}
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
.form-field select {
  cursor: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233d3d3d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-field select option { background: var(--surface-2); }
.form-note { font-size: 10px; color: var(--text-3); text-align: center; letter-spacing: 0.08em; }

/* ═══════════════════════════════════════════════════════════
   MOBILE CONTACT HUB
   ═══════════════════════════════════════════════════════════ */

/* Pill container */
.mch {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 30px));
  bottom: 18px;
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(7, 7, 7, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255,255,255,.04) inset;
  pointer-events: none;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  /* Không cho tràn màn hình */
  max-width: calc(100vw - 24px);
}
/* Gold → red accent line */
.mch::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,165,90,.45) 30%, rgba(181,40,40,.5) 70%, transparent);
}
.mch > * { pointer-events: auto; }
.mch.mch--in { transform: translateX(-50%) translateY(0); }

/* Nút phụ — icon only, hình tròn */
.mch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, transform .12s;
}
.mch-btn:active { background: rgba(255,255,255,.15); transform: scale(.9); }

/* Icon wrapper */
.mch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
}
.mch-icon svg { width: 18px; height: 18px; }

/* Icon colors */
.mch-btn .mch-icon { color: rgba(255,255,255,.75); }

/* Per-type border accent */
.mch-phone     { border-color: rgba(181,40,40,.35); }
.mch-email,
.mch-messenger,
.mch-zalo      { border-color: rgba(255,255,255,.12); }

/* Ẩn label — icon only */
.mch-lbl { display: none; }

/* Center round call button */
.mch-call {
  position: relative;
  display: inline-flex;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--brand, #b52828);
  border: 1.5px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 28px rgba(181,40,40,.45);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, box-shadow .15s;
  overflow: hidden;
}
.mch-call:active { transform: scale(.92); box-shadow: 0 4px 14px rgba(181,40,40,.3); }

/* Pulse ring */
.mch-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(181, 40, 40, 0.55);
  animation: mchPulse 2.8s ease-out infinite;
}
@keyframes mchPulse {
  0%   { box-shadow: 0 0 0 0   rgba(181,40,40,.55); }
  65%  { box-shadow: 0 0 0 14px rgba(181,40,40,.0);  }
  100% { box-shadow: 0 0 0 14px rgba(181,40,40,.0);  }
}

/* Desktop: hide */
@media (min-width: 768px) { .mch { display: none; } }

/* ─────────────────────────────────────────────
   MOBILE OPTIMIZATION (max-width: 767px)
───────────────────────────────────────────── */
@media (max-width: 767px) {

  /* ── Container padding ── */
  .container { padding-inline: 18px; }

  /* ── Header ── */
  .site-header { padding: 0; }
  .header-inner { height: 56px; }

  /* ── Hero (index.html) ── */
  .hero-content {
    padding-top: 88px;
    padding-bottom: 56px;
  }
  .hero-title { letter-spacing: 0.01em; }
  .hero-desc { font-size: 0.95rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* ── Stats bar ── */
  .stat-item { padding: 24px 16px; }
  .stat-num { font-size: 2.2rem; }

  /* ── About section (index.html) ── */
  .about-layout { gap: 40px; }
  .about-img-box { aspect-ratio: 4/3; }
  .about-text { padding: 0; }
  .about-highlights { gap: 20px; }

  /* ── Portfolio ── */
  .port-grid { gap: 12px; }
  .port-item { aspect-ratio: 4/3; min-height: 220px; }
  .port-body { padding: 20px; }
  .port-body h3 { font-size: 1.1rem; }

  /* ── Services grid (index.html) ── */
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc-card { padding: 28px 22px; }
  .svc-card.featured { padding: 28px 22px; }
  .svc-card.featured h3 { font-size: 1.3rem; }

  /* ── Why grid ── */
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-item { padding: 22px 18px; }

  /* ── Blog grid ── */
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card { max-width: 100%; }
  .blog-thumb { aspect-ratio: 16/9; }

  /* ── CTA section ── */
  .cta-section { padding: 80px 0; }
  .cta-title { font-size: clamp(1.8rem, 7vw, 3rem); }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* ── Footer ── */
  .footer-grid { gap: 36px; }
  .footer-col { display: none; } /* Hide nav columns on very small screens to save space */
  .footer-col:first-of-type { display: block; } /* Show first services col */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* ── Page hero (inner pages) ── */
  .page-hero { padding: 100px 0 48px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 3rem); margin-bottom: 16px; }
  .page-hero p { font-size: 0.95rem; }

  /* ── Services detail page ── */
  .svc-row { padding: 40px 18px; gap: 12px; }
  .svc-row-num { font-size: 3.5rem; line-height: 1; margin-bottom: -4px; }

  /* ── Blog page filter bar ── */
  .filter-bar { gap: 8px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  .blog-layout { grid-template-columns: 1fr !important; }

  /* ── Post page ── */
  .post-header { padding: 100px 0 40px; }
  .post-title { font-size: clamp(1.5rem, 6vw, 2.5rem) !important; }
  .post-meta { flex-wrap: wrap; gap: 10px; }
  .post-body { font-size: 1rem; }
  .post-body h2 { font-size: 1.4rem; }
  .post-body h3 { font-size: 1.2rem; }

  /* ── Contact page ── */
  .contact-layout { gap: 40px; }
  .contact-info h2 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr !important; }

  /* ── Prevent Vietnamese uppercase + letter-spacing text overflow ── */
  .eyebrow { letter-spacing: 0.1em; font-size: 10px; }
  .nav-links a { letter-spacing: 0.1em; }
  h1, h2, h3, h4 { word-break: keep-all; overflow-wrap: break-word; }

  /* ── Team grid ── */
  .team-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .team-photo { aspect-ratio: 1; }

  /* ── Mobile menu ── */
  .mobile-menu { padding: 80px 28px 40px; }
  .mobile-menu a { font-size: 1.3rem; }
}

/* Tablet tweaks */
@media (min-width: 480px) and (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-col { display: block; }
}

/* Extra small screens */
@media (max-width: 390px) {
  .team-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { font-size: 0.85rem; padding: 12px 18px; }
  .cta-btn { font-size: 12px; padding: 12px 8px; }
}

/* ════════════════════════════════════════════════════════════════
   MINH THỊNH HOTEL — LIGHT THEME OVERRIDE (gold · nâu · trắng)
   Đặt cuối file: override theme tối gốc. Quy tắc sau thắng.
   ════════════════════════════════════════════════════════════════ */
:root{
  --brand:#8a6a17;        /* gold trầm — nút & link, chữ trắng đạt AA */
  --brand-dark:#6d5311;
  --brand-glow:rgba(138,106,23,.16);
  --accent:#c79a2b;       /* gold sáng — eyebrow, sao, điểm nhấn */
  --accent-dim:rgba(199,154,43,.12);

  --bg:#faf6ee;           /* kem ấm */
  --surface:#ffffff;
  --surface-2:#f5efe2;
  --surface-3:#ece2cf;
  --dark:#2b2218;         /* nâu đậm ấm — footer, CTA, banner */

  --text:#2a2318;
  --text-2:#6a5d49;
  --text-3:#7c6f58;
  --border:#ece4d4;
  --border-2:#ddd2bc;
  --shadow-brand:0 10px 30px rgba(138,106,23,.18);
}
body{ background:var(--bg); color:var(--text); }
.grain{ opacity:.022; }
#heroCanvas{ display:none !important; }

/* PAGE LOADER */
.page-loader{ background:var(--bg); }
.loader-title{ color:var(--text); }
.loader-track{ background:rgba(0,0,0,.08); }

/* HEADER */
.site-header .logo-wordmark{ color:#fff; }
.site-header .logo-wordmark b{ color:var(--accent); }
.site-header .logo-sub{ color:rgba(255,255,255,.7); }
.site-header .nav-links a{ color:rgba(255,255,255,.85); }
.site-header .nav-links a:hover{ color:#fff; }
.site-header .nav-toggle span{ background:#fff; }
.site-header.scrolled{ background:rgba(255,255,255,.94); border-color:var(--border); }
.site-header.scrolled .logo-wordmark{ color:var(--text); }
.site-header.scrolled .logo-wordmark b{ color:var(--brand); }
.site-header.scrolled .logo-sub{ color:var(--text-3); }
.site-header.scrolled .nav-links a{ color:var(--text-2); }
.site-header.scrolled .nav-links a:hover{ color:var(--text); }
.site-header.scrolled .nav-toggle span{ background:var(--text); }
.site-header.scrolled .nav-cta{ color:#fff !important; }

/* MOBILE MENU (nền nâu) */
.mobile-menu{ background:var(--dark); }
.mobile-menu a{ color:rgba(255,255,255,.85); }
.mobile-menu a:hover{ color:var(--accent); }
.mobile-menu-social a{ color:rgba(255,255,255,.6) !important; }

/* HERO: ảnh ấm + overlay nhẹ, chữ sáng */
.hero{ background:var(--dark); }
.hero-bg{
  background:
    linear-gradient(180deg, rgba(33,26,18,.34) 0%, rgba(33,26,18,.22) 38%, rgba(33,26,18,.70) 100%),
    url('../images/hero.jpg') center/cover no-repeat;
  animation:none;
}
.hero-scanlines{ display:none; }
.hero-vline{ background:linear-gradient(to bottom, transparent, rgba(255,255,255,.10) 30%, rgba(255,255,255,.10) 70%, transparent); }
.hero-bg-text{ -webkit-text-stroke:1px rgba(255,255,255,.06); }
.hero-title .line-inner{ color:#fff; }
.hero-title .outline-text{ color:transparent; -webkit-text-stroke:1.4px rgba(255,255,255,.55); }
.hero-title .brand-text{ color:var(--accent); }
.hero-desc{ color:rgba(255,255,255,.85); }
.hero-desc em.serif{ color:var(--accent) !important; }
.hero-eyebrow.eyebrow{ color:var(--accent); }
.hero-eyebrow.eyebrow::before{ background:var(--accent); }
.hero-scroll span{ color:rgba(255,255,255,.7); }

/* ABOUT / fallback gradients */
.about-img-placeholder{ background:linear-gradient(135deg,#efe2c6,#e7d6b0); }
.port-item:nth-child(1) .port-bg,
.port-item:nth-child(2) .port-bg,
.port-item:nth-child(3) .port-bg,
.port-item:nth-child(4) .port-bg{ background:linear-gradient(135deg,#efe3c8 0%,#e3cfa0 45%,#d8c089 100%); }
.port-overlay{ background:linear-gradient(to top, rgba(33,26,18,.86) 0%, rgba(33,26,18,.28) 55%, transparent 100%); }
.blog-card:nth-child(1) .blog-thumb-bg,
.blog-card:nth-child(2) .blog-thumb-bg,
.blog-card:nth-child(3) .blog-thumb-bg{ background:linear-gradient(135deg,#efe3c8,#e3cfa0); }

/* CTA (nền nâu) */
.cta-section .cta-title{ color:#fff; }
.cta-section .cta-sub{ color:rgba(255,255,255,.78); }
.cta-section .eyebrow{ color:var(--accent); }
.cta-section .eyebrow::before{ background:var(--accent); }
.cta-section .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.3); }

/* PAGE HERO banner (nền nâu) */
.page-hero{ background:linear-gradient(135deg,#332819 0%,#2b2218 60%,#241c12 100%); }
.page-hero h1{ color:#fff; }
.page-hero p{ color:rgba(255,255,255,.78); }
.page-hero .eyebrow{ color:var(--accent); }
.page-hero .eyebrow::before{ background:var(--accent); }

/* FOOTER (nền nâu) */
.site-footer{ background:var(--dark); border-color:rgba(255,255,255,.08); }
.site-footer .footer-logo{ color:#fff; }
.site-footer .footer-brand p{ color:rgba(255,255,255,.62); }
.site-footer .footer-col h4{ color:#fff; }
.site-footer .footer-col a{ color:rgba(255,255,255,.6); }
.site-footer .footer-col a:hover{ color:#fff; }
.site-footer .social-btn{ color:rgba(255,255,255,.7); border-color:rgba(255,255,255,.18); }
.site-footer .social-btn:hover{ color:var(--accent); border-color:var(--accent); }
.footer-bottom{ color:rgba(255,255,255,.5); border-color:rgba(255,255,255,.1); }
.footer-bottom a:hover{ color:#fff; }
.footer-link-disabled{ color:rgba(255,255,255,.4) !important; }

/* MOBILE CONTACT HUB pill */
.mch{ background:rgba(43,34,24,.95); border-color:rgba(255,255,255,.1); }

/* BUTTONS */
.btn-primary{ box-shadow:0 4px 18px rgba(138,106,23,.22); }
.btn-primary:hover{ box-shadow:0 8px 26px rgba(138,106,23,.30); }
.btn-ghost{ color:var(--text); border-color:var(--border-2); }
.btn-ghost:hover{ border-color:var(--brand); color:var(--brand); }

/* ── INNER PAGE COMPONENTS — light theme fixes (about/services/contact...) ── */
.vm-grid{ background:var(--border)!important; border-color:var(--border)!important; }
.vm-card{ background:var(--surface)!important; }
.vm-card-num,.story-text .big-year{ -webkit-text-stroke:1px rgba(138,106,23,.16)!important; }
.value-card{ background:var(--surface)!important; border-color:var(--border-2)!important; }
.value-card:hover{ border-color:var(--brand)!important; }
.value-card-icon{ border-color:var(--brand)!important; }
.phil-item{ border-top-color:var(--border-2)!important; }
.philosophy-quote{ font-family:var(--font-display)!important; }
.team-photo img{ filter:none!important; }
.about-stat-num{ color:var(--text)!important; }
.about-stat-label{ color:var(--text-2)!important; }
/* generic: any inner-page card/box that used faint white borders on dark */
[style*="border-color:rgba(255,255,255"]{ }

/* ════════════════════════════════════════════════════════════════
   HOTEL COMPONENTS — booking bar, room cards, gallery, modal
   ════════════════════════════════════════════════════════════════ */
/* Hero photo as <img> (real ảnh thật) */
.hero-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-shade{ position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(28,22,14,.50) 0%, rgba(28,22,14,.30) 40%, rgba(28,22,14,.78) 100%); }

/* ── BOOKING SEARCH BAR (hero) ── */
.booking-bar{
  position:relative; z-index:3; margin-top:38px;
  background:rgba(255,255,255,.96); backdrop-filter:blur(6px);
  border-radius:14px; box-shadow:0 18px 50px rgba(20,14,4,.28);
  padding:16px; display:grid; gap:12px;
  grid-template-columns:1.4fr 1fr 1fr .9fr auto; align-items:end; max-width:920px;
}
@media (max-width:860px){ .booking-bar{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .booking-bar{ grid-template-columns:1fr; } }
.bb-field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.bb-field label{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); }
.bb-field select,.bb-field input{
  border:1px solid var(--border-2); border-radius:9px; padding:11px 12px;
  font:inherit; font-size:14px; color:var(--text); background:#fff; width:100%; cursor:pointer; }
.bb-field select:focus,.bb-field input:focus{ outline:none; border-color:var(--brand); }
.booking-bar .bb-submit{ width:100%; justify-content:center; height:46px; border-radius:9px; }
@media (max-width:860px){ .booking-bar .bb-go{ grid-column:1 / -1; } }

/* ── ROOM CARDS ── */
.rooms-grid{ display:grid; grid-template-columns:1fr; gap:26px; margin-top:44px; }
@media (min-width:640px){ .rooms-grid{ grid-template-columns:1fr 1fr; } }
@media (min-width:1040px){ .rooms-grid{ grid-template-columns:1fr 1fr 1fr; } }
.room-card{
  background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden;
  display:flex; flex-direction:column; transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow:0 6px 20px rgba(20,14,4,.05); }
.room-card:hover{ transform:translateY(-6px); box-shadow:0 22px 44px rgba(20,14,4,.13); }
.room-figure{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--surface-3); }
.room-figure img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); display:block; }
.room-card:hover .room-figure img{ transform:scale(1.06); }
.room-price-tag{
  position:absolute; left:14px; bottom:14px; background:rgba(43,34,24,.92); color:#fff;
  padding:7px 13px; border-radius:999px; font-weight:700; font-size:14px; letter-spacing:.01em; }
.room-price-tag small{ font-weight:500; color:rgba(255,255,255,.75); font-size:11px; }
.room-type-pill{
  position:absolute; right:14px; top:14px; background:var(--accent); color:#2a2014;
  padding:5px 12px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.room-body{ padding:20px 20px 22px; display:flex; flex-direction:column; gap:12px; flex:1; }
.room-body h3{ font-size:1.35rem; line-height:1.2; }
.room-meta{ display:flex; flex-wrap:wrap; gap:8px; }
.room-meta span{
  display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-2);
  background:var(--surface-2); border:1px solid var(--border); padding:4px 10px; border-radius:8px; }
.room-amen{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:2px; }
.room-amen li{ font-size:13px; color:var(--text-2); position:relative; padding-left:16px; }
.room-amen li::before{ content:'✓'; position:absolute; left:0; color:var(--brand); font-weight:700; }
.room-actions{ display:flex; gap:10px; margin-top:auto; padding-top:6px; }
.room-actions .btn{ flex:1; justify-content:center; }
.room-actions .btn-sm{ padding:.6em 1em; font-size:14px; }

/* ── GALLERY ── */
.gallery-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:40px; }
@media (min-width:760px){ .gallery-grid{ grid-template-columns:repeat(4,1fr); } }
.gallery-grid a{ display:block; aspect-ratio:1/1; overflow:hidden; border-radius:12px; background:var(--surface-3); }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); display:block; }
.gallery-grid a:hover img{ transform:scale(1.08); }

/* ── BOOKING MODAL ── */
.bk-modal{ position:fixed; inset:0; z-index:10000; display:none; }
.bk-modal.open{ display:block; }
.bk-overlay{ position:absolute; inset:0; background:rgba(26,20,12,.55); backdrop-filter:blur(3px); }
.bk-dialog{
  position:relative; z-index:1; width:min(560px,calc(100vw - 28px));
  margin:5vh auto; max-height:90vh; overflow:auto; background:var(--surface);
  border-radius:16px; box-shadow:0 30px 80px rgba(0,0,0,.35); animation:bkIn .25s var(--ease); }
@keyframes bkIn{ from{ opacity:0; transform:translateY(16px) } to{ opacity:1; transform:none } }
.bk-x{ position:absolute; top:12px; right:14px; font-size:30px; line-height:1; color:var(--text-3); width:38px; height:38px; border-radius:50%; }
.bk-x:hover{ color:var(--text); background:var(--surface-2); }
.bk-body{ padding:30px clamp(20px,4vw,38px) 30px; }
.bk-eyebrow{ font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--brand); }
.bk-title{ font-size:1.7rem; margin:8px 0 6px; }
.bk-sub{ color:var(--text-2); font-size:14px; line-height:1.6; margin-bottom:18px; }
.bk-form{ display:flex; flex-direction:column; gap:14px; }
.bk-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:460px){ .bk-row{ grid-template-columns:1fr; } }
.bk-field{ display:flex; flex-direction:column; gap:6px; }
.bk-field label{ font-size:12px; font-weight:600; color:var(--text-2); }
.bk-field input,.bk-field select,.bk-field textarea{
  border:1.5px solid var(--border-2); border-radius:9px; padding:10px 12px; font:inherit; font-size:14px;
  color:var(--text); background:var(--bg); }
.bk-field input:focus,.bk-field select:focus,.bk-field textarea:focus{ outline:none; border-color:var(--brand); background:#fff; }
.bk-field input[readonly]{ background:var(--surface-2); color:var(--text-2); cursor:default; }
.bk-estimate{ display:none; background:var(--brand-light); border:1px solid var(--border-2); border-radius:9px; padding:11px 14px; font-size:14px; color:var(--text); }
.bk-total{ color:var(--brand-dark); }
.bk-submit{ width:100%; justify-content:center; margin-top:4px; }
.bk-note{ text-align:center; font-size:13px; color:var(--text-3); }
.bk-note .bk-phone,.bk-phone{ color:var(--brand); font-weight:700; }
.bk-success{ display:none; flex-direction:column; align-items:center; text-align:center; gap:14px; padding:24px 0; }
.bk-check{ width:64px; height:64px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-size:32px; }
.bk-success h3{ font-size:1.5rem; }
.bk-success p{ color:var(--text-2); font-size:14px; line-height:1.6; max-width:380px; }
.bk-success a{ color:var(--brand); font-weight:700; }

/* hide leftover cinematic bits for a calmer hotel feel */
.grain{ display:none; }
.cursor-dot,.cursor-ring{ display:none !important; }
body,a,button{ cursor:auto; }
.hero-bg-text{ display:none; }

/* ════════════════════════════════════════════════════════════════
   HOTEL REFINEMENT v2 — bo tròn mềm, sáng, bỏ chất điện ảnh
   (đặt cuối cùng để thắng các rule trước)
   ════════════════════════════════════════════════════════════════ */
:root{
  --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:999px;
  --shadow-sm:0 2px 12px rgba(43,34,24,.06);
  --shadow:0 12px 34px rgba(43,34,24,.09);
  --shadow-lg:0 26px 64px rgba(43,34,24,.15);
}
/* ẩn mọi tàn dư điện ảnh */
.page-loader{ display:none !important; }
.grain,.hero-scanlines,.hero-vline,.hero-bg-text,#heroCanvas,.cursor-dot,.cursor-ring{ display:none !important; }
body,a,button,select,input{ cursor:auto; }

/* HERO mềm hơn: chữ nhỏ lại, bỏ viền chữ */
.hero{ min-height:92vh; }
.hero-title{ font-size:clamp(2.3rem,5.2vw,4.4rem) !important; letter-spacing:.005em !important; margin-bottom:22px !important; }
.hero-title .outline-text{ -webkit-text-stroke:0 !important; color:#fff !important; }
.hero-title .brand-text{ color:var(--accent) !important; }
.hero-desc{ font-size:clamp(1rem,1.4vw,1.15rem) !important; }
.hero-content{ padding-bottom:clamp(40px,6vw,72px) !important; }
.hero-eyebrow.eyebrow{ font-weight:600; }
.hero-scroll{ display:none !important; }

/* BUTTONS — bo tròn pill, mềm */
.btn{ border-radius:var(--r-pill) !important; padding:.82em 1.7em; font-weight:600; }
.btn-sm{ border-radius:var(--r-pill) !important; padding:.62em 1.2em; }
.nav-cta{ border-radius:var(--r-pill) !important; }

/* INPUTS / SELECT — bo tròn */
input,select,textarea,.bb-field select,.bb-field input,.bk-field input,.bk-field select,.bk-field textarea{ border-radius:var(--r-md) !important; }

/* CARDS & ẢNH — bo tròn + bóng mềm */
.svc-card,.why-card,.testi-card,.blog-card,.room-card,.contact-form-box,.value-card,.vm-card,.svc-row,
.pricing-card,.faq-item{ border-radius:var(--r-lg); }
.about-img-box,.blog-thumb,.room-figure,.story-img,.team-photo,.svc-row-img img,.proj-gallery-item{ border-radius:var(--r-lg) !important; overflow:hidden; }
.blog-card,.room-card{ box-shadow:var(--shadow-sm); }
.blog-card:hover,.room-card:hover{ box-shadow:var(--shadow); }
.hero-photo{ border-radius:0; }

/* SERVICES/WHY grid — tách thẻ rời, bo tròn (thay vì lưới sát viền) */
.services-grid{ gap:22px !important; }
.svc-card{ border:1px solid var(--border); }
.why-grid{ gap:18px !important; background:transparent !important; border:0 !important; }
.why-card{ border:1px solid var(--border); border-radius:var(--r-lg); background:var(--surface); }
.why-icon{ border-radius:14px; background:var(--brand-light); border-color:transparent; color:var(--brand-dark); }

/* STATS BAR — chuyển thành dải thẻ trắng bo tròn, số màu gold (bỏ khối gold đặc) */
.stats-bar{ background:var(--bg) !important; padding:clamp(28px,5vw,52px) 0 !important; }
.stats-bar::before{ display:none !important; }
.stats-grid{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); box-shadow:var(--shadow-sm); padding:clamp(22px,3vw,32px) clamp(16px,3vw,28px); }
.stat-num{ color:var(--brand-dark) !important; }
.stat-label{ color:var(--text-2) !important; }

/* BOOKING BAR — bo tròn nhiều hơn */
.booking-bar{ border-radius:var(--r-xl); }

/* PAGE HERO (banner trang con) — NỀN SÁNG, chữ tối (bỏ banner đen kịch tính) */
.page-hero{ background:linear-gradient(180deg,#fffdf8 0%, #f3ead7 100%) !important; border-bottom:1px solid var(--border); padding-top:140px; }
.page-hero h1{ color:var(--text) !important; }
.page-hero p{ color:var(--text-2) !important; }
.page-hero .eyebrow{ color:var(--brand) !important; }
.page-hero .eyebrow::before{ background:var(--brand) !important; }
.page-hero::after{ background:var(--brand) !important; }
/* header trên trang con (nền sáng) cần chữ tối ngay cả khi chưa cuộn */
.inner-page .site-header .logo-wordmark{ color:var(--text); }
.inner-page .site-header .logo-wordmark b{ color:var(--brand); }
.inner-page .site-header .logo-sub{ color:var(--text-3); }
.inner-page .site-header .nav-links a{ color:var(--text-2); }
.inner-page .site-header .nav-toggle span{ background:var(--text); }

/* portfolio/blog/contact/services page heroes dùng .port-hero cũng làm sáng */
.port-hero{ background:linear-gradient(180deg,#fffdf8 0%, #f3ead7 100%) !important; }
.port-hero h1,.port-hero .eyebrow{ color:var(--text) !important; }
.port-hero p{ color:var(--text-2) !important; }

/* CTA — gradient gold ấm (thay nền gần đen) */
.cta-section{ background:linear-gradient(135deg,#8a6a17 0%, #b08a2a 100%) !important; }
.cta-section .cta-title,.cta-section .cta-sub{ color:#fff !important; }
.cta-section .eyebrow{ color:rgba(255,255,255,.85) !important; }
.cta-section .eyebrow::before{ background:rgba(255,255,255,.6) !important; }
.cta-section .btn-primary{ background:#fff !important; color:var(--brand-dark) !important; }
.cta-section .cta-glow{ display:none; }

/* FOOTER — bo góc trên cho mềm */
.site-footer{ border-radius:var(--r-xl) var(--r-xl) 0 0; }

/* SECTION rhythm thoáng hơn */
.section{ padding:clamp(54px,7.5vw,104px) 0; }
.section-header h2{ letter-spacing:-.01em; }

/* AMENITIES ICON GRID */
.amenities{ }
.amen-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:40px; }
@media(min-width:680px){ .amen-grid{ grid-template-columns:repeat(3,1fr); } }
@media(min-width:1000px){ .amen-grid{ grid-template-columns:repeat(6,1fr); } }
.amen-item{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:24px 16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; transition:transform .3s var(--ease), box-shadow .3s var(--ease); }
.amen-item:hover{ transform:translateY(-4px); box-shadow:var(--shadow-sm); }
.amen-ic{ width:52px; height:52px; border-radius:16px; background:var(--brand-light); color:var(--brand-dark); display:flex; align-items:center; justify-content:center; }
.amen-ic svg{ width:26px; height:26px; }
.amen-item span{ font-size:13.5px; font-weight:600; color:var(--text); line-height:1.35; }

/* LOCATION */
.loc-grid{ display:grid; grid-template-columns:1fr; gap:28px; margin-top:40px; align-items:stretch; }
@media(min-width:900px){ .loc-grid{ grid-template-columns:1.1fr .9fr; } }
.loc-map{ border-radius:var(--r-lg); overflow:hidden; min-height:330px; border:1px solid var(--border); box-shadow:var(--shadow-sm); background:var(--surface-3); }
.loc-map iframe{ width:100%; height:100%; min-height:330px; border:0; display:block; }
.loc-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:clamp(24px,3vw,36px); box-shadow:var(--shadow-sm); }
.loc-card h3{ font-size:1.4rem; margin-bottom:6px; }
.loc-addr{ color:var(--text-2); margin-bottom:18px; }
.loc-times{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:22px; }
.loc-times .chip{ background:var(--brand-light); color:var(--brand-dark); border-radius:var(--r-pill); padding:7px 14px; font-size:13px; font-weight:600; }
.loc-near{ display:flex; flex-direction:column; gap:0; }
.loc-near li{ display:flex; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px dashed var(--border-2); font-size:14.5px; color:var(--text); }
.loc-near li:last-child{ border-bottom:0; }
.loc-near .km{ color:var(--brand-dark); font-weight:700; white-space:nowrap; }

/* INNER PAGES — header trắng đặc, chữ tối (đồng nhất, dễ đọc mọi banner) */
.inner-page .site-header{ background:rgba(255,255,255,.96) !important; border-bottom:1px solid var(--border); box-shadow:var(--shadow-sm); backdrop-filter:blur(10px); }
.inner-page .site-header .logo-wordmark{ color:var(--text) !important; }
.inner-page .site-header .logo-wordmark b{ color:var(--brand) !important; }
.inner-page .site-header .logo-sub{ color:var(--text-3) !important; }
.inner-page .site-header .nav-links a{ color:var(--text-2) !important; }
.inner-page .site-header .nav-links a:hover{ color:var(--text) !important; }
.inner-page .site-header .nav-toggle span{ background:var(--text) !important; }
.inner-page .site-header .nav-cta{ color:#fff !important; }

/* Inner hero top clearance (header trắng đặc cao ~70px) + làm sáng vài card */
.proj-hero{ padding-top:108px !important; }
.svc-hero-wrap{ padding-top:104px !important; }
.svc-hero-image{ border-radius:var(--r-lg) !important; }
.proj-info-card{ background:var(--surface-2) !important; border-radius:var(--r-lg) !important; }
.proj-chip{ background:var(--surface-2) !important; border-radius:var(--r-pill) !important; }
.svc-related-card{ border-radius:var(--r-lg) !important; }
.svc-related-card:hover{ background:var(--brand-light) !important; border-color:var(--brand) !important; }
.port-filter-btn{ border-radius:var(--r-pill) !important; }
.post-hero-img{ border-radius:var(--r-lg) !important; }
.proj-hero-img-wrap{ border-radius:var(--r-lg) !important; }

/* ════════════════════════════════════════════════════════════════
   ROOM DETAIL (room.html) — trang sản phẩm/phòng
   ════════════════════════════════════════════════════════════════ */
.rd-wrap{ padding-top:96px; }
.rd-crumb{ font-size:13px; color:var(--text-3); margin-bottom:22px; }
.rd-crumb a{ color:var(--text-3); text-decoration:none; }
.rd-crumb a:hover{ color:var(--brand); }
.rd-crumb span{ margin:0 8px; opacity:.5; }

.rd-top{ display:grid; grid-template-columns:1fr; gap:30px; align-items:start; }
@media(min-width:960px){ .rd-top{ grid-template-columns:1.45fr .9fr; gap:40px; } }

/* Gallery */
.rd-main{ aspect-ratio:16/11; border-radius:var(--r-lg); overflow:hidden; background:var(--surface-3); box-shadow:var(--shadow-sm); }
.rd-main img{ width:100%; height:100%; object-fit:cover; display:block; }
.rd-thumbs{ display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.rd-thumbs button{ width:88px; height:64px; border-radius:12px; overflow:hidden; border:2px solid transparent; padding:0; background:var(--surface-3); cursor:pointer; }
.rd-thumbs button.active{ border-color:var(--brand); }
.rd-thumbs img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Booking box (sticky) */
.rd-book{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:clamp(20px,2.6vw,28px); position:sticky; top:90px; }
.rd-type{ display:inline-block; background:var(--accent); color:#2a2014; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:5px 12px; border-radius:var(--r-pill); }
.rd-title{ font-size:clamp(1.5rem,2.6vw,2rem); line-height:1.2; margin:12px 0 6px; }
.rd-tagline{ color:var(--text-2); font-size:14px; margin-bottom:16px; }
.rd-price{ display:flex; align-items:baseline; gap:8px; margin:6px 0 18px; }
.rd-price b{ font-family:var(--font-display); font-size:2rem; color:var(--brand-dark); font-weight:700; }
.rd-price small{ color:var(--text-3); font-size:14px; }
.rd-specs{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.rd-specs span{ display:inline-flex; align-items:center; gap:6px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:6px 11px; font-size:13px; color:var(--text-2); }
.rd-dates{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.rd-field{ display:flex; flex-direction:column; gap:5px; }
.rd-field label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3); }
.rd-field input,.rd-field select{ border:1.5px solid var(--border-2); border-radius:var(--r-md); padding:10px 12px; font:inherit; font-size:14px; color:var(--text); background:var(--bg); }
.rd-field input:focus,.rd-field select:focus{ outline:none; border-color:var(--brand); background:#fff; }
.rd-est{ display:none; background:var(--brand-light); border-radius:var(--r-md); padding:10px 13px; font-size:14px; margin:10px 0; }
.rd-est b{ color:var(--brand-dark); }
.rd-book .btn{ width:100%; justify-content:center; margin-top:6px; }
.rd-hotline{ text-align:center; font-size:13px; color:var(--text-3); margin-top:12px; }
.rd-hotline a{ color:var(--brand); font-weight:700; }

/* Body sections */
.rd-body{ display:grid; grid-template-columns:1fr; gap:34px; margin-top:clamp(40px,6vw,72px); }
@media(min-width:960px){ .rd-body{ grid-template-columns:1.45fr .9fr; gap:40px; } }
.rd-body h2{ font-size:1.4rem; margin-bottom:14px; }
.rd-desc p{ color:var(--text-2); line-height:1.85; margin-bottom:14px; }
.rd-amen-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px 20px; margin-top:6px; }
.rd-amen-grid li{ font-size:14.5px; color:var(--text); position:relative; padding-left:26px; line-height:1.5; }
.rd-amen-grid li::before{ content:'✓'; position:absolute; left:0; top:0; color:#fff; background:var(--brand); width:18px; height:18px; border-radius:50%; font-size:11px; display:flex; align-items:center; justify-content:center; }
.rd-policy{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r-lg); padding:24px; }
.rd-policy h3{ font-size:1.05rem; margin-bottom:14px; }
.rd-policy li{ display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px dashed var(--border-2); font-size:14px; color:var(--text-2); }
.rd-policy li:last-child{ border-bottom:0; }
.rd-policy li b{ color:var(--text); font-weight:600; }
.rd-related-grid{ display:grid; grid-template-columns:1fr; gap:22px; margin-top:36px; }
@media(min-width:640px){ .rd-related-grid{ grid-template-columns:1fr 1fr 1fr; } }

/* ════════════════════════════════════════════════════════════════
   ICONS đồng bộ + STATS KPI (sửa khối chỉ số)
   ════════════════════════════════════════════════════════════════ */
/* mini-icon dùng chung (thay emoji) */
.mi{ width:1.05em; height:1.05em; display:inline-block; vertical-align:-.16em; flex:0 0 auto; }
.room-meta span .mi, .rd-specs span .mi{ width:16px; height:16px; color:var(--brand-dark); }
.loc-addr .mi{ color:var(--brand); width:1.05em; height:1.05em; }
.btn .mi{ width:1.05em; height:1.05em; vertical-align:-.16em; }

/* STATS — KPI thẻ trắng, icon + số gold + nhãn, divider gọn */
.stats-bar{ background:var(--bg) !important; padding:clamp(30px,5vw,56px) 0 !important; }
.stats-bar::before{ display:none !important; }
.stats-grid{ display:grid; grid-template-columns:repeat(2,1fr) !important; gap:0 !important;
  background:var(--surface) !important; border:1px solid var(--border) !important;
  border-radius:var(--r-xl) !important; box-shadow:var(--shadow-sm) !important; overflow:hidden; padding:0 !important; }
@media (min-width:768px){ .stats-grid{ grid-template-columns:repeat(4,1fr) !important; } }
.stat-item{ background:transparent !important; padding:clamp(26px,3vw,40px) 18px !important; text-align:center;
  display:flex; flex-direction:column; align-items:center; border:0 !important;
  border-right:1px solid var(--border) !important; }
.stat-item:last-child{ border-right:0 !important; }
@media (max-width:767px){
  .stat-item:nth-child(2n){ border-right:0 !important; }
  .stat-item:nth-child(1),.stat-item:nth-child(2){ border-bottom:1px solid var(--border) !important; }
}
.stat-ic{ width:48px; height:48px; border-radius:14px; background:var(--brand-light); color:var(--brand-dark);
  display:inline-flex; align-items:center; justify-content:center; margin-bottom:14px; }
.stat-ic svg{ width:23px; height:23px; }
.stat-num{ color:var(--brand-dark) !important; font-family:var(--font-display);
  font-size:clamp(2rem,3.6vw,2.9rem) !important; letter-spacing:0 !important; line-height:1; }
.stat-label{ color:var(--text-2) !important; text-transform:none !important; letter-spacing:.01em !important;
  font-size:13px !important; font-weight:600 !important; margin-top:8px !important; }

/* ════════════════════════════════════════════════════════════════
   BỘ NÚT LIÊN HỆ NỔI — hiện cả desktop (cột góc phải dưới)
   ════════════════════════════════════════════════════════════════ */
@media (min-width:768px){
  .mch{ left:auto !important; right:22px; bottom:24px; transform:translateY(180%);
        flex-direction:column !important; gap:12px; padding:12px; max-width:none !important; border-radius:40px; }
  .mch.mch--in{ transform:translateY(0) !important; }
  .mch::before{ display:none; }
  .mch-lbl{ display:none; }
  .mch-btn{ width:46px; height:46px; }
  .mch-call{ width:56px; height:56px; }
}
/* nút phụ tông sáng cho hợp theme */
.mch-btn{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.18); color:#fff; }
.mch-btn:hover{ background:rgba(255,255,255,.2); }
.mch-zalo{ background:#0068ff !important; border-color:#0068ff !important; }
.mch-messenger{ background:#0084ff !important; border-color:#0084ff !important; }
.mch-email{ background:rgba(255,255,255,.12) !important; }
.mch-call{ background:var(--brand) !important; box-shadow:0 8px 26px rgba(138,106,23,.5) !important; }

/* FIX nút "Liên hệ ngay" trên menu: chữ trắng trên nền gold (đè rule nav-links a) */
.site-header .nav-links a.nav-cta,
.inner-page .site-header .nav-links a.nav-cta,
.site-header.scrolled .nav-links a.nav-cta{
  color:#fff !important; background:var(--brand) !important;
}
.site-header .nav-links a.nav-cta:hover,
.inner-page .site-header .nav-links a.nav-cta:hover{ background:var(--brand-dark) !important; color:#fff !important; }

/* FIX hover chìm: nút ghost trên nền TỐI/GOLD (hero, CTA, footer) giữ chữ trắng khi hover */
.hero .btn-ghost:hover,
.cta-section .btn-ghost:hover,
.site-footer .btn-ghost:hover{
  color:#fff !important;
  border-color:#fff !important;
  background:rgba(255,255,255,.14) !important;
}
/* Menu trang chủ (header trong suốt trên hero) hover rõ nét */
.site-header:not(.scrolled) .nav-links a:hover{ color:#fff !important; }
.site-header.scrolled .nav-links a:hover{ color:var(--brand) !important; }

/* MỤC MENU ĐANG ĐỨNG (active) — KHÔNG ép màu cố định (tránh chìm khi đổi nền).
   Giữ đúng màu chữ theo trạng thái header (trắng trên hero, tối/gold khi cuộn),
   chỉ đánh dấu bằng IN ĐẬM + GẠCH CHÂN GOLD. */
/* KHÔNG ép màu cho active — để nó kế thừa đúng màu của các mục menu khác
   theo từng trạng thái (trắng trên hero, tối khi cuộn). Chỉ đánh dấu bằng IN ĐẬM + GẠCH CHÂN.
   → Khi CMS dựng lại menu cũng không bị đổi sang đen. */
.site-header .nav-links a.active{ font-weight:700 !important; }
/* gạch chân gold đánh dấu */
.site-header .nav-links a.active::after{ right:0 !important; height:2px; background:var(--accent) !important; }
.site-header.scrolled .nav-links a.active::after,
.inner-page .site-header .nav-links a.active::after{ background:var(--brand) !important; }

/* Trang chủ: lưới phòng nổi bật = 4 cột 1 hàng (không rớt dòng) */
@media (min-width:1000px){ #portfolio-grid.rooms-grid{ grid-template-columns:repeat(4,1fr) !important; } }
@media (min-width:680px) and (max-width:999px){ #portfolio-grid.rooms-grid{ grid-template-columns:repeat(2,1fr) !important; } }
/* thẻ phòng gọn lại chút cho vừa 4 cột */
#portfolio-grid .room-body{ padding:16px 16px 18px; gap:9px; }
#portfolio-grid .room-body h3{ font-size:1.12rem; }
#portfolio-grid .room-amen{ gap:5px 12px; }
#portfolio-grid .room-amen li{ font-size:12px; }

/* ════════════════════════════════════════════════════════════════
   TESTIMONIALS CAROUSEL — tự trượt + nút ◀ ▶
   ════════════════════════════════════════════════════════════════ */
.testi-carousel-wrap{ position:relative; padding:0 clamp(46px,6vw,72px); max-width:1180px; margin:0 auto; }
.testi-carousel-wrap .testi-card{ min-width:330px; max-width:360px; }
.testi-carousel{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  padding:6px 2px 12px; -ms-overflow-style:none; scrollbar-width:none;
  -webkit-mask-image:linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image:linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.testi-carousel::-webkit-scrollbar{ display:none; }
.testi-carousel .testi-card{ scroll-snap-align:start; flex:0 0 auto; }
.testi-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:46px; height:46px; border-radius:50%; background:var(--surface);
  border:1px solid var(--border); box-shadow:var(--shadow); color:var(--brand-dark);
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s var(--ease);
}
.testi-arrow svg{ width:22px; height:22px; }
.testi-arrow:hover{ background:var(--brand); color:#fff; border-color:var(--brand); transform:translateY(-50%) scale(1.06); }
.testi-prev{ left:clamp(6px,2vw,28px); }
.testi-next{ right:clamp(6px,2vw,28px); }
@media (max-width:600px){ .testi-arrow{ display:none; } }  /* mobile: vuốt tay */

/* Testimonials carousel — dùng transform (đáng tin hơn scrollLeft) */
.testi-viewport{ overflow:hidden; width:100%; }
.testi-track{ display:flex; gap:16px; transition:transform .55s cubic-bezier(.4,0,.2,1); will-change:transform; padding:6px 0 12px; }
.testi-carousel-wrap .testi-track .testi-card{ flex:0 0 auto; min-width:330px; max-width:360px; }

/* Marquee testimonials chạy bằng JS (rAF) + arrow điều khiển — giữ full-bleed như cũ */
#testiMarquee{ position:relative; }
#testiMarquee .marquee-track{ animation:none !important; will-change:transform; }
#testiMarquee .testi-arrow{ /* dùng style .testi-arrow đã có */ }

/* ════ NÚT GỌI NỔI (mch) — đồng bộ tông vàng/nâu, bỏ xanh/đỏ loạn ════ */
.mch{ background:rgba(43,34,24,.96)!important; border:1px solid rgba(255,255,255,.10)!important; }
.mch-btn{ background:rgba(255,255,255,.10)!important; border:1px solid rgba(255,255,255,.16)!important; color:#fff!important; }
.mch-btn .mch-icon{ color:rgba(255,255,255,.85)!important; }
.mch-btn:hover{ background:rgba(199,154,43,.92)!important; border-color:rgba(199,154,43,.95)!important; }
.mch-btn:hover .mch-icon{ color:#fff!important; }
.mch-phone,.mch-email,.mch-zalo,.mch-messenger{ background:rgba(255,255,255,.10)!important; border-color:rgba(255,255,255,.16)!important; }
.mch-call{ background:var(--brand)!important; border:1.5px solid rgba(255,255,255,.18)!important; box-shadow:0 8px 26px rgba(138,106,23,.45)!important; }
.mch-call:hover{ background:var(--accent)!important; }
.mch-call:active{ box-shadow:0 4px 14px rgba(138,106,23,.3)!important; }
.mch-call .mch-icon{ color:#fff!important; }
.mch-ring{ animation:mchPulseGold 2.8s ease-out infinite!important; }
@keyframes mchPulseGold{ 0%{box-shadow:0 0 0 0 rgba(138,106,23,.5);} 65%{box-shadow:0 0 0 14px rgba(138,106,23,0);} 100%{box-shadow:0 0 0 14px rgba(138,106,23,0);} }
