/* ============================================================
   BONNE Studio — Global Styles
   Design system: Kanit, cream + black + terracotta, flat
   ============================================================ */

:root {
  --color-bg: #EEEAE1;
  --color-primary: #11100E;
  --color-accent: #B56037;
  --color-text: #11100E;
  --color-text-muted: #6B6560;
  --color-border: rgba(17, 16, 14, 0.12);
  --color-border-strong: rgba(17, 16, 14, 0.2);

  --font-sans: 'Kanit', sans-serif;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --container-max: 1440px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 96px;
  --space-10: 120px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* Selection */
::selection { background: var(--color-accent); color: var(--color-bg); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); color: var(--color-primary); letter-spacing: 0; }
h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.2; text-wrap: balance; }
h3 { font-size: clamp(24px, 2.5vw, 32px); font-weight: 500; line-height: 1.3; }
h4 { font-size: 24px; font-weight: 500; line-height: 1.4; }
p  { text-wrap: pretty; }

.eyebrow {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.text-muted { color: var(--color-text-muted); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1024px) { .container { padding: 0 80px; } }

/* Section spacing */
section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }
@media (min-width: 1024px) { section { padding: 120px 0; } }

/* Section header */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head .sub { color: var(--color-text-muted); font-size: 18px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 64px; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--color-primary); color: var(--color-bg); }
.btn-accent { border-color: var(--color-accent); color: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent); color: var(--color-bg); }
.btn-filled { background: var(--color-primary); color: var(--color-bg); }
.btn-filled:hover { background: transparent; color: var(--color-primary); }
.btn-ghost {
  border: none;
  padding: 12px 0;
  background: transparent;
  color: var(--color-primary);
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--color-primary);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.btn-ghost:hover::after { transform: scaleX(0.6); }
.btn-ghost:hover { background: transparent; color: var(--color-accent); }
.btn-ghost:hover::after { background: var(--color-accent); }

/* Icon */
.icon { width: 20px; height: 20px; stroke-width: 1.5; flex-shrink: 0; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(238, 234, 225, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--color-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  line-height: 0;
}
.brand-logo {
  display: block;
  height: 30px;
  width: auto;
  object-fit: contain;
}
.brand-logo.light { display: none; }
.brand-logo.dark  { display: block; }
@media (min-width: 768px) {
  .brand-logo { height: 34px; }
}
.drawer .brand-logo { height: 28px; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 36px;
}
.nav-desktop a {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-primary);
  transition: color 0.2s ease;
  position: relative;
}
.nav-desktop a:hover { color: var(--color-accent); }
.nav-desktop a.active { color: var(--color-accent); }
.nav-desktop a.active::before {
  content: '';
  position: absolute;
  top: 50%; left: -12px;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; padding: 10px 22px; font-size: 14px; } }

.menu-toggle {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--color-primary);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 16, 14, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 110;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  max-width: 86vw;
  height: 100vh;
  background: var(--color-bg);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-left: 1px solid var(--color-border);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, padding 0.2s ease;
}
.drawer nav a:hover { color: var(--color-accent); padding-left: 8px; }
.drawer-footer { margin-top: auto; }
.drawer .btn { width: 100%; }

