/* =====================================================================
   LAYOUT.CSS
   The parts that appear on every page: header, menus, page banner,
   footer and the back-to-top button.
   ===================================================================== */

/* ---------- 1. Header --------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1030;
  color: #fff;
  /* Transparent over the photo at the top of the page, with a soft shade so the menu stays readable */
  background: linear-gradient(180deg, rgba(10, 30, 40, .72) 0%, rgba(10, 30, 40, .35) 70%, rgba(10, 30, 40, 0) 100%);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* After scrolling: frosted navy glass */
.site-header.is-scrolled {
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -14px rgba(0, 0, 0, .55);
}

/* Top bar */
.topbar {
  font-family: var(--font-ui); font-size: .82rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  max-height: 44px; overflow: hidden;
  transition: max-height .35s var(--ease), opacity .25s var(--ease);
}
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; border-bottom-color: transparent; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar-contact, .topbar-links { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.topbar-contact li { display: flex; align-items: center; gap: .45rem; color: rgba(255, 255, 255, .8); }
.topbar-contact .bi { color: var(--sky); }
.topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-social { font-size: 1rem; }
.topbar-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .2rem .75rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  font-weight: 600; color: #fff !important;
}
.topbar-cta:hover { background: var(--maroon); border-color: var(--maroon); }

/* Pulsing "live" dot */
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }

/* Main bar */
.mainbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; transition: height .35s var(--ease); }
.site-header.is-scrolled .mainbar-inner { height: 66px; }

.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 56px; height: 56px; transition: width .35s var(--ease), height .35s var(--ease); filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.site-header.is-scrolled .brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; color: #fff; letter-spacing: -.005em; }
@media (min-width: 1200px) { .brand-name { white-space: nowrap; } }
.brand-sub { font-family: var(--font-ui); font-size: .72rem; color: rgba(255, 255, 255, .7); margin-top: .15rem; }

