/* =====================================================================
   PAXYS Inc. — Enhanced Design System
   Same core blue identity, refined with depth, gradients & polish
   ===================================================================== */

:root {
  /* Brand palette — navy base, orange primary accent, teal secondary accent
     (kept the --blue-* variable names so every component below re-themes
     automatically without needing per-rule edits) */
  --blue-50:  #eef1f8;
  --blue-100: #dde2f0;
  --blue-200: #c3cbe0;
  --blue-300: #9aa5c9;
  --blue-400: #f0a868;
  --blue-500: #e8730f;
  --blue-600: #e8730f;
  --blue-700: #0f766e;
  --blue-800: #c2570a;
  --blue-900: #0d1128;
  --blue-950: #0a0d20;

  /* Deep navy + teal, used for hero/footer gradients and dark backdrops */
  --navy: #0d1128;
  --sky: #2dd4bf;

  /* Secondary accent (teal) — used sparingly for highlights */
  --accent-400: #5eead4;
  --accent-500: #2dd4bf;
  --accent-600: #14b8a6;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;

  --success: #16a34a;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(13, 17, 40, 0.12);
  --shadow-lg: 0 20px 40px -12px rgba(13, 17, 40, 0.30);

  --header-h: 76px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px;
  border: none; cursor: pointer; transition: all .18s ease; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: #fff; box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(29,78,216,.35); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
  color: #1a1206; box-shadow: 0 6px 18px rgba(217,119,6,.30);
}
.btn-accent:hover { transform: translateY(-1px); }
.btn-outline {
  background: #fff; color: var(--blue-700); border: 1.5px solid var(--blue-200);
}
.btn-outline:hover { border-color: var(--blue-500); background: var(--blue-50); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(13, 17, 40, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; }
.brand img { height: 44px; width: auto; filter: brightness(0) invert(1); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.78); transition: all .15s ease; white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); }

.nav-toggle { display: none; }

.header-search { position: relative; }
.header-search input {
  width: 210px; padding: 10px 14px 10px 38px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.16); font-size: 13.5px; background: rgba(255,255,255,.06); color: #fff;
  transition: all .15s ease;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search input:focus { outline: none; border-color: var(--sky); background: rgba(255,255,255,.12); width: 250px; }
.header-search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.55); font-size: 14px; }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display: none; z-index: 70;
}
.search-dropdown.show { display: block; }
.search-dropdown a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.search-dropdown a:last-child { border-bottom: none; }
.search-dropdown a:hover { background: var(--blue-50); }
.search-dropdown .title { font-weight: 600; font-size: 14px; color: var(--gray-900); }
.search-dropdown .meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy);
  padding: 72px 0 88px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 12% 20%, rgba(226,115,15,.35) 0, transparent 42%),
                     radial-gradient(circle at 92% 85%, rgba(45,212,191,.20) 0, transparent 45%);
}
.hero .inner { position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; line-height: 1.1; margin: 0 0 18px; max-width: 780px; }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.85); max-width: 620px; margin: 0 0 28px; }
.hero .accent-bar { width: 72px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-400), var(--accent-600)); margin-bottom: 18px; }

/* ---------- Cards / sections ---------- */
.card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100); padding: 32px;
}
.section-title { font-size: 26px; font-weight: 800; color: var(--gray-900); margin: 0 0 8px; }
.title-underline { width: 68px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--blue-600), var(--sky)); margin-bottom: 24px; }
.prose { line-height: 1.75; color: var(--gray-700); }
.prose h2, .prose h3 { color: var(--gray-900); }
.prose a { color: var(--blue-700); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--gray-200); vertical-align: top; }
.prose th { background: var(--blue-50); font-weight: 700; }

