/* ============================================================
   KIBELLAN — Compliance Page Styles
   Extends style.css
   ============================================================ */

/* ---------- BREADCRUMB ---------- */
.breadcrumb { padding: 24px 0 0; font-size: 14px; color: var(--text-muted); }
.breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li:not(:last-child)::after {
  content: "/"; color: var(--text-soft); font-weight: 300;
}
.breadcrumb-list a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.breadcrumb-list a:hover { color: var(--primary-blue); }
.breadcrumb-list li[aria-current="page"] { color: var(--primary-blue); font-weight: 500; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 40px 0 56px;
  background: var(--bg-gradient);
  text-align: center;
}
.page-hero .container-wrapper { max-width: 800px; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 14px 0 20px;
  color: var(--primary-blue);
}
.page-hero p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 62ch;
  margin-inline: auto;
}

/* ============================================================
   COMPLIANCE TRUST STRIP
   ============================================================ */
.compliance-strip {
  background: var(--bg-gradient);
  padding: 0 0 40px;
  border-bottom: 1px solid var(--border-color);
}
.compliance-strip-inner {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  padding: 24px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.compliance-strip-inner span {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.compliance-strip-inner i {
  color: var(--accent-teal);
  font-size: 14px;
}

/* ============================================================
   FRAMEWORK SECTION
   ============================================================ */
.framework-section { padding: 88px 0; background: var(--white); }

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.framework-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 34px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.framework-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(11, 27, 43, 0.08);
  border-color: rgba(0, 180, 216, 0.35);
}

.framework-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
  transition: var(--transition);
}
.framework-card:hover .framework-icon {
  background: var(--accent-teal);
  color: #fff;
  transform: scale(1.06);
}

.framework-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-blue);
  margin-bottom: 10px;
}
.framework-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Hide the placeholder empty card */
.framework-icon:empty { display: none; }

/* ============================================================
   REGULATORY SECTION
   ============================================================ */
.regulatory-section {
  padding: 88px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.regulatory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.regulatory-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 26px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: var(--transition);
}
.regulatory-card:hover {
  border-color: rgba(0, 180, 216, 0.35);
  box-shadow: 0 12px 24px rgba(11, 27, 43, 0.06);
  transform: translateY(-3px);
}

.regulatory-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.regulatory-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-blue);
  margin: 0 0 6px;
}
.regulatory-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   PROVIDE SECTION
   ============================================================ */
.provide-section { padding: 88px 0; background: var(--white); }

.provide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.provide-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: var(--transition);
}
.provide-item:hover {
  background: var(--white);
  border-color: rgba(0, 180, 216, 0.35);
  box-shadow: 0 12px 24px rgba(11, 27, 43, 0.05);
}

.provide-check {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(15, 181, 174, 0.12);
  color: #0A8F89;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}

.provide-item strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-blue);
  margin-bottom: 4px;
}
.provide-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.compliance-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-600) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.compliance-cta::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(15, 181, 174, 0.1);
  pointer-events: none;
}

.compliance-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.compliance-cta h2 {
  color: #fff;
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.compliance-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0;
}