/* Desktop menu */
.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link-main {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .75rem; color: rgba(255, 255, 255, .9); text-decoration: none; border-radius: 999px;
  font-family: var(--font-ui); font-size: .92rem; font-weight: 500; white-space: nowrap; position: relative;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav-link-main .bi { font-size: .7rem; opacity: .7; transition: transform .25s var(--ease); }
.nav-link-main::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-item:hover > .nav-link-main, .nav-item:focus-within > .nav-link-main { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-item:hover > .nav-link-main .bi, .nav-item:focus-within > .nav-link-main .bi { transform: rotate(180deg); }
.nav-item.is-active > .nav-link-main { color: #fff; }
.nav-item.is-active > .nav-link-main::after, .nav-link-main:hover::after { transform: scaleX(1); }

/* Dropdown panel */
.dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: -.5rem; min-width: 250px; z-index: 10;
  list-style: none; margin: 0; padding: .5rem;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(10, 30, 40, .45);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
}
.dropdown-panel.is-wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 470px; }
/* invisible bridge so the menu does not close while the mouse moves down to it */
.dropdown-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover > .dropdown-panel,
.nav-item:focus-within > .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-link {
  display: block; padding: .55rem .9rem; border-radius: 12px;
  color: var(--text); text-decoration: none; font-family: var(--font-ui); font-size: .88rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
a.dropdown-link:hover, a.dropdown-link:focus-visible { background: rgba(30, 67, 86, .08); color: var(--ink); transform: translateX(3px); }
.dropdown-link.is-soon, .mobile-sublink.is-soon { color: #9aa7af; cursor: default; }
.dropdown-link.is-soon small, .mobile-sublink.is-soon small {
  font-size: .7rem; font-weight: 600; background: var(--paper); color: var(--muted);
  padding: .1rem .4rem; border-radius: 4px; margin-left: .25rem;
}


/* Search button (replaces the old "Apply now" button) */
.search-trigger {
  display: inline-flex; align-items: center; gap: .55rem; height: 44px; padding: 0 .85rem; border-radius: 999px;
  color: #fff; text-decoration: none; font-family: var(--font-ui); font-size: .9rem; font-weight: 500;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.search-trigger:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); color: #fff; }
.search-trigger .bi { font-size: 1.05rem; }
.search-trigger-label, .search-trigger-key { display: none; }
.search-trigger-key { font-family: var(--font-ui); font-size: .68rem; padding: .1rem .4rem; border-radius: 6px; background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); white-space: nowrap; }
@media (min-width: 1400px) { .search-trigger-label { display: inline; } }
@media (min-width: 1600px) { .search-trigger-key { display: inline; } }
@media (max-width: 1199.98px) { .search-trigger { width: 44px; padding: 0; justify-content: center; } }

/* Hamburger button */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm); background: transparent;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle span:nth-child(2) { width: 70%; }

@media (min-width: 1200px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}
@media (min-width: 1400px) {
  .nav-link-main { padding-inline: .85rem; }
}
@media (max-width: 575.98px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.02rem; line-height: 1.15; }
  .mainbar-inner { gap: .75rem; }
  .brand img { width: 46px; height: 46px; }
  .topbar-cta { padding: .15rem .6rem; font-size: .8rem; }
}

/* ---------- 2. Mobile menu (Bootstrap offcanvas) ------------------ */
.mobile-nav {
  --bs-offcanvas-width: min(360px, 88vw); color: #fff;
  background: rgba(14, 38, 50, .86);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border-left: 1px solid rgba(255, 255, 255, .1) !important;
}
.mobile-nav .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mobile-nav .brand-name { font-size: 1.1rem; }
.mobile-list { list-style: none; margin: 0; padding: 0; }
.mobile-list > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem .25rem; color: rgba(255, 255, 255, .9); text-decoration: none;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 500; cursor: pointer; list-style: none;
}
.mobile-link::-webkit-details-marker { display: none; }
.mobile-link.is-active { color: var(--gold); }
.mobile-link .bi { font-size: .8rem; transition: transform .25s var(--ease); }
details[open] > .mobile-link .bi { transform: rotate(180deg); }
details ul { list-style: none; margin: 0 0 .75rem; padding: 0 0 0 .75rem; border-left: 2px solid rgba(255, 255, 255, .12); }
.mobile-sublink { display: block; padding: .45rem .5rem; color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .95rem; }
.mobile-sublink:hover { color: #fff; }
.mobile-contact { display: grid; gap: .6rem; margin-top: 1.5rem; font-size: .95rem; }
.mobile-contact a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.mobile-contact .bi { color: var(--sky); margin-right: .4rem; }

/* ---------- 3. Page banner (inner pages) -------------------------- */
.page-banner { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.page-banner-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  transform: scale(1.04);
}
.page-banner-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14, 38, 50, .94) 0%, rgba(14, 38, 50, .86) 45%, rgba(14, 38, 50, .55) 100%);
}
.page-banner-inner { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.page-banner-title { color: #fff; margin: .4rem 0 .9rem; max-width: 18ch; }
.page-banner-lead { color: rgba(255, 255, 255, .82); font-size: 1.15rem; margin: 0; max-width: 56ch; }
.page-banner .naga-band { position: relative; }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.crumbs li { color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: rgba(255, 255, 255, .4); }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: var(--sky); }

/* ---------- 4. Footer --------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer-main { padding-block: clamp(3.5rem, 6vw, 5rem) 3rem; }
.brand-footer { margin-bottom: 1.25rem; }
.footer-address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: baseline; }
.footer-contact .bi { color: var(--sky); }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); font-size: 1.05rem; text-decoration: none !important;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover { background: var(--maroon); border-color: var(--maroon); }
.footer-title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links .bi { font-size: .7rem; opacity: .6; margin-left: .2rem; }
.footer-hours { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .3rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 22rem; }
.footer-hours li span:last-child { color: #fff; }
.footer-note { font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; padding-block: 1.25rem; }
.footer-bottom p { margin: 0; }

/* ---------- 5. Back to top ---------------------------------------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(142, 42, 53, .85); color: #fff; font-size: 1.2rem; text-decoration: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--maroon-dark); color: #fff; }
