:root {
  --sg-navy: #071b33;
  --sg-blue: #0b4f8a;
  --sg-cyan: #12bfea;
  --sg-graphite: #253746;
  --sg-amber: #f2a93b;
  --sg-pale: #eaf8fc;
  --sg-white: #fff;
  --sg-radius: 12px;
  --sg-shadow: 0 14px 38px rgba(7, 27, 51, .12);
}

html { scroll-behavior: smooth; }
body {
  color: var(--sg-graphite);
  background: #f7fafc;
  font-family: "Noto Sans", "Source Sans 3", Arial, sans-serif;
  line-height: 1.65;
}

a { color: var(--sg-blue); text-underline-offset: .18em; }
a:hover { color: #06365f; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sg-amber);
  outline-offset: 3px;
}

.pkp_structure_head {
  background: var(--sg-white);
  border-top: 5px solid var(--sg-cyan);
  box-shadow: 0 2px 16px rgba(7, 27, 51, .08);
}
.pkp_site_name { padding-top: 18px; padding-bottom: 14px; }
.pkp_site_name .is_text {
  display: block;
  width: min(100%, 530px);
  min-height: 92px;
  color: transparent;
  font-size: 0;
  background: url("../assets/sapiens-global-logo-horizontal.svg") left center / contain no-repeat;
}
.pkp_navigation_primary_wrapper {
  background: var(--sg-navy);
}
.pkp_navigation_primary > li > a {
  color: var(--sg-white);
  font-weight: 650;
  letter-spacing: .01em;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: var(--sg-navy);
  background: var(--sg-cyan);
}
.pkp_navigation_primary ul {
  border: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--sg-shadow);
}

.pkp_structure_main {
  background: var(--sg-white);
  border-radius: var(--sg-radius);
  box-shadow: 0 6px 24px rgba(7, 27, 51, .06);
}
h1, h2, h3, h4 { color: var(--sg-navy); line-height: 1.25; }
h1 { letter-spacing: -.02em; }
h2 { margin-top: 1.75em; }

.sg-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  margin: 0 0 2rem;
  padding: clamp(2.2rem, 6vw, 5rem);
  color: var(--sg-white);
  background:
    linear-gradient(90deg, rgba(7,27,51,.98) 0%, rgba(7,27,51,.90) 42%, rgba(7,27,51,.24) 75%),
    url("../assets/sapiens-global-hero.png") center / cover no-repeat;
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
}
.sg-hero h2 { max-width: 720px; margin: 0 0 .6rem; color: var(--sg-white); font-size: clamp(2.2rem, 6vw, 4.4rem); }
.sg-hero p { max-width: 660px; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.sg-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.sg-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .7rem 1.15rem;
  border: 2px solid var(--sg-cyan);
  border-radius: 999px;
  color: var(--sg-navy);
  background: var(--sg-cyan);
  font-weight: 750;
  text-decoration: none;
}
.sg-button:hover { color: var(--sg-white); background: transparent; }
.sg-button--secondary { color: var(--sg-white); background: transparent; border-color: var(--sg-white); }
.sg-button--secondary:hover { color: var(--sg-navy); background: var(--sg-white); }

.sg-lead { color: #17324a; font-size: 1.16rem; line-height: 1.7; }
.sg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.sg-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.2rem;
  color: var(--sg-graphite);
  background: var(--sg-pale);
  border: 1px solid #c7eaf4;
  border-left: 5px solid var(--sg-cyan);
  border-radius: 10px;
  text-decoration: none;
}
.sg-card:hover { color: var(--sg-navy); border-color: var(--sg-blue); transform: translateY(-2px); }
.sg-card strong { color: var(--sg-navy); }
.sg-card span { font-size: .92rem; }
.sg-steps > li { margin-bottom: .75rem; }
.sg-notice {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: #fff7e9;
  border-left: 5px solid var(--sg-amber);
  border-radius: 8px;
}

.pkp_structure_footer_wrapper {
  color: #d9ebf2;
  background: var(--sg-navy);
}
.pkp_structure_footer_wrapper a { color: #73ddf5; }
.pkp_brand_footer { opacity: .8; }

@media (max-width: 768px) {
  .pkp_site_name .is_text { min-height: 72px; }
  .sg-hero { min-height: 360px; padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .pkp_structure_head, .pkp_structure_sidebar, .sg-actions { display: none !important; }
  .pkp_structure_main { box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
