/* Prudens Advisors — site styles. No external requests: fonts are self-hosted. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette taken from the Prudens logo (gradient #031F57 to #0671B3) */
  --ink: #031f57;
  --ink-soft: #0a3278;
  --paper: #f5f7fa;
  --white: #ffffff;
  --text: #18202c;
  --muted: #556070;
  --line: #dde3ea;
  --accent: #0671b3;
  --accent-light: #7fc0ea;
  --on-ink: #eef2f8;
  --on-ink-muted: #b7c4d8;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.brand img { display: block; height: 46px; width: auto; }
.footer-logo { display: block; height: 40px; width: auto; margin-bottom: 16px; }

.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; align-items: center; }
.nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--text);
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .nav-cta {
  border: 1px solid var(--ink); padding: 9px 18px; border-radius: 2px;
}
.nav .nav-cta:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 2px;
  padding: 9px 14px; font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-weight: 600; font-size: 0.97rem;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-soft); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 88px; }
.hero h1 { max-width: 15ch; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.22rem; color: var(--text); max-width: 58ch; }
.hero .paid {
  margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink); max-width: 40ch;
}

/* ---------- Pillars ---------- */
.pillars { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pillar .num {
  font-family: var(--serif); font-size: 1rem; color: var(--accent);
  display: block; margin-bottom: 14px; padding-top: 18px; border-top: 2px solid var(--ink);
}
.pillar p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Custody band ---------- */
.custody { background: var(--ink); color: var(--on-ink); }
.custody h2 { color: var(--white); }
.custody .eyebrow { color: var(--accent-light); }
.custody p { color: var(--on-ink-muted); max-width: 54ch; }
.custody p strong { color: var(--white); }
.custody-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.custody-diagram { max-width: 400px; width: 100%; justify-self: center; }
.custody-diagram svg { display: block; width: 100%; height: auto; }

/* ---------- Services ---------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); padding: 32px 28px 28px;
  display: flex; flex-direction: column;
}
.card .who {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card a { font-weight: 600; font-size: 0.95rem; }

/* ---------- Account opening ---------- */
.opening { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.opening-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative; padding: 0 0 30px 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ink); color: var(--ink);
  font-family: var(--serif); font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
}
.steps li::after {
  content: ""; position: absolute; left: 21px; top: 42px; bottom: 0; width: 1px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: 4px; padding-top: 6px; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.standalone {
  margin-top: 28px; padding: 22px 24px; background: var(--paper); border-left: 3px solid var(--accent);
}
.standalone p { margin: 0; }

/* ---------- Credentials ---------- */
.credentials { padding: 40px 0; }
.credentials ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.credentials li { border-top: 2px solid var(--ink); padding-top: 14px; }
.credentials .k { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.credentials .v { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--on-ink); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: var(--on-ink-muted); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; align-items: center; }
.cta .tel { color: var(--white); font-weight: 600; text-decoration: none; padding: 14px 8px; }
.cta .tel:hover { color: var(--accent-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-bottom: 10px; }
.footer-legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem;
}

.footer-legal .footer-notice { flex-basis: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .pillar-grid, .card-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid { gap: 16px; }
  .custody-grid, .opening-grid { grid-template-columns: 1fr; gap: 40px; }
  .credentials ul { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .nav-toggle { display: block; }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; border-radius: 0; }
  .nav .nav-cta:hover { background: none; color: var(--ink); }
  /* Without JavaScript the menu is simply shown in the page flow */
  html:not(.js) .nav { position: static; padding: 0 0 12px; border: 0; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand img { height: 38px; }
  .site-header .wrap { min-height: 64px; }
  :root { --gutter: 18px; }
  .btn { width: 100%; text-align: center; }
  .cta .tel { width: 100%; }
}

/* ---------- Interior pages ---------- */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 20ch; margin-bottom: 18px; }
.page-head .lead { color: var(--text); margin: 0; }

.page-body { background: var(--white); padding: 64px 0 88px; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--ink); }
.prose .btn { color: var(--white); }
.prose .btn-ghost { color: var(--ink); }
.prose .btn-ghost:hover { color: var(--white); }

.callout { margin: 28px 0; padding: 22px 24px; background: var(--paper); border-left: 3px solid var(--accent); }
.callout p:last-child { margin-bottom: 0; }
.note { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-weight: 600; font-size: 0.97rem; }

/* Items Prudens still has to supply: visible on purpose so nothing is published by accident */
mark.tbc { background: #fff3c4; color: #5c4a00; padding: 1px 6px; border-radius: 2px; font-size: 0.9em; font-weight: 500; }
.draft-note { background: #fff3c4; color: #5c4a00; padding: 12px 16px; font-size: 0.92rem; margin-bottom: 36px; border-radius: 2px; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 28px 0 36px; }
table.compare, table.facts { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
table.compare { min-width: 620px; }
table.compare th, table.compare td, table.facts th, table.facts td {
  text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
table.compare thead th { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--ink); border-bottom: 2px solid var(--ink); }
table.compare tbody th, table.facts th { font-weight: 600; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
table.compare .yes { color: var(--accent); font-weight: 600; }
table.compare .no { color: var(--muted); }
table.facts th { width: 38%; white-space: normal; }

.page-body.wide .prose { max-width: 860px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; }
.form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form .field { margin-bottom: 20px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1px solid #b9c2ce; border-radius: 2px; padding: 12px 14px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form .consent { font-size: 0.9rem; color: var(--muted); }
.form button { cursor: pointer; font-family: inherit; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 2px; font-size: 0.96rem; display: none; }
.form-status.ok { display: block; background: #e6f4ea; color: #14532d; }
.form-status.err { display: block; background: #fdecea; color: #7a1c13; }
.side-box { border: 1px solid var(--line); background: var(--paper); padding: 24px; margin-bottom: 20px; font-size: 0.96rem; }
.side-box h2 { font-size: 1.2rem; margin-bottom: 10px; }
.side-box p:last-child, .side-box address { margin-bottom: 0; }
.side-box address { font-style: normal; }

@media (max-width: 900px) {
  .page-head { padding: 48px 0 40px; }
  .page-body { padding: 44px 0 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form .row2 { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Four-service grid ---------- */
.card-grid.four { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid.four .card { padding: 28px 22px 24px; }
.card .incl { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.card .incl::before { content: "\2713\00a0"; color: var(--accent); }
.card .incl.alone::before { content: ""; }
table.compare.four { min-width: 780px; }
@media (max-width: 1040px) { .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid.four { grid-template-columns: 1fr; } }

/* ---------- Panorama under the hero ---------- */
.panorama { height: clamp(170px, 26vw, 400px); overflow: hidden; }
.panorama img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pillars { border-top: 0; }

.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin: 0 0 22px; }
.form label.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.form .consent { margin-bottom: 12px; }

/* ---------- Language switcher ---------- */
.nav .lang { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.04em; padding-left: 22px; border-left: 1px solid var(--line); }
.nav .lang a { color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav .lang a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav .lang .cur { color: var(--ink); border-bottom: 2px solid var(--ink); padding: 4px 0; }
table.compare.four tbody th { white-space: normal; min-width: 150px; }
@media (max-width: 1100px) { .nav ul { gap: 20px; } }
@media (max-width: 900px) {
  .nav .lang { border-left: 0; padding: 16px 0 0; gap: 18px; }
  .nav .lang a, .nav .lang .cur { display: inline-block; padding: 4px 0; border-bottom-width: 2px; }
  .nav .lang a { border-bottom: 2px solid transparent; }
}

.hero h1 em { display: block; }
.hero h1 { max-width: 18ch; }
