/* ==========================================================================
   Hung Thinh Phat Media – front-end styles
   Palette: logo blue/navy + beige + gold
   ========================================================================== */
:root {
  --navy: #0e2a47;
  --navy-2: #133759;
  --navy-3: #1a4670;
  --blue: #1f6fb2;
  --blue-2: #2a86c9;
  --gold: #c9a45c;
  --gold-2: #ad8742;
  --gold-3: #e7d3a4;
  --beige: #f7f1e7;
  --beige-2: #efe5d3;
  --beige-3: #e4d6bd;
  --ink: #1a2432;
  --text: #414b5a;
  --muted: #6b7482;
  --line: #e8dfcf;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(14, 42, 71, .08);
  --shadow-lg: 0 24px 60px rgba(14, 42, 71, .16);
  --ff-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ff-body); font-size: 16px; line-height: 1.75; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.h3 { font-size: 1.5rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 900px; }
.is-center { text-align: center; justify-content: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 30px; border-radius: 50px; border: 2px solid transparent;
  font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  transition: all .3s var(--ease); line-height: 1.2; white-space: nowrap;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%); color: var(--white); box-shadow: 0 8px 20px rgba(173, 135, 66, .3); }
.btn--gold:hover { color: var(--white); box-shadow: 0 12px 26px rgba(173, 135, 66, .45); transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--sm { padding: 11px 22px; font-size: .75rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar__info { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__info a, .topbar__info > span { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar__info .icon { color: var(--gold); width: 15px; height: 15px; }
.topbar__info a:hover { color: var(--gold-3); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a { width: 30px; height: 30px; display: grid; place-items: center; color: rgba(255,255,255,.8); border-radius: 50%; }
.topbar__social a:hover { color: var(--navy); background: var(--gold); }
.topbar__social .icon { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,42,71,.1); }
.site-header__inner { display: flex; align-items: center; gap: 30px; height: var(--header-h); transition: height .3s; }
.site-header.is-scrolled .site-header__inner { height: 72px; }
.brand img { height: 62px; width: auto; transition: height .3s; }
.site-header.is-scrolled .brand img { height: 52px; }
.main-nav { margin-left: auto; }
.main-nav__head, .main-nav__foot { display: none; }
.menu { list-style: none; display: flex; align-items: center; gap: 6px; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a {
  display: block; padding: 10px 16px; font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); position: relative;
}
.menu > li > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu > li:hover > a, .menu > li.is-active > a { color: var(--blue); }
.menu > li:hover > a::after, .menu > li.is-active > a::after { transform: scaleX(1); }
.sub-toggle { background: none; border: 0; padding: 4px; margin-left: -12px; color: var(--ink); display: grid; place-items: center; }
.sub-toggle .icon { width: 15px; height: 15px; transition: transform .3s; }
.submenu {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--white); border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub:hover .sub-toggle .icon { transform: rotate(180deg); }
.submenu a { display: flex; align-items: center; gap: 12px; padding: 11px 22px; color: var(--ink); font-size: .9rem; font-weight: 500; }
.submenu a .icon { color: var(--gold-2); }
.submenu a:hover { background: var(--beige); color: var(--blue); padding-left: 28px; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: var(--navy); color: var(--white); border: 0; width: 46px; height: 46px; border-radius: 10px; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-backdrop { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 780px); background: var(--navy); overflow: hidden; color: var(--white); }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,54,.92) 0%, rgba(14,42,71,.75) 45%, rgba(14,42,71,.25) 100%); }
.hero__content { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 110px; }
.hero__content > * { max-width: 700px; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > *:nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { transition-delay: .45s; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-3); font-weight: 600; margin-bottom: 22px; }
.hero__eyebrow::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); color: var(--white); line-height: 1.1; margin-bottom: 24px; font-weight: 600; }
.hero__title em, .section-title em, .cta__title em { font-style: italic; color: var(--gold); }
.hero__text { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255,255,255,.85); max-width: 580px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__nav { position: absolute; z-index: 3; bottom: 40px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 18px; }
.hero__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: var(--white); display: grid; place-items: center; transition: all .3s; }
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.4); padding: 0; transition: all .35s; }
.hero__dots button.is-active { width: 36px; background: var(--gold); }