.compliance-cta-actions {
  display: flex; flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cta-light,
.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-weight: 500; font-size: 14.5px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-cta-light { background: #fff; color: var(--navy-900); }
.btn-cta-light:hover { background: var(--blue-50); transform: translateY(-2px); }

.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.compliance-form-section { padding: 88px 0; background: var(--bg-light); }

/* ============================================================
   FLOATING ACTIONS
   ============================================================ */
.floating-actions {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 900;
  display: flex; flex-direction: column;
  gap: 12px; align-items: flex-end;
  pointer-events: none;
}
.floating-actions > * { pointer-events: auto; }
.floating-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font);
  font-weight: 500; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.floating-btn i { font-size: 20px; line-height: 1; flex-shrink: 0; }
.floating-btn:hover { transform: translateY(-3px); }
.floating-wa { background: #25D366; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4); }
.floating-wa:hover { background: #1db954; }
.floating-call { background: var(--primary-blue); box-shadow: 0 10px 24px rgba(13, 59, 102, 0.4); }
.floating-call:hover { background: var(--accent-teal); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-cta-inner { grid-template-columns: 1fr; }
  .compliance-cta-actions { justify-content: flex-start; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 720px) {
  .page-hero { padding: 24px 0 40px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 15px; }

  .compliance-strip { padding: 0 0 28px; }
  .compliance-strip-inner {
    justify-content: flex-start;
    gap: 12px 24px;
    padding: 20px 0 0;
    font-size: 13px;
  }
  .compliance-strip-inner span { font-size: 13px; }

  .framework-section,
  .regulatory-section,
  .provide-section,
  .compliance-form-section { padding: 56px 0; }

  .framework-grid { grid-template-columns: 1fr; gap: 14px; }
  .framework-card { padding: 26px 22px; border-radius: 14px; }
  .framework-icon { width: 46px; height: 46px; font-size: 18px; margin-bottom: 18px; }
  .framework-card h3 { font-size: 17px; }

  .regulatory-grid { grid-template-columns: 1fr; gap: 12px; }
  .regulatory-card { padding: 20px; border-radius: 12px; }
  .regulatory-icon { width: 44px; height: 44px; font-size: 18px; }
  .regulatory-card h3 { font-size: 15.5px; }

  .provide-grid { grid-template-columns: 1fr; gap: 12px; }
  .provide-item { padding: 18px 20px; border-radius: 12px; }

  .compliance-cta { padding: 48px 0; }
  .compliance-cta h2 { font-size: 22px; }
  .compliance-cta p { font-size: 14.5px; }
  .compliance-cta-actions { flex-direction: column; align-items: stretch; }
  .btn-cta-light,
  .btn-cta-outline { width: 100%; justify-content: center; }

  .form-card { padding: 26px 22px; border-radius: 16px; }
  .form-card h3 { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 16px; }

  .floating-actions { right: 16px; bottom: 16px; gap: 10px; }
  .floating-btn {
    width: 52px; height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .floating-btn .floating-label { display: none; }
  .floating-btn i { font-size: 22px; }
}

/* ============================================================
   MOBILE HAMBURGER — BULLETPROOF
   ============================================================ */
@media (max-width: 860px) {
  .site-header {
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    box-shadow: 0 1px 0 #e2e8f0;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #F1F7FF;
    color: #0d3b66;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
  }
  .menu-toggle:hover { background: #E3F0FF; }
  .menu-toggle i { pointer-events: none; }

  .navbar-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: #ffffff;
    padding: 20px 20px 48px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(11, 27, 43, 0.15);
    border-top: 1px solid #e2e8f0;
  }
  .navbar-menu.is-open {
    display: flex !important;
    animation: kbnMenuIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes kbnMenuIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .navbar-menu .nav-list,
  #navbarMenu .nav-list,
  #primaryMenu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    height: auto !important;
  }

  .navbar-menu .nav-list > li,
  #navbarMenu .nav-list > li,
  #primaryMenu > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e2e8f0;
  }
  .navbar-menu .nav-list > li:last-child { border-bottom: 0; }

  .navbar-menu .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    padding: 18px 8px !important;
    color: #0B2445 !important;
    font-family: var(--font);
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.3;
    text-decoration: none;
    background: transparent !important;
    border-radius: 0 !important;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .navbar-menu .nav-link:hover,
  .navbar-menu .nav-link.active {
    color: #0d3b66 !important;
    background: #F1F7FF !important;
  }

  .navbar-menu .nav-item-dropdown { position: static !important; }
  .navbar-menu .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    min-width: 0 !important;
    padding: 0 0 14px 12px !important;
    margin: 0 !important;
  }
  .navbar-menu .dropdown-menu li { border: none !important; }
  .navbar-menu .dropdown-menu li a {
    display: block !important;
    padding: 12px 8px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #5A6B7E !important;
    border-radius: 6px;
    text-align: left;
  }
  .navbar-menu .dropdown-menu li a:hover {
    background: #F1F7FF !important;
    color: #0d3b66 !important;
  }

  body.menu-open { overflow: hidden !important; }
}

/* Global overflow protection */
html, body { overflow-x: hidden; max-width: 100vw; }
img, iframe, video, table { max-width: 100%; }