/* ===== DGA Creative — public site theme (per DGA Brand Guidelines 2026) ===== */
@import url('fonts.css');

:root {
  /* DGA brand palette (see brand guidelines) */
  --dga-coral: #ff4500;   /* DGA Burnt Coral — primary accent */
  --dga-orange: #ff8c00;  /* DGA Dark Orange — secondary accent */
  --dga-white: #ffffff;
  --dga-brown: #2d1b14;   /* DGA Deep Brown */
  --dga-black: #000000;

  --bg-darkest: var(--dga-black);
  --bg-dark: #21140d;
  --bg-panel: #3a2417;
  --bg-panel-alt: #180e08;
  --brand-primary: var(--dga-coral);
  --brand-secondary: var(--dga-orange);
  --text-light: #f7f2ee;
  --text-muted: #c2a99b;
  --border-soft: rgba(255, 69, 0, 0.3);
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --placeholder-a: #1e1e1e;
  --placeholder-b: #222222;
  --radius: 6px;
  --container: 1200px;

  --font-heading: 'Zalando Sans Expanded', Arial, sans-serif;
  --font-body: 'Bricolage Grotesque', Arial, sans-serif;
  --font-decorative: 'Playpen Sans', cursive;
}

/* Light mode — same tokens, re-tuned for a light warm-neutral surface.
   The hero banner keeps its own dark photo-overlay treatment regardless
   of theme (see .hero-slide::before), so it isn't themed here. */
[data-theme="light"] {
  --bg-darkest: #ffffff;
  --bg-dark: #fbf6f2;
  --bg-panel: #ffffff;
  --bg-panel-alt: #f3ece5;
  --text-light: #2a1c14;
  --text-muted: #7a6459;
  --border-soft: rgba(255, 69, 0, 0.25);
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.16);
  --placeholder-a: #ececec;
  --placeholder-b: #e0e0e0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}

body, .topbar, .site-header, .site-footer, .item-card, .dropdown-menu,
.footer-social a, .topbar-social a, .content-section, .page-hero,
.contact-form input, .contact-form textarea, .theme-toggle, .media-placeholder {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

h1, h2, h3, h4, h5, h6,
.section-heading, .logo, .main-nav a, .hero-slide-content h2,
.hero-bottom-bar, .btn-gold, .footer-col h4, .item-card .caption {
  font-family: var(--font-heading);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section-heading {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--text-light);
  margin: 0 0 40px;
  position: relative;
  padding-bottom: 16px;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--brand-primary);
}
.section-heading-link {
  color: inherit;
  transition: color .2s ease;
}
.section-heading-link:hover { color: var(--brand-primary); }
.section-heading-link::after {
  content: '\2192';
  display: inline-block;
  margin-left: 10px;
  font-weight: 400;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.section-heading-link:hover::after { opacity: 1; transform: translateX(0); }

/* "Xem thêm" button under each homepage section — makes the link to the
   full category page obvious (client feedback: title alone wasn't clear). */
.section-more { text-align: center; margin-top: 34px; }
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  border: 2px solid var(--brand-primary);
  border-radius: 999px;
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: background .2s ease, color .2s ease, gap .2s ease, transform .2s ease;
}
.btn-more span { transition: transform .2s ease; }
.btn-more:hover {
  background: var(--brand-primary);
  color: #171310;
  gap: 14px;
  transform: translateY(-2px);
}
.btn-more:hover span { transform: translateX(2px); }