/* ---------- Platforms marquee ---------- */
.platforms { background: linear-gradient(90deg, var(--gold-2), var(--gold)); overflow: hidden; padding: 16px 0; }
.platforms__track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.platforms__track span { display: inline-flex; align-items: center; gap: 16px; color: var(--white); font-family: var(--ff-head); font-size: 1.35rem; font-style: italic; white-space: nowrap; }
.platforms__track .icon { width: 16px; height: 16px; color: var(--navy); fill: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--beige { background: var(--beige); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.is-center { margin-left: auto; margin-right: auto; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.is-center .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.section-title--sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-lead { font-size: 1.05rem; color: var(--muted); }
.is-light .section-title, .is-light .eyebrow { color: var(--white); }
.is-light .eyebrow { color: var(--gold-3); }
.is-light .section-lead { color: rgba(255,255,255,.75); }
.prose { color: var(--text); }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 20px 26px; border-left: 4px solid var(--gold); background: var(--beige); font-family: var(--ff-head); font-style: italic; font-size: 1.15rem; color: var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose .lead, .article__lead { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius-sm); }
.block-gap { margin-top: 44px; }

.grid { display: grid; gap: 30px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro__media { position: relative; padding: 0 60px 60px 0; }
.intro__media::before { content: ""; position: absolute; top: -24px; left: -24px; width: 60%; height: 70%; border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0; }
.intro__img1 { position: relative; z-index: 1; width: 100%; aspect-ratio: 5/6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.intro__img2 { position: absolute; z-index: 2; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--white); box-shadow: var(--shadow-lg); }
.intro__badge { position: absolute; z-index: 3; left: -20px; bottom: 90px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); max-width: 260px; }
.intro__badge strong { font-family: var(--ff-head); font-size: 3rem; color: var(--gold); line-height: 1; }
.intro__badge span { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.intro__media--right { padding: 0 0 60px 60px; }
.intro__media--right::before { left: auto; right: -24px; }
.intro__media--right .intro__img2 { right: auto; left: 0; }
.intro__media--right .intro__badge { left: auto; right: -20px; }
.intro__content .prose { margin-bottom: 30px; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); padding: 60px 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 50%, rgba(42,134,201,.25), transparent 50%), radial-gradient(circle at 90% 50%, rgba(201,164,92,.18), transparent 45%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 10px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--ff-head); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold); line-height: 1.1; }
.stat span { color: rgba(255,255,255,.8); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Service cards ---------- */
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.service-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.08); }
.service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(14,42,71,.5)); }
.service-card__icon { position: absolute; z-index: 1; left: 24px; bottom: -26px; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(173,135,66,.4); border: 4px solid var(--white); transition: background .3s; }
.service-card__media { overflow: visible; }
.service-card__media img { border-radius: var(--radius) var(--radius) 0 0; }
.service-card__media::after { border-radius: var(--radius) var(--radius) 0 0; }
.service-card:hover .service-card__icon { background: var(--navy); }
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card__body { padding: 44px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card__body p { font-size: .92rem; color: var(--muted); flex: 1; }
.service-card__title { font-size: 1.3rem; margin-bottom: 12px; }
.service-card__title a { color: var(--ink); }
.service-card__title a:hover { color: var(--blue); }

/* ---------- Values ---------- */
.values { background: var(--navy-2); position: relative; overflow: hidden; }
.values::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 80px solid rgba(201,164,92,.06); right: -160px; top: -160px; }
.values__grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.value { text-align: center; padding: 36px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); transition: all .4s var(--ease); background: rgba(255,255,255,.03); }
.value:hover { background: rgba(255,255,255,.07); border-color: var(--gold); transform: translateY(-6px); }
.value__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,164,92,.14); color: var(--gold); }
.value__icon .icon { width: 30px; height: 30px; }
.value h3 { color: var(--white); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--ff-body); font-weight: 700; margin-bottom: 10px; }
.value p { color: rgba(255,255,255,.7); font-size: .88rem; margin: 0; }