/* Accordion (Mission/Vision/Values) */
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; font-weight: 700; font-size: 14.5px;
  transition: all .15s ease;
}
.accordion-btn:hover { filter: brightness(1.06); }
.accordion-panel {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  background: var(--blue-50); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.accordion-panel.open { max-height: 600px; padding: 16px 18px; }
.accordion-item { margin-bottom: 12px; }

/* Tabs (Corporate structure, board, org chart, shareholding) */
.tabs { display: flex; flex-wrap: wrap; gap: 22px; border-bottom: 2px solid var(--gray-200); padding-bottom: 14px; margin-bottom: 26px; }
.tab-link { font-size: 14px; font-weight: 600; color: var(--gray-700); padding-bottom: 6px; border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; }
.tab-link.active { color: var(--blue-700); border-bottom-color: var(--blue-600); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Sidebar menu (Governance-style) */
.gov-menu-group { margin-bottom: 22px; }
.gov-menu-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); font-weight: 700; margin: 0 0 10px; }
.gov-menu-item {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--gray-700); margin-bottom: 4px; cursor: pointer; transition: all .15s ease;
}
.gov-menu-item:hover { background: var(--blue-50); color: var(--blue-700); }
.gov-menu-item.active { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; }

/* Document cards */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.doc-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm); transition: all .18s ease; display: flex; flex-direction: column; gap: 10px;
}
.doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue-200); }
.doc-card .doc-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.doc-card .doc-title { font-weight: 700; font-size: 14.5px; color: var(--gray-900); }
.doc-card .doc-meta { font-size: 12.5px; color: var(--gray-500); }
.doc-card .doc-actions { display: flex; gap: 8px; margin-top: auto; }

/* Badges */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-blue { background: var(--blue-100); color: var(--blue-800); }
.badge-amber { background: #fef3c7; color: var(--accent-600); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; color: #eaf1ff; padding: 64px 0 32px;
  background: linear-gradient(120deg, var(--navy), var(--blue-900) 60%, var(--blue-800));
}
.site-footer h3 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c7d7f5; font-size: 13.5px; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 24px; font-size: 12.5px; color: #b7c8ec; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  font-size: 14.5px; font-family: inherit; transition: all .15s ease; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-200); }

/* ---------- Announcement modal ---------- */
.announce-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.announce-overlay.show { opacity: 1; pointer-events: auto; }
.announce-modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 480px; width: 100%; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: scale(.95); transition: transform .2s ease;
}
.announce-overlay.show .announce-modal { transform: scale(1); }
.announce-modal img { width: 100%; max-height: 220px; object-fit: cover; }
.announce-body { padding: 26px 28px 28px; }
.announce-body h3 { margin: 0 0 10px; font-size: 20px; color: var(--gray-900); }
.announce-body p { margin: 0 0 20px; color: var(--gray-700); font-size: 14.5px; line-height: 1.6; }
.announce-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer; font-size: 16px; color: var(--gray-700);
}

/* ---------- Live chat widget ---------- */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; font-size: 24px;
  box-shadow: 0 10px 26px rgba(29,78,216,.4); display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease;
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher .unread-dot {
  position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff; font-size: 9px; color: #fff; display: none;
  align-items: center; justify-content: center; font-weight: 700;
}
.chat-window {
  position: fixed; bottom: 96px; right: 24px; width: 340px; max-width: calc(100vw - 32px); height: 460px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 150;
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--gray-200);
}
.chat-window.open { display: flex; }
.chat-head {
  background: linear-gradient(135deg, var(--blue-700), var(--navy)); color: #fff; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head strong { font-size: 14.5px; }
.chat-head span { font-size: 11.5px; color: #cfe0ff; display: block; margin-top: 2px; }
.chat-head button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; opacity: .85; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--gray-50); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.chat-msg.visitor { align-self: flex-end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg.admin { align-self: flex-start; background: #fff; color: var(--gray-900); border: 1px solid var(--gray-200); border-bottom-left-radius: 3px; }
.chat-msg.system { align-self: center; background: transparent; color: var(--gray-500); font-size: 12px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--gray-200); background: #fff; }
.chat-form input { flex: 1; border: 1.5px solid var(--gray-200); border-radius: 999px; padding: 10px 14px; font-size: 13.5px; }
.chat-form input:focus { outline: none; border-color: var(--blue-500); }
.chat-form button { background: var(--blue-700); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.chat-precall { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-precall input { padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-search input { width: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .chat-window { right: 12px; bottom: 88px; }
  .chat-launcher { right: 16px; bottom: 16px; }
}
