/* Shared components: buttons, site header + drawer nav, contact banner, location block, footer */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px; border: 1px solid transparent; border-radius: 2px;
  font: 700 16px/1 var(--font-body); letter-spacing: 0.1em; cursor: pointer;
  transition: transform .2s ease, filter .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--yellow-400); outline-offset: 3px; }
.btn--gold { background: var(--grad-gold-btn); color: #0B1B2B; }
.btn--outline { border-color: var(--gold-400); color: var(--gold-400); background: transparent; }
.btn--outline-light { border-color: var(--gold-400); color: var(--white); background: transparent; }
.btn--outline:hover, .btn--outline-light:hover { background: rgba(239, 198, 97, 0.12); }
.btn--navy { background: linear-gradient(180deg, #073457, #005CA3); color: var(--white); }
.btn--white { background: var(--white); color: #000; }
.btn--sm { min-height: 32px; font-size: 14px; padding: 6px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-top: 12px; }
.site-header__logo img { width: 128px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__link { position: relative; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; padding-block: 6px; }
.site-nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 0; height: 1px;
  background: var(--gold-400); transition: width .25s ease, left .25s ease;
}
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { width: 66%; left: 17%; }
.site-header__phone { font-size: 16px; letter-spacing: 0.05em; padding-inline: 16px; }
.menu-toggle { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 1.5px; background: var(--white); border-radius: 2px; margin: 2.5px 0; }
.menu-toggle span:last-child { width: 18px; margin-right: 7px; }

/* Drawer (all extra links; also the main nav on mobile) */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 10, 20, .6); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw); padding: 32px;
  background: var(--grad-panel); transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__panel > img { width: 120px; }
.drawer__close { align-self: flex-end; background: none; border: 0; color: var(--white); font-size: 32px; line-height: 1; cursor: pointer; }
.drawer__links a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); text-transform: uppercase; letter-spacing: .05em; }
.drawer__links a[aria-current="page"] { color: var(--yellow-400); }

/* ---------- Contact banner (staff photo + phone) ---------- */
.contact-banner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; overflow: hidden;
  border: 1px solid var(--gold-400); border-radius: 6px; background: var(--grad-banner); min-height: 298px;
}
/* staff photo is anchored to the banner bottom; heads are cropped by the banner top edge like the design */
.contact-banner__photo { position: absolute; left: 50px; bottom: 0; width: min(600px, 48%); }
.contact-banner__body { grid-column: 2; padding: 40px 48px 40px 0; text-align: center; align-self: center; }
.contact-banner__body p { font-size: 14px; color: var(--text-muted); max-width: 400px; margin: 0 auto 22px; }
.contact-banner__row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.contact-banner__label { font-size: 18px; text-transform: uppercase; }
.contact-banner__phone { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: .05em; color: var(--yellow-400); }
.contact-banner__social { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.contact-banner__social img { width: 30px; height: 30px; }

/* ---------- Location ---------- */
.location__grid { display: grid; grid-template-columns: 480px 1fr; gap: 28px; }
.location__card { background: var(--grad-panel); border-radius: 6px; padding: 44px 72px; }
.location__card .lead { margin-bottom: 30px; }
.location__name { font-weight: 600; font-size: 24px; letter-spacing: .05em; margin-bottom: 24px; }
.location__list li { display: grid; grid-template-columns: 24px 1fr; gap: 20px; align-items: start; margin-bottom: 16px; font-size: 16px; line-height: 24px; }
.location__list img { width: 22px; height: 22px; margin-top: 1px; }
.location__card .btn { margin-top: 28px; }
.location__map { border-radius: 8px; overflow: hidden; min-height: 380px; }
.location__map img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: 32px; }
.site-footer__panel {
  display: grid; grid-template-columns: 1.1fr 0.9fr 1.2fr 1.1fr 0.8fr; gap: 24px; align-items: center;
  background: linear-gradient(180deg, #073457 0%, #005CA3 100%); border-radius: 6px; padding: 32px 56px;
}
.site-footer__logo img { width: 130px; }
.site-footer__links a { display: block; font-size: 14px; text-transform: uppercase; line-height: 26px; opacity: .9; }
.site-footer__links a:hover { color: var(--yellow-400); }
.site-footer__title { font-size: 14px; opacity: .9; margin-bottom: 8px; }
.site-footer__phone { font-size: 24px; font-weight: 500; letter-spacing: .05em; }
.site-footer__social { display: flex; align-items: center; gap: 14px; }
.site-footer__social img { height: 22px; width: auto; }
.site-footer__copy { text-align: center; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 18px; }

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .location__grid { grid-template-columns: 1fr; }
  .site-footer__panel { grid-template-columns: 1fr 1fr; padding: 32px; }
}
@media (max-width: 760px) {
  :root { --header-h: 76px; }
  .site-header__logo img { width: 96px; }
  .site-header__phone { display: none; }
  .contact-banner { grid-template-columns: 1fr; }
  .contact-banner__photo { position: static; order: 2; width: 100%; margin: 0 auto; }
  .contact-banner__body { grid-column: 1; padding: 32px 20px 8px; }
  .contact-banner__phone { font-size: 32px; }
  .location__card { padding: 32px 24px; }
  .location__map { min-height: 260px; }
  .site-footer__panel { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Sticky chat buttons (Zalo, Messenger) bottom-right ---------- */
.float-chat { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 14px; }
.float-chat__btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .2s ease;
}
.float-chat__btn img { width: 40px; height: 40px; border-radius: 10px; }
.float-chat__btn:last-child img { width: 56px; height: 56px; border-radius: 50%; }
.float-chat__btn:hover { transform: scale(1.08); }
.float-chat__btn:focus-visible { outline: 2px solid var(--yellow-400); outline-offset: 3px; }
/* soft pulse ring to draw attention */
.float-chat__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: float-chat-pulse 2.4s ease-out infinite; }
.float-chat__btn:first-child { color: #0068FF; }
.float-chat__btn:last-child { color: #A033FF; }
.float-chat__btn:last-child::before { animation-delay: 1.2s; }
@keyframes float-chat-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.float-chat__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 6px 12px; border-radius: 4px; background: var(--navy-800); color: var(--white); font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
/* tooltip only on real-hover devices; on touch screens it would stay stuck after a tap */
@media (hover: hover) { .float-chat__btn:hover .float-chat__tip, .float-chat__btn:focus-visible .float-chat__tip { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .float-chat__btn::before { animation: none; } }
@media (max-width: 760px) {
  .float-chat { right: 14px; bottom: 16px; gap: 12px; }
  .float-chat__btn, .float-chat__btn:last-child img { width: 50px; height: 50px; }
  .float-chat__btn img { width: 36px; height: 36px; }
}
