/* ═══════════════════════════════════════════════════
   PROMAT – Shared Styles
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d2240;
  --blue:   #1a56a0;
  --accent: #e8a020;
  --light:  #f4f7fb;
  --text:   #1e2b3c;
  --muted:  #6b7a8d;
  --white:  #ffffff;
  --border: #dde4ed;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13,34,64,.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

/* ── TOPBAR ──────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: #a8bcda;
  font-size: .8rem;
  padding: .45rem 0;
}
.topbar .inner {
  max-width: 1200px; margin: auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.topbar a { color: #a8bcda; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .contact-items { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar .contact-items span { display: flex; align-items: center; gap: .4rem; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(13,34,64,.08);
}
.nav-inner {
  max-width: 1200px; margin: auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link img { height: 46px; object-fit: contain; }

.nav-links { display: flex; list-style: none; gap: .25rem; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: .5rem .85rem;
  font-size: .875rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-radius: 7px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links .active > a { background: var(--light); color: var(--blue); }

/* Dropdown */
.nav-links li .dropdown { display: none; }
.nav-links li.open .dropdown { display: block; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 215px; overflow: hidden;
  padding-top: 4px; margin-top: -2px;
}
.dropdown a { border-radius: 0; padding: .65rem 1.1rem; font-size: .84rem; font-weight: 400; display: block; }
.dropdown a:hover { background: var(--light); }
.dropdown-arrow { font-size: .7rem; opacity: .6; margin-left: .3rem; transition: transform .2s; display: inline-block; }
.nav-links li.open .dropdown-arrow { transform: rotate(180deg); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; font-size: .9rem; font-weight: 600;
  border-radius: 8px; text-decoration: none; font-family: inherit;
  transition: transform .18s, box-shadow .18s, opacity .18s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--navy); box-shadow: 0 4px 16px rgba(232,160,32,.35); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(232,160,32,.45); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-dark-outline { background: transparent; border: 1.5px solid var(--border); color: var(--navy); }
.btn-dark-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── SECTION UTILITIES ───────────────────────────── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: auto; }
.section-tag {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.section-lead { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin-bottom: 3rem; line-height: 1.75; }

/* ── PAGE HERO (subpages) ────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #163466 60%, var(--blue) 100%);
  padding: 3.5rem 2rem 3rem;
}
.page-hero-inner { max-width: 1200px; margin: auto; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: .6rem; }
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; color: var(--white); line-height: 1.25; }
.page-hero p { color: rgba(255,255,255,.7); margin-top: .6rem; font-size: .95rem; max-width: 520px; }

/* ── DOCUMENT CARDS ──────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: 1rem; }
.doc-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.doc-card:hover { border-color: var(--blue); box-shadow: 0 6px 24px rgba(13,34,64,.12); }
.doc-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.doc-icon.pdf { background: rgba(220,38,38,.1); }
.doc-icon.xlsx { background: rgba(22,163,74,.1); }
.doc-icon svg { width: 22px; height: 22px; }
.doc-body { flex: 1; min-width: 0; }
.doc-date { font-size: .75rem; color: var(--muted); margin-bottom: .2rem; }
.doc-title { font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.doc-download {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; background: var(--light);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background .18s, border-color .18s;
}
.doc-download:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.doc-download svg { width: 14px; height: 14px; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: #08192e;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px; margin: auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-inner a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-inner a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; }

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links a { padding: .75rem 1rem; }
  .dropdown { position: static; box-shadow: none; border: none; border-radius: 0; padding-top: 0; margin-top: 0; }
  .hamburger { display: flex; }
  nav { position: relative; }
  section { padding: 3.5rem 1.5rem; }
  .doc-card { flex-wrap: wrap; }
  .doc-download { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .topbar .contact-items { gap: .85rem; }
}

/* ═══════════════════════════════════════════════════
   VIDEO WIDGET
   ═══════════════════════════════════════════════════ */

/* Floating widget */
.vw {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 340px;
  background: var(--navy);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
  z-index: 9000;
  overflow: hidden;
  transform: translateY(120px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .45s;
}
.vw.vw-visible  { transform: translateY(0); opacity: 1; }
.vw.vw-gone    { transform: translateY(120px); opacity: 0; pointer-events: none; }

/* Title bar */
.vw-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .8rem; height: 46px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  user-select: none;
}
.vw-bar-left {
  display: flex; align-items: center; gap: .6rem;
  color: var(--white); font-size: .8rem; font-weight: 600;
  font-family: 'Inter', sans-serif; flex: 1; min-width: 0;
}
.vw-bar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-bar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: vw-pulse 2.2s ease-in-out infinite;
}
@keyframes vw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(232,160,32,.5); }
  50%       { opacity: .7; transform: scale(.9); box-shadow: 0 0 0 5px rgba(232,160,32,0); }
}
.vw-bar-btns { display: flex; gap: .3rem; flex-shrink: 0; }
.vw-ibtn {
  width: 28px; height: 28px; border-radius: 7px;
  border: none; background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.75); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: background .15s, color .15s;
  padding: 0;
}
.vw-ibtn:hover { background: rgba(255,255,255,.2); color: var(--white); }
.vw-ibtn svg { width: 13px; height: 13px; }
.vw-close-btn:hover { background: rgba(220,38,38,.65) !important; }

/* Video body */
.vw-body {
  position: relative; height: 191px;
  overflow: hidden;
  background: #000;
  transition: height .38s cubic-bezier(.4,0,.2,1);
}
.vw.vw-minimized .vw-body { height: 0; }

/* Thumbnail facade */
.vw-facade {
  position: absolute; inset: 0;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.vw-facade img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .82; transition: opacity .22s;
}
.vw-facade:hover img { opacity: 1; }
.vw-play-ring {
  position: absolute;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 2.5px solid rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform .22s, background .22s, border-color .22s;
  pointer-events: none;
}
.vw-facade:hover .vw-play-ring {
  transform: scale(1.14);
  background: var(--accent);
  border-color: transparent;
}
.vw-play-ring svg { width: 22px; height: 22px; margin-left: 3px; }

/* Iframe */
.vw-iframe { width: 100%; height: 100%; border: none; display: none; }

/* Fullscreen / modal state */
.vw-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  z-index: 8999; display: none;
}
.vw-overlay.active { display: block; }

.vw.vw-fullscreen {
  position: fixed !important;
  top: 50% !important; left: 50% !important;
  bottom: auto !important; right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(880px, 94vw) !important;
  border-radius: 18px;
  z-index: 9001;
}
.vw.vw-fullscreen .vw-body,
.vw.vw-fullscreen.vw-minimized .vw-body {
  height: calc(min(880px, 94vw) * 9 / 16) !important;
}

/* Restore button */
.vw-restore-btn {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--navy); border: 1px solid rgba(255,255,255,.12);
  color: var(--white); border-radius: 50px;
  padding: .6rem 1.15rem; font-size: .8rem; font-weight: 600;
  font-family: 'Inter', sans-serif; cursor: pointer;
  display: none; align-items: center; gap: .55rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  z-index: 9000;
  transform: translateY(20px); opacity: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s, background .15s;
}
.vw-restore-btn.vw-restore-visible { display: flex; transform: translateY(0); opacity: 1; }
.vw-restore-btn:hover { background: #163466; transform: translateY(-2px) !important; }
.vw-restore-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 400px) {
  .vw { width: calc(100vw - 2rem); right: 1rem; bottom: 1rem; }
  .vw-restore-btn { right: 1rem; bottom: 1rem; }
}