/* ---------- Showreel ---------- */
.showreel__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: center; }
.showreel__content .btn { margin-top: 10px; }
.video-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video-thumb:not(.is-static)::after { content: ""; position: absolute; inset: 0; background: rgba(14,42,71,.35); transition: background .3s; }
.video-thumb:hover img { transform: scale(1.05); }
.play-btn { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 92px; height: 92px; border-radius: 50%; background: var(--gold); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(201,164,92,.6); animation: pulse 2s infinite; }
.play-btn .icon { width: 30px; height: 30px; fill: currentColor; margin-left: 5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,164,92,.6); } 70% { box-shadow: 0 0 0 26px rgba(201,164,92,0); } 100% { box-shadow: 0 0 0 0 rgba(201,164,92,0); } }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Process ---------- */
.process__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; position: relative; }
.process__list::before { content: ""; position: absolute; top: 38px; left: 12%; right: 12%; border-top: 2px dashed var(--beige-3); }
.process__step { position: relative; text-align: center; padding: 0 10px; }
.process__num { position: relative; width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); font-family: var(--ff-head); font-size: 1.6rem; color: var(--navy); font-weight: 600; transition: all .3s; }
.process__step:hover .process__num { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.process__step h3 { font-size: 1.3rem; }
.process__step p { color: var(--muted); font-size: .92rem; }

/* ---------- Post cards ---------- */
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--beige-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.07); }
.post-card__cat { position: absolute; left: 16px; top: 16px; background: var(--gold); color: var(--white); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 30px; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__body p { font-size: .92rem; color: var(--muted); flex: 1; }
.post-card__title { font-size: 1.25rem; margin-bottom: 12px; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--blue); }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.post-meta span, .post-meta a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.post-meta .icon { color: var(--gold-2); width: 15px; height: 15px; }
.post-meta--lg { font-size: .88rem; margin-bottom: 24px; gap: 22px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 90px 0; background: var(--navy) var(--bg, none) center/cover no-repeat; color: var(--white); }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,31,54,.95) 30%, rgba(19,55,89,.8)); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta__title { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0; }

/* ---------- Page banner ---------- */
.page-banner { position: relative; padding: 110px 0 100px; background: var(--navy) var(--bg, none) center/cover no-repeat; color: var(--white); text-align: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,31,54,.82), rgba(14,42,71,.88)); }
.page-banner__inner { position: relative; }
.page-banner__title { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; padding: 10px 24px; border-radius: 40px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-size: .85rem; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--gold); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold-3); }
.breadcrumb span { color: var(--gold-3); }

/* ---------- Pillars / why ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pillar { background: var(--white); padding: 44px 34px; border-radius: var(--radius); box-shadow: var(--shadow); border-bottom: 4px solid transparent; transition: all .4s var(--ease); }
.pillar:hover { border-color: var(--gold); transform: translateY(-6px); }
.pillar__icon { width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: var(--gold-3); margin-bottom: 24px; }
.pillar__icon .icon { width: 30px; height: 30px; }
.pillar h3 { font-size: 1.45rem; }
.pillar p { color: var(--muted); margin: 0; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why__media img { width: 100%; aspect-ratio: 6/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.why__media { position: relative; }
.why__media::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 45%; height: 45%; background: var(--gold); border-radius: var(--radius); z-index: -1; opacity: .9; }

.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--white); stroke-width: 3; margin-top: 3px; }
.check-list--2col { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list--rich li { padding: 16px 18px; background: var(--beige); border-radius: var(--radius-sm); }
.check-list--rich strong { display: block; color: var(--ink); }
.check-list--rich span { font-size: .9rem; color: var(--muted); }

/* ---------- Service rows (list page) ---------- */
.service-rows { display: grid; gap: 90px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.service-row.is-reverse .service-row__media { order: 2; }
.service-row__media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/11; }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-row__media:hover img { transform: scale(1.05); }
.service-row__num { position: absolute; top: 20px; left: 20px; font-family: var(--ff-head); font-size: 2.4rem; color: var(--white); background: rgba(14,42,71,.75); width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--gold); }
.service-row__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--beige); color: var(--gold-2); margin-bottom: 18px; }
.service-row__icon .icon { width: 28px; height: 28px; }
.service-row__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.service-row__title a { color: var(--ink); }
.service-row__title a:hover { color: var(--blue); }
.service-row__body > p { color: var(--muted); }