/* ===== Top bar ===== */
.topbar {
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar-links a {
  color: var(--text-muted);
  margin-right: 18px;
  transition: color .2s;
}
.topbar-links a:hover { color: var(--brand-primary); }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--hairline);
  color: var(--text-light);
  font-size: 0.75rem;
}
.topbar-social a:hover { background: var(--brand-primary); color: #111; }

/* ===== Main header ===== */
.site-header {
  background: var(--bg-darkest);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: var(--brand-primary);
}
.logo img { height: 56px; width: auto; }
.logo .tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.logo .tagline.standalone {
  max-width: 150px;
  white-space: normal;
  line-height: 1.3;
}

.header-actions { display: flex; align-items: center; gap: 6px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { background: var(--brand-primary); color: #171310; border-color: var(--brand-primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 28px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  transition: color .2s;
}
.main-nav > ul > li:hover > a,
.main-nav > ul > li.active > a { color: var(--brand-primary); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-top: 2px solid var(--brand-primary);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.dropdown-menu li a:hover { color: var(--brand-primary); background: rgba(255,69,0,0.08); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--bg-darkest);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.35) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.hero-slide-content h2 {
  font-size: 3.4rem;
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0;
  color: var(--dga-white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.hero-slide-content h2 .accent { color: var(--brand-primary); display: block; }
.hero-slide-content p {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
}
/* ===== Brand mark accents (from the DGA logo: Digital Pixels + Viewfinder) ===== */
.digital-pixels {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.digital-pixels span { display: block; }
.digital-pixels span:nth-child(1) { grid-column: 2; grid-row: 1; background: var(--brand-secondary); }
.digital-pixels span:nth-child(2) { grid-column: 1; grid-row: 2; background: var(--brand-primary); }

/* Viewfinder: the asymmetric 3-corner focus-bracket mark from the logo.
   Drawn with layered gradients so it works as a plain element or a
   ::before/::after pseudo-element with no extra markup. Used where we're
   reproducing the actual logo mark (e.g. the hero accent). */
.viewfinder-mark {
  --vf-color: var(--brand-primary);
  --vf-thickness: 3px;
  --vf-arm: 20px;
  background:
    linear-gradient(var(--vf-color), var(--vf-color)) top left / var(--vf-arm) var(--vf-thickness) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) top left / var(--vf-thickness) var(--vf-arm) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) top right / var(--vf-arm) var(--vf-thickness) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) top right / var(--vf-thickness) var(--vf-arm) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) bottom left / var(--vf-arm) var(--vf-thickness) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) bottom left / var(--vf-thickness) var(--vf-arm) no-repeat;
}

/* Camera-focus frame: full 4-corner version for interactive "focus" UI
   (video frame, video card hover) — a functional affordance, not a
   reproduction of the logo mark, so all four corners are drawn. */
.video-wrap::after,
.item-card .thumb::after {
  --vf-color: var(--brand-primary);
  --vf-thickness: 3px;
  --vf-arm: 20px;
  background:
    linear-gradient(var(--vf-color), var(--vf-color)) top left / var(--vf-arm) var(--vf-thickness) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) top left / var(--vf-thickness) var(--vf-arm) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) top right / var(--vf-arm) var(--vf-thickness) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) top right / var(--vf-thickness) var(--vf-arm) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) bottom left / var(--vf-arm) var(--vf-thickness) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) bottom left / var(--vf-thickness) var(--vf-arm) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) bottom right / var(--vf-arm) var(--vf-thickness) no-repeat,
    linear-gradient(var(--vf-color), var(--vf-color)) bottom right / var(--vf-thickness) var(--vf-arm) no-repeat;
}

.hero-accent-pixels {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--brand-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--brand-primary); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  color: #171310;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 3;
}

/* ===== Full-height hero video ===== */
.hero-video-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--dga-black);
}
.hero-video, .hero-video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

