/* ============================================================
   CNT — shared site chrome (header nav + footer)
   Single source of truth used by the sub-pages (careers.html,
   event.html, …) so their header and footer match the homepage.
   Mirrors index.html's solid/scrolled navbar and full footer.
   Tokens are declared here with the same values as index.html so
   the file works even on pages that don't define them all.
   ============================================================ */
:root{
  --red:#C8102E; --red-deep:#A50D24; --red-lt:#E5213F; --red-pale:#FFF0F2;
  --charcoal:#1A1A1A; --dark:#111111; --white:#FFFFFF;
  --gray-100:#EBEBEB; --gray-400:#9CA3AF; --text-sub:#555555;
  --radius-xs:4px; --radius-md:16px;
  --shadow-lg:0 24px 64px rgba(0,0,0,.13);
  --transition:0.4s cubic-bezier(0.25,0.46,0.45,0.94); --transition-fast:0.2s ease;
  --font-display:'Manrope',sans-serif;
}

/* Links inside the injected chrome never underline, regardless of the
   host page's own <a> defaults (fixes pages without a global a{} reset). */
#site-header a, #site-footer a{ text-decoration:none; }

/* Accessibility: a visible keyboard-focus ring on every page (not just the homepage). */
:focus-visible{ outline:2px solid var(--red,#C8102E); outline-offset:3px; border-radius:3px; }

/* Accessibility: honor "reduce motion" site-wide — near-instant animations and
   transitions for visitors who ask for less movement. */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* Cookie consent banner (injected site-wide by site-chrome.js) */
.cookie-banner{ position:fixed; left:16px; right:16px; bottom:16px; z-index:1000; max-width:600px; margin:0 auto;
  background:#fff; border:1px solid var(--gray-100,#EBEBEB); border-radius:16px; box-shadow:0 20px 54px rgba(16,24,40,.20);
  padding:18px 20px; display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  opacity:0; transform:translateY(18px); transition:opacity .3s ease, transform .3s ease; }
.cookie-banner.show{ opacity:1; transform:none; }
.cookie-banner p{ font-size:.85rem; color:#4A4A4A; line-height:1.55; flex:1; min-width:220px; margin:0; }
.cookie-banner a{ color:var(--red,#C8102E); font-weight:700; text-decoration:none; }
.cookie-banner a:hover{ text-decoration:underline; }
.cookie-actions{ display:flex; gap:8px; flex-shrink:0; }
.cookie-actions button{ font:inherit; font-size:.82rem; font-weight:700; padding:9px 18px; border-radius:10px; cursor:pointer; transition:.15s; border:1px solid transparent; }
.ck-decline{ background:none; border-color:var(--gray-100,#EBEBEB); color:#6B7280; }
.ck-decline:hover{ border-color:#D7DCE4; color:#111; }
.ck-accept{ background:var(--red,#C8102E); color:#fff; }
.ck-accept:hover{ background:var(--red-deep,#A50D24); }
@media(max-width:520px){ .cookie-banner{ flex-direction:column; align-items:stretch; } .cookie-actions{ justify-content:flex-end; } }

/* ── NAVBAR (solid, sticky — matches the homepage scrolled state) ── */
.nav{
  position:sticky; top:0; left:0; right:0; z-index:900;
  padding:.875rem 0;
  background:rgba(255,255,255,.97);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:0 1px 0 rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.07);
}
.nav-container{
  width:100%; max-width:none; margin:0; box-sizing:border-box;
  padding-inline:var(--gutter, clamp(20px,5vw,80px));   /* align the logo with the page's content gutter (matches the overlay nav) */
  display:flex; align-items:center; gap:1.25rem;
}
.nav-logo img{ height:36px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:0; margin-left:auto; list-style:none; }
.nav-link{
  display:flex; align-items:center; gap:4px; padding:.5rem .85rem;
  font-size:.875rem; font-weight:500; color:var(--text-sub);
  position:relative; white-space:nowrap; transition:color var(--transition-fast);
}
.nav-link::after{
  content:''; position:absolute; bottom:0; left:.85rem; right:.85rem; height:2px;
  background:var(--red); transform:scaleX(0); transform-origin:left;
  transition:transform var(--transition);
}
.nav-link:hover::after, .nav-link:focus::after, .nav-link.active::after{ transform:scaleX(1); }
.nav-link:hover, .nav-link.active{ color:var(--red); }

.nav-actions{ display:flex; align-items:center; gap:1rem; margin-left:1rem; }
.btn-nav{
  display:inline-flex; align-items:center; padding:.6rem 1.35rem;
  background:var(--red); color:var(--white); border-radius:var(--radius-xs);
  font-size:.875rem; font-weight:700; letter-spacing:.02em; white-space:nowrap;
  transition:background var(--transition-fast), transform var(--transition-fast);
}
.btn-nav:hover{ background:var(--red-lt); transform:translateY(-1px); }

.nav-toggle{ display:none; flex-direction:column; gap:5px; padding:4px; background:none; border:none; cursor:pointer; }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--charcoal); transition:transform .3s, opacity .3s; }
.nav-toggle.active span:nth-child(1){ transform:rotate(45deg) translate(4.5px,4.5px); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform:rotate(-45deg) translate(4.5px,-4.5px); }

/* Mobile menu overlay */
.mobile-menu{ position:fixed; inset:0; background:var(--charcoal); z-index:800; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:.75rem; padding:84px 20px calc(36px + env(safe-area-inset-bottom)); overflow-y:auto; -webkit-overflow-scrolling:touch; opacity:0; visibility:hidden; transform:translateY(-10px); transition:opacity .3s, visibility .3s, transform .3s; }
.mobile-menu.open{ opacity:1; visibility:visible; transform:translateY(0); }
.mobile-menu ul{ display:flex; flex-direction:column; gap:.1rem; text-align:center; list-style:none; }
.mobile-menu li a{ display:block; font-family:var(--font-display); font-size:clamp(1.3rem,5.2vw,1.9rem); font-weight:800; color:rgba(255,255,255,.6); padding:.26rem 2rem; transition:color .2s; }
.mobile-menu li a:hover{ color:var(--white); }
.mobile-cta{ margin-top:1rem; }
/* Mobile-menu CTAs (styled here so they render on every page) */
.mobile-menu .btn-primary{ display:inline-flex; align-items:center; gap:.5rem; padding:.9rem 2rem; background:var(--red); color:var(--white); border-radius:var(--radius-xs); font-family:var(--font-display); font-weight:700; font-size:.9375rem; transition:background var(--transition-fast), transform var(--transition-fast); }
.mobile-menu .btn-primary:hover{ background:var(--red-lt); transform:translateY(-2px); }
.mobile-menu .btn-ghost{ display:inline-flex; align-items:center; gap:.5rem; padding:.9rem 2rem; border:1.5px solid rgba(255,255,255,.3); color:var(--white); border-radius:var(--radius-xs); font-family:var(--font-display); font-weight:700; font-size:.9375rem; transition:border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); }
.mobile-menu .btn-ghost:hover{ border-color:var(--white); background:rgba(255,255,255,.08); transform:translateY(-2px); }

/* ── Overlay variant: transparent over a hero, solid once scrolled ──
   Used by the homepage (data-overlay="1"); site-chrome.js toggles
   .scrolled on scroll. Sub-pages keep the solid sticky nav above. */
.nav.nav-overlay{
  position:fixed; padding:1.25rem 0;
  background:transparent; box-shadow:none;
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.nav.nav-overlay.scrolled{
  padding:.875rem 0;
  background:rgba(255,255,255,.97);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:0 1px 0 rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.07);
}
/* Homepage: align the nav with the full-bleed hero — logo lines up with the
   "Connecting talent…" eyebrow (both at --gutter) instead of the centred cap. */
.nav.nav-overlay .nav-container{ width:100%; max-width:none; margin:0; box-sizing:border-box; padding-inline:var(--gutter, clamp(20px,5vw,80px)); }
.nav.nav-overlay:not(.scrolled) .nav-logo img{ filter:brightness(0) invert(1); }
.nav.nav-overlay:not(.scrolled) .nav-link{ color:rgba(255,255,255,.85); }
.nav.nav-overlay:not(.scrolled) .nav-link:hover{ color:var(--white); }
.nav.nav-overlay:not(.scrolled) .nav-toggle span{ background:var(--white); }

/* ── FOOTER (matches the homepage) ── */
.footer{ background:var(--dark); }
.footer .footer-top{ padding:5.5rem 0 3.5rem; }
.footer-top .container, .footer-bottom .container{ width:min(1300px, 100% - clamp(40px,10vw,160px)); margin-inline:auto; }
.footer-grid{ display:grid; grid-template-columns:1.7fr 1fr 1fr 1.2fr; gap:clamp(2rem,4vw,4rem); }
.footer-logo{ height:34px; width:auto; filter:brightness(0) invert(1); opacity:.9; margin-bottom:1.25rem; }
.footer-brand p{ font-size:.9375rem; color:rgba(255,255,255,.56); line-height:1.75; margin-bottom:1.5rem; max-width:30ch; }
.social-links{ display:flex; gap:.75rem; }
.social-link{ width:40px; height:40px; border:1px solid rgba(255,255,255,.16); border-radius:var(--radius-xs); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.58); transition:border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast); }
.social-link svg{ width:16px; height:16px; }
.social-link:hover{ border-color:var(--red); color:var(--white); background:rgba(200,16,46,.2); }
.footer-col h5{ font-family:var(--font-display); font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.13em; color:var(--white); margin-bottom:1.25rem; }
.footer-col ul{ display:flex; flex-direction:column; gap:.65rem; list-style:none; }
.footer-col a{ font-size:.9375rem; color:rgba(255,255,255,.66); transition:color var(--transition-fast), padding-left var(--transition-fast); }
.footer-col a:hover{ color:var(--white); padding-left:5px; }
.newsletter-copy{ font-size:.82rem; line-height:1.55; color:rgba(255,255,255,.55); margin:0 0 .7rem; max-width:32ch; }
.newsletter-form{ display:flex; gap:6px; align-items:center; margin-top:.25rem; padding:6px; max-width:340px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:14px; transition:border-color var(--transition-fast), box-shadow var(--transition-fast); }
.newsletter-form:focus-within{ border-color:var(--red-lt); box-shadow:0 0 0 3px rgba(229,33,63,.20); }
.newsletter-form input{ flex:1; min-width:0; padding:.6rem .85rem; background:transparent; border:none; color:var(--white); font-size:.9rem; outline:none; }
.newsletter-form input::placeholder{ color:rgba(255,255,255,.35); }
.newsletter-form button{ flex:none; display:grid; place-items:center; width:44px; height:40px; padding:0; border:none; cursor:pointer; border-radius:10px; color:var(--white); background:linear-gradient(100deg,#FF3D51 0%,#E5213F 40%,#C8102E 78%,#A50D24 100%); box-shadow:0 6px 16px -6px rgba(200,16,46,.65); transition:transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast); }
.newsletter-form button svg{ width:19px; height:19px; }
.newsletter-form button:hover{ transform:translateY(-1px); box-shadow:0 10px 22px -6px rgba(200,16,46,.75); }
.newsletter-form button:disabled{ opacity:.55; cursor:default; transform:none; }
.newsletter-msg{ font-size:.78rem; color:rgba(255,255,255,.55); margin-top:9px; min-height:1em; }
.footer-bottom{ padding:1.5rem 0; border-top:1px solid rgba(255,255,255,.05); }
.footer-bottom .container{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.footer-bottom p{ font-size:.875rem; color:rgba(255,255,255,.25); }
.footer-bottom-links{ display:flex; gap:1.5rem; }
.footer-bottom-links a{ font-size:.875rem; color:rgba(255,255,255,.25); transition:color var(--transition-fast); }
.footer-bottom-links a:hover{ color:var(--white); }
.footer-red-bar{ height:4px; background:var(--red); }

@media (max-width:1024px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:3rem; } }
/* Switch to the hamburger before the desktop nav (logo + 6 links + Contact,
   ~960px wide) can overflow a narrow viewport and force horizontal scroll. */
@media (max-width:1024px){
  .nav-links, .btn-nav:not(.mobile-cta){ display:none; }
  .nav-toggle{ display:flex; }
  /* With the nav-links (which held margin-left:auto) hidden, push the hamburger
     to the right edge instead of letting it sit beside the logo. */
  .nav-actions{ margin-left:auto; }
}
@media (max-width:768px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* Back-to-top button (injected by site-chrome.js on every page).
   Hidden until the visitor scrolls near the bottom, then fades in. */
.cnt-totop{
  position:fixed; bottom:2rem; right:2rem; width:50px; height:50px;
  border:0; border-radius:50%; background:#C8102E; color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; z-index:1000;
  box-shadow:0 14px 30px -12px rgba(200,16,46,.55);
  opacity:0; transform:translateY(12px); pointer-events:none;
  transition:opacity .3s ease, transform .3s ease, background .18s ease;
}
.cnt-totop.visible{ opacity:1; transform:translateY(0); pointer-events:auto; }
.cnt-totop:hover{ background:#E5213F; }
.cnt-totop:focus-visible{ outline:3px solid rgba(200,16,46,.5); outline-offset:3px; }
.cnt-totop svg{ width:20px; height:20px; }
@media (max-width:768px){ .cnt-totop{ bottom:1rem; right:1rem; width:44px; height:44px; } }
@media (prefers-reduced-motion:reduce){ .cnt-totop, .cnt-totop.visible{ transform:none; } }

/* Footer registration line (DOLE/DTI/SEC) — shown only when configured */
.footer-license{ font-size:.76rem; color:rgba(255,255,255,.55); letter-spacing:.01em; margin-bottom:.6rem; }

/* ── Print: clean paper output (esp. Privacy/Terms). Drops the nav, footer,
   floating widgets and back-to-top; forces high-contrast body text. ── */
@media print {
  .nav, .footer, .cnt-totop, .newsletter-form,
  #tawkchat-container, .reamaze-widget, [id^="tawk"], [class*="reamaze"] { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; word-break: break-all; }
  main, .wrap, .container { max-width: none !important; width: auto !important; }
  * { box-shadow: none !important; text-shadow: none !important; }
}