/* ---------- Detail layout / sidebar ---------- */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: start; }
.feature-img { margin: 0 0 34px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-img img { width: 100%; max-height: 540px; object-fit: cover; }
.box-features { margin-top: 40px; padding: 34px; background: var(--beige); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.sidebar { position: sticky; top: 100px; display: grid; gap: 30px; }
.widget { background: var(--beige); border-radius: var(--radius); padding: 30px; }
.widget__title { font-size: 1.3rem; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--beige-3); position: relative; }
.widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--gold); }
.side-nav { list-style: none; display: grid; gap: 8px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; font-size: .92rem; transition: all .3s; }
.side-nav a > span { flex: 1; }
.side-nav a .icon { color: var(--gold-2); }
.side-nav a em { font-style: normal; font-size: .78rem; background: var(--beige); padding: 2px 9px; border-radius: 20px; }
.side-nav__arrow { opacity: .5; }
.side-nav a:hover, .side-nav .is-active a { background: var(--navy); color: var(--white); }
.side-nav a:hover .icon, .side-nav .is-active a .icon { color: var(--gold); }
.widget--contact { background: var(--navy); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.widget--contact::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 40px solid rgba(201,164,92,.1); right: -70px; top: -70px; }
.widget--contact .widget__title { color: var(--white); border-color: rgba(255,255,255,.15); }
.widget--contact .footer-contact { margin: 20px 0 24px; }
.consult-box { margin-top: 50px; padding: 34px 38px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.consult-box h2 { color: var(--white); margin-bottom: 6px; }
.consult-box p { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: var(--white); font-size: .82rem; }
.recent-posts { list-style: none; display: grid; gap: 16px; }
.recent-posts li { display: flex; gap: 14px; align-items: center; }
.recent-posts__img { flex: 0 0 80px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--beige-2); }
.recent-posts__img img { width: 100%; height: 100%; object-fit: cover; }
.recent-posts a:not(.recent-posts__img) { display: block; color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.4; }
.recent-posts a:hover { color: var(--blue); }
.recent-posts time { font-size: .75rem; color: var(--muted); }
.share { display: flex; align-items: center; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--beige); color: var(--navy); }
.share a:hover { background: var(--gold); color: var(--white); }