/* ============================================================
   FILTER BAR (shared: landing portfolio preview + portfolio page + insights)
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 11px 24px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  background: transparent;
  color: var(--color-primary);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
button.filter-chip { cursor: pointer; }
button.filter-chip:hover { border-color: var(--color-primary); }
button.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}
span.filter-chip {
  cursor: default;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}
.animate-on-scroll.in-view {
  animation: fadeInUp 0.7s var(--ease-out) forwards;
}
.stagger-1 { animation-delay: 0.05s !important; }
.stagger-2 { animation-delay: 0.15s !important; }
.stagger-3 { animation-delay: 0.25s !important; }
.stagger-4 { animation-delay: 0.35s !important; }
.stagger-5 { animation-delay: 0.45s !important; }
.stagger-6 { animation-delay: 0.55s !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 80px 0 0;
  margin-top: 0;
}
.site-footer h2, .site-footer h3, .site-footer h4 { color: var(--color-bg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
}

.footer-brand { display: flex; flex-direction: column; gap: 24px; }
.footer-brand .brand-logo.dark  { display: none; }
.footer-brand .brand-logo.light { display: block; height: 36px; }
.footer-tagline { font-size: 18px; line-height: 1.5; color: rgba(238, 234, 225, 0.75); max-width: 420px; }

.contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(238, 234, 225, 0.85);
  font-size: 15px;
}
.contact-item .icon { color: var(--color-accent); margin-top: 2px; }
.contact-item strong { color: var(--color-bg); font-weight: 500; display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }

.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(238, 234, 225, 0.25);
  border-radius: 8px;
  color: rgba(238, 234, 225, 0.85);
  transition: all 0.25s ease;
}
.socials a:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }

/* Footer contact form */
.contact-form {
  background: rgba(238, 234, 225, 0.05);
  border: 1px solid rgba(238, 234, 225, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}
@media (min-width: 768px) { .contact-form { padding: 40px; } }
.contact-form h3 { color: var(--color-bg); margin-bottom: 8px; }
.contact-form .sub { color: rgba(238, 234, 225, 0.6); margin-bottom: 28px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: rgba(238, 234, 225, 0.7); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  background: transparent;
  border: 1px solid rgba(238, 234, 225, 0.2);
  color: var(--color-bg);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(238, 234, 225, 0.35); }
.field select option { background: var(--color-primary); color: var(--color-bg); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; gap: 16px; } .field-row .field { margin-bottom: 0; } }

.form-submit {
  width: 100%;
  padding: 14px 28px;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid var(--color-accent);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.form-submit:hover { background: transparent; color: var(--color-accent); }
.form-success {
  display: none;
  padding: 14px 16px;
  background: rgba(181, 96, 55, 0.15);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-bg);
  font-size: 14px;
  margin-top: 16px;
}
.form-success.show { display: block; animation: fadeInUp 0.4s var(--ease-out); }

/* Footer contact CTA panel — link to booking.html */
.contact-cta {
  background: rgba(238, 234, 225, 0.05);
  border: 1px solid rgba(238, 234, 225, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) { .contact-cta { padding: 48px; } }
.contact-cta .eyebrow {
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-cta h3 {
  color: var(--color-bg);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.contact-cta .sub {
  color: rgba(238, 234, 225, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  font-family: var(--font-sans);
}
.contact-cta-btn:hover {
  background: transparent;
  color: var(--color-accent);
  transform: translateY(-1px);
}
.contact-cta-btn .icon {
  transition: transform 0.25s ease;
}
.contact-cta-btn:hover .icon { transform: translateX(4px); }
.contact-cta-alt {
  color: rgba(238, 234, 225, 0.55);
  font-size: 14px;
  text-align: center;
  margin: 4px 0 0;
}
.contact-cta-alt a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.contact-cta-alt a:hover { opacity: 0.75; }

.footer-copyright {
  border-top: 1px solid rgba(238, 234, 225, 0.15);
  margin-top: 64px;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(238, 234, 225, 0.55);
}

/* ============================================================
   LIGHTBOX (used by portfolio gallery)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 16, 14, 0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; animation: fadeInUp 0.3s ease; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(238, 234, 225, 0.1);
  color: var(--color-bg);
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: var(--color-accent); }

/* ============================================================
   FLOATING NAV BUTTONS (go-top / go-end)
   ============================================================ */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 150;
}
@media (min-width: 768px) {
  .fab-group { bottom: 32px; right: 32px; }
}
.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-primary);
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.75) translateY(8px);
  pointer-events: none;
  transition: background 0.25s ease, color 0.25s ease,
              opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fab.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.fab:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* ── Image protection: view-only, no interaction, no titles ────────────── */

/* 1. Tắt mọi tương tác trực tiếp với thẻ <img> */
img {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 2. Tắt hoàn toàn mọi tương tác trên container ảnh
      (click, hover, chuột phải, giữ ngón tay, cursor tay) */
.masonry-item,
.gallery-item,
.slide,
.img-wrap,
.img-cell,
.thumb {
  pointer-events: none !important;
  cursor: default !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 3. Ẩn toàn bộ tiêu đề overlay và icon zoom hover */
.masonry-item .overlay,
.masonry-item .zoom,
.gallery-item .overlay,
.gallery-item .zoom {
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