/* ===== Intro video ===== */
.intro-video {
  padding: 50px 0;
  background: var(--bg-darkest);
}
.video-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-wrap::after {
  content: '';
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  --vf-thickness: 3px;
  --vf-arm: 24px;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* ===== Content sections (grids) ===== */
.content-section { padding: 60px 0; }
.content-section:nth-child(even) { background: var(--bg-panel-alt); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.item-card {
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.item-card:hover { transform: translateY(-4px); border-color: var(--border-soft); }
.item-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.item-card .thumb::after {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .25s ease, transform .25s ease;
  --vf-arm: 16px;
}
.item-card:hover .thumb::after { opacity: 1; transform: scale(1); }
.item-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.item-card:hover .thumb img { transform: scale(1.08); }

/* Profile photos are portraits — show the full frame instead of cropping
   to the standard 16:10 video-thumb ratio (client feedback: heads were
   getting cut off). */
.card-grid-contain .item-card .thumb {
  aspect-ratio: 3 / 4;
  background: var(--bg-panel-alt);
}
.card-grid-contain .item-card .thumb img { object-fit: contain; }

.item-card .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: var(--dga-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  padding-left: 3px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.item-card:hover .play-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); background: var(--brand-primary); color: #171310; }
.item-card .caption {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ===== Placeholder box (no image uploaded yet) ===== */
.media-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: repeating-linear-gradient(135deg, var(--placeholder-a), var(--placeholder-a) 10px, var(--placeholder-b) 10px, var(--placeholder-b) 20px);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 10px;
}
.media-placeholder svg { width: 28px; height: 28px; opacity: 0.5; }

/* ===== Reviews slider ===== */
.reviews-section { padding: 70px 0; background: var(--bg-panel-alt); overflow: hidden; }
.reviews-sub { text-align: center; color: var(--text-muted); margin: -20px 0 44px; font-size: 0.92rem; }
.reviews-sub a { color: var(--brand-primary); font-weight: 600; }

.reviews-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.reviews-arrow {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-panel);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.reviews-arrow:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #171310; }

.reviews-viewport { flex: 1; min-width: 0; position: relative; }
.review-slide { display: none; }
.review-slide.active { display: block; animation: reviewFadeIn .5s ease; }
@keyframes reviewFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.review-card {
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 48px 44px 36px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.review-card .quote-icon {
  width: 40px;
  height: 30px;
  fill: var(--brand-primary);
  opacity: 0.35;
  margin: 0 auto 18px;
  display: block;
}
.review-text {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 0 0 26px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.review-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #171310;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
}
.review-meta-text { text-align: left; }
.review-author { font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem; color: var(--text-light); }
.review-source { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.reviews-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--brand-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.reviews-dots button.active { background: var(--brand-primary); }

@media (max-width: 640px) {
  .reviews-slider { gap: 10px; }
  .reviews-arrow { width: 36px; height: 36px; font-size: 0.85rem; }
  .review-card { padding: 34px 20px 26px; }
  .review-text { font-size: 1.05rem; }
}

/* ===== Clients ===== */
.clients-section { padding: 60px 0; background: var(--bg-darkest); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.client-logo {
  background: #fff;
  border-radius: var(--radius);
  aspect-ratio: 2 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.client-logo img { max-height: 100%; width: auto; object-fit: contain; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-darkest); padding-top: 50px; border-top: 1px solid var(--hairline); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr 1fr 0.9fr;
  gap: 30px;
  padding-bottom: 40px;
}
.fb-page-widget { max-width: 100%; border-radius: var(--radius); overflow: hidden; }
.fb-page-widget iframe { max-width: 100%; }
.footer-col h4 {
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--brand-primary);
  color: var(--text-light);
}
.footer-col p { color: var(--text-muted); font-size: 0.88rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--brand-primary); }
.footer-col ul li a::before { content: '» '; color: var(--brand-primary); }
.footer-contact li { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; }
.footer-contact li strong { color: var(--text-light); display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
}
.footer-social a:hover { background: var(--brand-primary); color: #111; }
.footer-map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); }
.footer-map iframe { width: 100%; height: 140px; border: 0; filter: grayscale(0.3); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: 18px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== Pixel loader (intro reveal) ===== */
#pixel-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dga-black);
  grid-gap: 0;
}
.js #pixel-loader { display: grid; }
#pixel-loader.loader-out {
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
#pixel-loader .pixel-tile {
  opacity: 1;
  transform: scale(1);
  transition: opacity .5s ease, transform .5s ease;
}
#pixel-loader .pixel-tile.hide { opacity: 0; transform: scale(.35); }
#pixel-loader .t-brown { background: var(--dga-brown); }
#pixel-loader .t-black { background: var(--dga-black); }
#pixel-loader .t-panel { background: var(--bg-panel); }
#pixel-loader .t-coral { background: var(--dga-coral); }
#pixel-loader .t-orange { background: var(--dga-orange); }
#pixel-logo-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 55vw;
  max-height: 40vh;
  transition: opacity .4s ease;
}
@media (prefers-reduced-motion: reduce) {
  #pixel-loader { display: none !important; }
}

/* ===== Floating buttons ===== */
.float-phone {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 200;
  display: flex; align-items: center;
  background: var(--brand-primary);
  color: #171310;
  font-weight: 800;
  border-radius: 30px;
  padding: 10px 18px 10px 10px;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255,69,0,0.4);
}
.float-phone .icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #171310;
  color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(23,19,16,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(23,19,16,0); }
  100% { box-shadow: 0 0 0 0 rgba(23,19,16,0); }
}
.scroll-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #171310;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  border: none;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }

/* ===== Inner pages ===== */
.page-hero {
  position: relative;
  background: var(--bg-darkest);
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-accent-pixels { top: 18px; left: 18px; opacity: 0.85; }
.page-hero h1 { text-transform: uppercase; font-weight: 800; margin: 0; letter-spacing: 1px; }
.page-hero .crumb { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.page-hero .crumb a { color: var(--brand-primary); }
.page-content { padding: 50px 0; max-width: 860px; margin: 0 auto; }
.page-content p { color: var(--text-muted); margin-bottom: 16px; }
.page-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
}
/* Wrap a group of <img> tags in <div class="photo-grid"> in the page editor
   to lay them out as an even grid (e.g. team photos). */
.page-content .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.page-content .photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin: 0;
}

/* Team mosaic (Giới Thiệu page). Mark each <img> class="wide" (2x2 cells) or
   class="tall" (1x2 cells); a set of 4 wide + 4 tall tiles fills a 4-column grid exactly. */
.page-content .team-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 12px;
  width: min(1100px, 92vw);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 10px 0 30px;
}
.page-content .team-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
  grid-column: span 1;
  grid-row: span 2;
  transition: transform .3s ease, filter .3s ease;
}
.page-content .team-gallery img.wide { grid-column: span 2; }
.page-content .team-gallery img:hover { transform: scale(1.015); filter: brightness(1.08); }

/* Click-to-enlarge overlay for gallery images */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox button:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #171310; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .page-content .team-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px 0; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--hairline-strong);
  color: var(--text-light);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-family: inherit;
}
.btn-gold {
  display: inline-block;
  background: var(--brand-primary);
  color: #171310;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.btn-gold:hover { background: var(--brand-secondary); }

.notice-banner {
  background: rgba(255,69,0,0.1);
  border: 1px solid var(--border-soft);
  color: var(--brand-secondary);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ===== Mobile nav toggle ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-slide-content h2 { font-size: 2.2rem; }
}

@media (max-width: 720px) {
  .topbar-links a:not(:first-child) { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: var(--bg-panel);
    flex-direction: column;
    padding: 70px 0 20px;
    transition: right .25s;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; width: 100%; }
  .main-nav > ul > li { width: 100%; }
  .main-nav > ul > li > a { padding: 14px 24px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: none; background: rgba(0,0,0,0.2); }
  .dropdown.open .dropdown-menu { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { height: 460px; }
  .hero-accent-pixels { top: 18px; left: 18px; }
  .hero-accent-pixels.digital-pixels { width: 20px; height: 20px; }
}