/* ---------- News filter & pagination ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.filter-bar a { padding: 9px 20px; border-radius: 30px; border: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 500; }
.filter-bar a:hover, .filter-bar a.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span { min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination a:hover, .pagination .is-active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.empty { text-align: center; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card { display: block; text-align: center; padding: 38px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--text); transition: all .35s var(--ease); }
a.contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-6px); color: var(--text); }
.contact-card__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--beige); color: var(--gold-2); }
.contact-card__icon .icon { width: 26px; height: 26px; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.contact-card p { margin: 0; word-break: break-word; font-size: .92rem; }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 50px; align-items: start; }
.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--ink); letter-spacing: .03em; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .95rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fdfbf7; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.15); background: var(--white); }
.field textarea { resize: vertical; min-height: 140px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .92rem; }
.alert--ok { background: #e9f6ee; color: #1d6b3c; border: 1px solid #bfe3cc; }
.alert--err { background: #fdecec; color: #9b2c2c; border: 1px solid #f5c2c2; }
.alert .icon { width: 22px; height: 22px; }
.contact-side { display: grid; gap: 24px; }
.office { background: var(--navy); color: rgba(255,255,255,.8); border-radius: var(--radius); padding: 30px; }
.office h3 { color: var(--gold-3); font-size: 1.3rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--beige-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 140px 0; }
.notfound__code { display: block; font-family: var(--ff-head); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--beige-3); font-weight: 700; }
.notfound .section-lead { max-width: 520px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0a2038; color: rgba(255,255,255,.7); font-size: .92rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-3), var(--gold)); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.4fr; gap: 50px; padding-top: 80px; padding-bottom: 60px; }
.footer-logo img { height: 84px; width: auto; margin-bottom: 22px; }
.footer-title { color: var(--white); font-size: 1.25rem; margin-bottom: 24px; padding-bottom: 14px; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 8px; transition: all .3s; }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--gold); transition: background .3s; }
.footer-links a:hover { color: var(--gold-3); transform: translateX(4px); }
.footer-links a:hover::before { background: var(--gold); }
.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 5px; width: 17px; height: 17px; }
.footer-contact a { color: inherit; word-break: break-word; }
.footer-contact a:hover { color: var(--gold-3); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: var(--white); transition: all .3s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.social .icon { width: 17px; height: 17px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--navy); color: var(--white); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5,15,28,.92); display: grid; place-items: center; padding: 60px 20px; }
.lightbox[hidden] { display: none; }
.lightbox__body { width: min(1100px, 100%); }
.lightbox__body img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox__body .video-frame { box-shadow: none; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center; }
.lightbox__close:hover { background: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .menu > li > a { padding: 10px 12px; }
  .intro__grid, .why__grid, .service-row { gap: 50px; }
}

@media (max-width: 991px) {
  :root { --header-h: 74px; }
  .topbar__info .topbar__hours { display: none; }
  .brand img { height: 52px; }
  .nav-toggle { display: grid; }
  .site-header__actions { margin-left: auto; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--white); z-index: 200;
    transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .nav-open .main-nav { transform: none; }
  /* backdrop-filter tạo khung chứa cho phần tử fixed => menu bị kẹt trong header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav-open .site-header { z-index: 300; }
  .nav-open .site-header::before { content: ""; position: fixed; inset: 0; background: rgba(5,15,28,.55); z-index: 1; }
  .main-nav { z-index: 2; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(5,15,28,.55); z-index: 150; opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .main-nav__head img { height: 46px; width: auto; }
  .nav-close { width: 42px; height: 42px; border-radius: 10px; border: 0; background: var(--beige); color: var(--navy); display: grid; place-items: center; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu > li > a { flex: 1; padding: 16px 22px; font-size: .88rem; }
  .menu > li > a::after { display: none; }
  .menu > li.is-active > a { color: var(--blue); background: var(--beige); }
  .sub-toggle { margin: 0 12px 0 0; width: 40px; height: 40px; border-radius: 8px; background: var(--beige); }
  .submenu { position: static; min-width: 0; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 0 0 10px; display: none; border-radius: 0; }
  .has-sub.is-open .submenu { display: block; }
  .has-sub.is-open .sub-toggle .icon, .has-sub:hover .sub-toggle .icon { transform: none; }
  .has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
  .submenu a { padding: 10px 22px 10px 34px; }
  .main-nav__foot { display: grid; gap: 12px; padding: 22px; margin-top: auto; background: var(--navy); }
  .main-nav__foot a { color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 10px; font-size: .9rem; }
  .main-nav__foot .icon { color: var(--gold); }

  .section { padding: 76px 0; }
  .intro__grid, .why__grid, .showreel__grid, .service-row, .contact-grid { grid-template-columns: 1fr; }
  .intro__media, .intro__media--right { max-width: 600px; margin: 0 auto; width: 100%; }
  .intro__media--right { order: -1; }
  .service-row.is-reverse .service-row__media { order: 0; }
  .service-rows { gap: 70px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .process__list { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process__list::before { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .why__media::after { right: -10px; bottom: -10px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .topbar__info a:nth-child(2) span { display: none; }
  .topbar__info { gap: 16px; }
  .hero { min-height: 640px; }
  .hero__content { padding-bottom: 120px; }
  .hero__slide::after { background: linear-gradient(180deg, rgba(10,31,54,.75), rgba(14,42,71,.9)); }
  .hero__arrow { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .section { padding: 64px 0; }
  .section-head, .section-head-row { margin-bottom: 40px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .value { padding: 26px 14px; }
  .value__icon { width: 58px; height: 58px; margin-bottom: 14px; }
  .value__icon .icon { width: 24px; height: 24px; }
  .value h3 { font-size: .8rem; letter-spacing: .03em; line-height: 1.4; overflow-wrap: break-word; }
  .value p { font-size: .82rem; line-height: 1.55; }
  .values__grid .value:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .intro__media { padding: 0 30px 40px 0; }
  .intro__media--right { padding: 0 0 40px 30px; }
  .intro__media::before { top: -12px; left: -12px; }
  .intro__media--right::before { left: auto; right: -12px; }
  .intro__badge { left: 0; bottom: 60px; padding: 14px 18px; }
  .intro__media--right .intro__badge { right: 0; }
  .intro__badge strong { font-size: 2.2rem; }
  .check-list--2col { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-card { padding: 26px 14px; }
  .contact-form-wrap { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; }
  .page-banner { padding: 70px 0 64px; }
  .consult-box { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .box-features { padding: 24px; }
  .widget { padding: 24px; }
  .service-row__num { width: 60px; height: 60px; font-size: 1.7rem; }
  .play-btn { width: 72px; height: 72px; }
  .btn { padding: 14px 24px; }
}

@media (max-width: 420px) {
  .contact-cards { grid-template-columns: 1fr; }
  .stats__grid { gap: 20px 10px; }
  .stat { border-right: 0; }
  .topbar__social { display: none; }
}
