/*
Theme Name: Solvency II Solutions 2026
Theme URI: https://www.solvencyiisolutions.com/
Author: Solvency II Solutions Ltd
Description: Lightweight standalone theme for solvencyiisolutions.com. Replaces the legacy Divi child theme. Block-editor friendly, no page builder, no jQuery dependency.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary (site-specific)
Text Domain: siis
*/

/* -------------------------------------------------------------------------
   1. Fonts (self-hosted FF Dax family carried over from the previous theme)
   ------------------------------------------------------------------------- */
@font-face { font-family: "Dax"; font-weight: 200; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxWebPro-Light.woff") format("woff"); }
@font-face { font-family: "Dax"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxWebPro.woff") format("woff"); }
@font-face { font-family: "Dax"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxWebPro-Medi.woff") format("woff"); }
@font-face { font-family: "Dax"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxWebPro-Bold.woff") format("woff"); }
@font-face { font-family: "Dax Wide"; font-weight: 200; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxWebPro-WideLight.woff") format("woff"); }
@font-face { font-family: "Dax Wide"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxWebPro-Wide.woff") format("woff"); }
@font-face { font-family: "Daxline"; font-weight: 100; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxlineWebPro-Thin.woff") format("woff"); }
@font-face { font-family: "Daxline"; font-weight: 200; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxlineWebPro-Light.woff") format("woff"); }
@font-face { font-family: "Daxline"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/FF__DaxlineWebPro-Bold.woff") format("woff"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); }

/* -------------------------------------------------------------------------
   2. Design tokens
   ------------------------------------------------------------------------- */
:root {
  --siis-blue: #0070bf;
  --siis-blue-dark: #005a99;
  --siis-navy: #2d3691;
  --siis-purple: #514291;
  --siis-lavender: #e3e3f9;
  --siis-lavender-soft: #f3f3fc;
  --siis-ink: #24272b;
  --siis-text: #333638;
  --siis-muted: #6b7079;
  --siis-line: #e2e5ea;
  --siis-surface: #ffffff;
  --siis-bg: #f7f8fa;
  --siis-footer: #2e2e2e;
  --siis-footer-deep: #232323;

  --font-body: "Daxline", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-ui: "Dax", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-display: "Dax Wide", "Dax", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  --font-wordmark: "Cinzel", "Trajan Pro", Georgia, serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 60, .06), 0 2px 8px rgba(20, 30, 60, .05);
  --shadow-md: 0 8px 24px rgba(20, 30, 60, .10);
  --content: 760px;
  --wide: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--siis-text);
  background: var(--siis-surface);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
svg.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
a { color: var(--siis-blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--siis-blue-dark); text-decoration: underline; text-underline-offset: .15em; }
:focus-visible { outline: 3px solid rgba(0, 112, 191, .45); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); word-wrap: normal !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--siis-blue); color: #fff; padding: .6em 1em; border-radius: 6px; }
.skip-link:focus { left: 8px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 1.15;
  color: var(--siis-ink);
  margin: 0 0 .6em;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-family: var(--font-ui); font-weight: 400; }
h4, h5, h6 { font-family: var(--font-ui); font-weight: 500; font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
strong, b { font-weight: 700; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.25em; border-left: 4px solid var(--siis-lavender); color: var(--siis-muted); font-size: 1.15em; }
hr { border: 0; border-top: 1px solid var(--siis-line); margin: 2.5rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
pre { background: var(--siis-bg); padding: 1em; border-radius: var(--radius); overflow: auto; }
table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-family: var(--font-ui); font-weight: 400; font-size: .95em; }
th, td { text-align: left; padding: .65em .8em; border-bottom: 1px solid var(--siis-line); vertical-align: top; }
th { font-weight: 500; background: var(--siis-bg); }
figure { margin: 1.5em 0; }
figcaption { font-size: .9em; color: var(--siis-muted); margin-top: .5em; }

/* Layout helpers */
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--lavender { background: linear-gradient(180deg, var(--siis-lavender-soft), var(--siis-lavender)); }
.section--blue { background: var(--siis-blue); color: #fff; }
.section--purple { background: var(--siis-purple); color: #fff; }
.section--dark { background: var(--siis-ink); color: #fff; }
.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4,
.section--purple h1, .section--purple h2, .section--purple h3, .section--purple h4,
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--blue a, .section--purple a, .section--dark a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.eyebrow { font-family: var(--font-ui); font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--siis-blue); margin-bottom: .75rem; }
.section--blue .eyebrow, .section--purple .eyebrow { color: rgba(255,255,255,.75); }
.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.55; }
.center { text-align: center; }
.measure { max-width: 68ch; }
.measure--center { margin-inline: auto; }

/* Buttons */
.btn, .wp-block-button__link, .wp-element-button, button.btn, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-ui); font-weight: 500; font-size: 1rem; line-height: 1;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--siis-blue);
  background: var(--siis-blue); color: #fff; cursor: pointer; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--siis-blue-dark); border-color: var(--siis-blue-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--siis-blue); }
.btn--ghost:hover { background: var(--siis-blue); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--siis-blue); }
.btn--white:hover { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); color: var(--siis-blue-dark); }
.btn--outline-white { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-white:hover { background: #fff; border-color: #fff; color: var(--siis-blue); }
.btn--sm { font-size: .9rem; padding: .6em 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { white-space: nowrap; }

/* -------------------------------------------------------------------------
   4. Header & navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--siis-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none !important; color: inherit; }
.brand__mark { width: 40px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-wordmark); font-weight: 600; font-size: 1.28rem; letter-spacing: .02em; white-space: nowrap; line-height: 1; }
.brand__name span:first-child { color: var(--siis-navy); }
.brand__name span:last-child { color: var(--siis-blue); }
.brand--footer .brand__name span { color: #fff; }
.brand--footer .brand__name span:last-child { color: #8fc5ee; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--siis-ink); }
.nav-toggle svg { width: 28px; height: 28px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: .15rem; }
.menu > li { position: relative; margin: 0; }
.menu > li > a {
  display: inline-flex; align-items: center; gap: .3em; white-space: nowrap;
  font-family: var(--font-ui); font-weight: 500; font-size: .92rem;
  color: var(--siis-ink); padding: .6rem .65rem; border-radius: 8px; text-decoration: none !important;
}
@media (min-width: 961px) and (max-width: 1180px) { .menu > li > a { font-size: .86rem; padding: .55rem .5rem; } .brand__name { font-size: 1.1rem; } }
.menu > li > a:hover, .menu > li.current-menu-item > a, .menu > li.current-menu-ancestor > a, .menu > li.current_page_parent > a { color: var(--siis-blue); background: var(--siis-lavender-soft); }
.menu > li.menu-item-has-children > a::after { content: ""; width: .45em; height: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.15em) rotate(45deg); opacity: .6; }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--siis-line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu > li:hover > .sub-menu, .menu > li:focus-within > .sub-menu, .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li { margin: 0; }
.sub-menu a { display: block; padding: .55rem .75rem; border-radius: 6px; font-family: var(--font-ui); font-weight: 400; font-size: .93rem; color: var(--siis-text); text-decoration: none !important; }
.sub-menu a:hover, .sub-menu .current-menu-item > a { background: var(--siis-lavender-soft); color: var(--siis-blue); }
.menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.nav-cta { white-space: nowrap; }

@media (max-width: 960px) {
  /* backdrop-filter would turn the header into the containing block for the fixed nav panel */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .2s ease; visibility: hidden;
  }
  .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
  .site-nav.is-open { transform: none; visibility: visible; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li > a { font-size: 1.1rem; padding: .9rem .5rem; border-radius: 0; border-bottom: 1px solid var(--siis-line); display: flex; justify-content: space-between; }
  .menu > li.menu-item-has-children > a::after { width: .55em; height: .55em; }
  .menu > li.is-open > a::after { transform: translateY(.15em) rotate(-135deg); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: .25rem 0 .5rem 1rem; display: none; }
  .menu > li.is-open > .sub-menu { display: block; }
  .menu > li:hover > .sub-menu { display: none; }
  .menu > li.is-open:hover > .sub-menu { display: block; }
  .sub-menu a { font-size: 1rem; padding: .7rem .5rem; }
  .nav-cta { margin-top: 1.25rem; justify-content: center; }
  .brand__name { font-size: 1.05rem; }
}
@media (max-width: 420px) { .brand__name { font-size: .95rem; } }

/* -------------------------------------------------------------------------
   5. Page chrome: hero / titles / content
   ------------------------------------------------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--siis-lavender-soft) 0%, #fff 100%); border-bottom: 1px solid var(--siis-line); padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem); }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .breadcrumbs { font-family: var(--font-ui); font-weight: 400; font-size: .85rem; color: var(--siis-muted); margin-bottom: 1rem; }
.page-hero .breadcrumbs a { color: var(--siis-muted); }
.page-hero .breadcrumbs a:hover { color: var(--siis-blue); }
.page-hero .breadcrumbs span::before { content: "/"; margin: 0 .5em; opacity: .5; }
.page-hero .breadcrumbs span:first-child::before { content: none; }
.page-hero .excerpt { color: var(--siis-muted); }

.entry-content { padding-block: clamp(2rem, 4vw, 3.5rem); max-width: var(--content); margin-inline: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > .alignwide { width: min(var(--wide), 100vw - 2 * var(--gutter)); margin-left: calc(50% - min(var(--wide), 100vw - 2 * var(--gutter)) / 2); }
.entry-content > .alignfull { width: calc(100vw - 2 * var(--gutter)); margin-left: calc(50% - 50vw + var(--gutter)); }
/* Empty side columns used to "centre" content in the old layout: collapse them */
.entry-content .wp-block-column:not(:has(*)) { display: none; }
.entry-content .wp-block-columns:has(> .wp-block-column:not(:has(*))) { display: block; }
.entry-content .wp-block-columns:has(> .wp-block-column:not(:has(*))) > .wp-block-column { flex-basis: auto !important; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-image img { box-shadow: var(--shadow-sm); }
.entry-content .wp-block-columns { gap: 2rem; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content .wp-block-group.has-background { padding: 1.5rem; border-radius: var(--radius); }
.entry-content .wp-block-quote { border-left-color: var(--siis-blue); }
.entry-content .wp-block-separator { border-top: 1px solid var(--siis-line); border-bottom: 0; max-width: 120px; margin: 3rem auto; }
.entry-content .wp-block-buttons { margin-top: 1.5rem; }
.entry-content iframe { max-width: 100%; }
.entry-content ul li::marker { color: var(--siis-blue); }
.has-siis-blue-color { color: var(--siis-blue); } .has-siis-blue-background-color { background-color: var(--siis-blue); color: #fff; }
.has-siis-purple-color { color: var(--siis-purple); } .has-siis-purple-background-color { background-color: var(--siis-purple); color: #fff; }
.has-siis-lavender-color { color: var(--siis-lavender); } .has-siis-lavender-background-color { background-color: var(--siis-lavender); }
.has-siis-ink-color { color: var(--siis-ink); } .has-siis-ink-background-color { background-color: var(--siis-ink); color: #fff; }
.has-siis-bg-background-color { background-color: var(--siis-bg); }

.page-footer-cta { border-top: 1px solid var(--siis-line); }

/* Legacy Divi pass-through wrappers (kept neutral) */
.legacy-section { padding-block: 1rem; }
.legacy-row { display: grid; gap: 2rem; grid-template-columns: repeat(var(--legacy-cols, 1), minmax(0, 1fr)); max-width: var(--wide); margin-inline: auto; }
@media (max-width: 760px) { .legacy-row { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   6. Cards, features, grids
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--siis-surface); border: 1px solid var(--siis-line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3, .card h4 { margin-top: 0; margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--plain { box-shadow: none; }
.card--plain:hover { transform: none; box-shadow: none; }
.card--tint { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.card--tint:hover { box-shadow: none; transform: none; background: rgba(255,255,255,.12); }
.card--tint p { color: rgba(255,255,255,.88); }
.card__icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--siis-lavender-soft); color: var(--siis-blue); margin-bottom: 1rem; }
.card__icon svg { width: 24px; height: 24px; }
.card--tint .card__icon { background: rgba(255,255,255,.14); color: #fff; }
.card__kicker { font-family: var(--font-ui); font-weight: 500; font-size: .95rem; color: var(--siis-muted); margin-bottom: .5rem; }
.card--tint .card__kicker { color: rgba(255,255,255,.8); }

.feature { display: flex; gap: 1rem; }
.feature__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); color: #fff; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-ui); font-weight: 500; font-size: 1.2rem; margin: .25rem 0 .35rem; color: #fff; }
.feature p { margin: 0; color: rgba(255,255,255,.9); }

.stat { text-align: center; }
.stat__value { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; color: var(--siis-blue); }
.stat__label { font-family: var(--font-ui); font-weight: 400; font-size: .95rem; color: var(--siis-muted); margin-top: .5rem; }

/* -------------------------------------------------------------------------
   7. Home page
   ------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 0%, var(--siis-lavender) 0%, rgba(227,227,249,0) 55%), linear-gradient(180deg, #fff, var(--siis-lavender-soft)); border-bottom: 1px solid var(--siis-line); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); margin-bottom: 1rem; }
.hero .lead { color: var(--siis-text); }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1.75rem; }
.badge { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-ui); font-weight: 500; font-size: .85rem; color: var(--siis-ink); background: #fff; border: 1px solid var(--siis-line); padding: .4em .8em; border-radius: 999px; }
.badge svg { width: 16px; height: 16px; color: var(--siis-blue); }
.hero__visual { position: relative; }
.product-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--siis-line); box-shadow: var(--shadow-md); padding: clamp(1.5rem, 3vw, 2.25rem); }
.product-card__logo { display: block; width: 240px; max-width: 70%; margin: 0 auto 1.25rem; }
.product-card__tag { text-align: center; font-family: var(--font-ui); font-weight: 400; color: var(--siis-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.product-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.product-card li { display: flex; gap: .6rem; align-items: flex-start; font-family: var(--font-ui); font-weight: 400; font-size: .98rem; margin: 0; }
.product-card li svg { flex: none; width: 20px; height: 20px; color: var(--siis-blue); margin-top: .15em; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } .hero__visual { max-width: 520px; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--siis-line); border: 1px solid var(--siis-line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { background: #fff; padding: clamp(1.25rem, 2.5vw, 2rem); }
.pillar__num { font-family: var(--font-display); font-weight: 400; color: var(--siis-blue); font-size: .9rem; letter-spacing: .1em; margin-bottom: .5rem; }
.pillar h3 { font-family: var(--font-ui); font-weight: 500; font-size: 1.15rem; margin: 0 0 .4rem; }
.pillar p { margin: 0; font-size: 1rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(135deg, var(--siis-navy), var(--siis-blue)); color: #fff; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.cta-band h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.cta-band .btn-row { margin-top: 0; }

.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; padding-block: 1.75rem; border-top: 1px solid var(--siis-line); font-family: var(--font-ui); font-weight: 400; color: var(--siis-muted); font-size: .95rem; }
.trust strong { color: var(--siis-ink); font-weight: 500; }
.trust__item { display: inline-flex; align-items: center; gap: .5rem; }
.trust__item svg { width: 20px; height: 20px; color: var(--siis-blue); }

/* -------------------------------------------------------------------------
   8. About page
   ------------------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: start; }
.person__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-sm); background: var(--siis-lavender); }
.person h3 { margin: 0 0 .1em; font-family: var(--font-ui); font-weight: 500; font-size: 1.3rem; }
.person__role { font-family: var(--font-ui); font-weight: 400; color: var(--siis-blue); margin-bottom: .75rem; }
.person p { font-size: 1.02rem; }
.person__contact { font-family: var(--font-ui); font-weight: 400; margin-top: .5rem; }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } }
details.more { margin-top: .5rem; }
details.more summary { cursor: pointer; font-family: var(--font-ui); font-weight: 500; color: var(--siis-blue); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " +"; }
details.more[open] summary::after { content: " –"; }
details.more p { margin-top: .75em; }

/* -------------------------------------------------------------------------
   9. Blog / archives
   ------------------------------------------------------------------------- */
.post-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; border-radius: 0; }
.post-card__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card__meta { font-family: var(--font-ui); font-weight: 400; font-size: .85rem; color: var(--siis-muted); }
.post-card h2 { font-family: var(--font-ui); font-weight: 500; font-size: 1.25rem; margin: 0; }
.post-card h2 a { color: var(--siis-ink); }
.post-card p { margin: 0; font-size: 1rem; }
.post-card .more { margin-top: auto; font-family: var(--font-ui); font-weight: 500; font-size: .95rem; }
.entry-meta { font-family: var(--font-ui); font-weight: 400; font-size: .9rem; color: var(--siis-muted); }
.entry-meta a { color: inherit; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 2.5rem 0 0; font-family: var(--font-ui); font-weight: 500; }
.pagination .page-numbers { display: inline-block; min-width: 2.5rem; padding: .5rem .75rem; border: 1px solid var(--siis-line); border-radius: 8px; text-align: center; color: var(--siis-ink); }
.pagination .page-numbers.current { background: var(--siis-blue); border-color: var(--siis-blue); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { color: var(--siis-ink); }
.featured-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tag-list a { font-family: var(--font-ui); font-weight: 400; font-size: .85rem; background: var(--siis-bg); border: 1px solid var(--siis-line); border-radius: 999px; padding: .3em .8em; color: var(--siis-text); }

/* Comments (kept minimal) */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem 0; border-top: 1px solid var(--siis-line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; }

/* -------------------------------------------------------------------------
   10. Forms (native, Forminator, login)
   ------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
  font: inherit; font-family: var(--font-ui); font-weight: 400; font-size: 1rem;
  padding: .75em .9em; border: 1px solid #c9ced6; border-radius: 8px; background: #fff; color: var(--siis-ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--siis-blue); box-shadow: 0 0 0 3px rgba(0,112,191,.18); }
label { font-family: var(--font-ui); font-weight: 500; font-size: .95rem; }
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; }

/* Forminator: let the plugin style itself but harmonise tokens */
.forminator-ui.forminator-custom-form { font-family: var(--font-ui) !important; }
.forminator-ui.forminator-custom-form .forminator-button-submit { border-radius: 999px !important; background: var(--siis-blue) !important; font-weight: 500 !important; }
.forminator-ui.forminator-custom-form .forminator-input, .forminator-ui.forminator-custom-form .forminator-textarea { border-radius: 8px !important; }

/* Client login card */
.login-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--siis-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.5rem, 3vw, 2.25rem); }
.login-card h1, .login-card h2 { font-family: var(--font-ui); font-weight: 400; font-size: 1.6rem; margin-bottom: .25em; }
.login-card .login-intro { color: var(--siis-muted); font-size: 1rem; margin-bottom: 1.5rem; }
.login-card form p { margin: 0 0 1rem; }
.login-card label { display: block; margin-bottom: .35rem; }
.login-card .input, .login-card input[type="text"], .login-card input[type="password"] { width: 100%; }
.login-card .login-remember { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.login-card .login-submit input { width: 100%; }
.login-card .login-links { display: flex; justify-content: space-between; font-family: var(--font-ui); font-weight: 400; font-size: .92rem; margin-top: 1rem; }
.login-card .login-message { background: var(--siis-lavender-soft); border-left: 4px solid var(--siis-blue); padding: .75rem 1rem; border-radius: 6px; font-family: var(--font-ui); font-weight: 400; font-size: .95rem; margin-bottom: 1.25rem; }
.login-card .login-message.is-error { background: #fdf1f1; border-left-color: #c0392b; }
.login-card .login-message.is-success { background: #eef8f0; border-left-color: #2e8b57; }
.login-status { font-family: var(--font-ui); font-weight: 400; }
.section--login { background: linear-gradient(180deg, var(--siis-lavender-soft), #fff); min-height: 60vh; display: flex; align-items: center; }
.section--login-in { align-items: flex-start; }
.client-area__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; margin-bottom: 2rem; }
.client-area__head h1 { margin-bottom: .3em; }
.client-area__head p { margin: 0; }
.client-link { display: block; color: inherit; text-decoration: none !important; }
.client-link h3 { font-family: var(--font-ui); font-weight: 500; font-size: 1.15rem; color: var(--siis-ink); }
.client-link p { color: var(--siis-muted); font-size: 1rem; }
.client-link:hover h3 { color: var(--siis-blue); }
.client-area__extra { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--siis-line); max-width: none; }

/* -------------------------------------------------------------------------
   11. Plugin harmonisation (Download Monitor, Events Calendar, Ultimate Member)
   ------------------------------------------------------------------------- */
.entry-content a[href*="/download/"] { font-family: var(--font-ui); font-weight: 500; }
/* Download Monitor links output as bare anchors */
.entry-content > a.dlm-download-link, .entry-content .dlm-download-link { display: flex; align-items: center; gap: .75rem; background: var(--siis-bg); border: 1px solid var(--siis-line); border-radius: var(--radius); padding: .8rem 1rem; margin: .5rem 0; text-decoration: none !important; color: var(--siis-ink); transition: border-color .15s, background .15s; }
.entry-content .dlm-download-link:hover { border-color: var(--siis-blue); background: #fff; color: var(--siis-blue); }
.entry-content .dlm-download-link::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--siis-blue); }
.entry-content > p:empty { display: none; }
.entry-content > p:has(> strong:only-child) { margin-top: 1.5em; margin-bottom: .5em; font-family: var(--font-ui); }
.download-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.download-list li { display: flex; align-items: center; gap: .75rem; background: var(--siis-bg); border: 1px solid var(--siis-line); border-radius: var(--radius); padding: .85rem 1rem; margin: 0; font-family: var(--font-ui); font-weight: 400; }
.download-list li svg { width: 20px; height: 20px; color: var(--siis-blue); flex: none; }
.tribe-common, .tribe-events { font-family: var(--font-ui) !important; }
.tribe-events .tribe-events-c-ical__link, .tribe-events-button { border-radius: 999px !important; }
.um { font-family: var(--font-ui); }

/* -------------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--siis-footer); color: rgba(255,255,255,.82); font-family: var(--font-ui); font-weight: 400; font-size: .95rem; margin-top: auto; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-ui); font-weight: 500; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .5rem; display: flex; align-items: flex-start; gap: .5rem; }
.site-footer li svg.icon { margin-top: .2em; opacity: .8; }
.site-footer .sub-menu { display: none; }
.site-footer__blurb { margin-top: 1rem; color: rgba(255,255,255,.7); max-width: 38ch; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.6); }
.site-footer__bottom a { color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }

/* 404 / search */
.not-found { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.not-found h1 { font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* Utilities */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.text-muted { color: var(--siis-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Print */
@media print { .site-header, .site-footer, .nav-toggle, .cta-band, .page-footer-cta { display: none !important; } body { font-size: 11pt; } }