@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --c-ink: #0b2135;
  --c-ink-muted: #4a5a6a;
  --c-ink-soft: #687684;
  --c-paper: #ffffff;
  --c-bg: #f5f7fa;
  --c-bg-alt: #ecf0f5;
  --c-border: #d7dde4;
  --c-border-soft: #e6eaef;

  --c-brand: #0b3c67;
  --c-brand-deep: #082a48;
  --c-brand-light: #1d5a92;
  --c-brand-pale: #e7eef6;

  --c-accent: #c8322b;
  --c-accent-deep: #a5221c;
  --c-accent-pale: #f9e8e7;

  --c-success: #2e7d4f;
  --c-warn: #a46200;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(11, 33, 53, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 33, 53, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 33, 53, 0.12);

  --max-w: 1180px;
  --gutter: 24px;

  --ff: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--c-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-brand-deep); }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Demo banner ---------- */

.demo-banner {
  background: #2b2b2b;
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.demo-banner strong { color: #ffd27a; }

/* ---------- Top utility bar ---------- */

.utility-bar {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  font-size: 13.5px;
  color: var(--c-ink-muted);
}
.utility-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.utility-bar a {
  color: var(--c-ink-muted);
  text-decoration: none;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.utility-bar a:hover { color: var(--c-brand); }
.utility-bar ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.utility-bar svg { width: 14px; height: 14px; }

/* ---------- Site header ---------- */

.site-header {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-border);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--c-ink);
}

.brand-crest {
  width: 54px;
  height: 60px;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-primary {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-brand-deep);
}
.brand-secondary {
  font-size: 13px;
  color: var(--c-ink-soft);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.header-search {
  flex: 1;
  max-width: 440px;
}
.header-search form {
  display: flex;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg);
}
.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-ink);
  outline: none;
}
.header-search input::placeholder { color: var(--c-ink-soft); }
.header-search button {
  border: 0;
  background: var(--c-brand);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.header-search button:hover { background: var(--c-brand-deep); }
.header-search svg { width: 16px; height: 16px; }

/* ---------- Main navigation ---------- */

.main-nav {
  background: var(--c-brand);
  color: #fff;
}
.main-nav nav { display: flex; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.main-nav li { display: flex; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 15px 22px;
  font-size: 15.5px;
  font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  transition: background 0.12s;
}
.main-nav a:hover { background: var(--c-brand-deep); color: #fff; }
.main-nav a.active {
  background: var(--c-paper);
  color: var(--c-brand-deep);
  font-weight: 600;
}

/* ---------- Breadcrumb ---------- */

.crumb-bar {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border-soft);
  font-size: 13.5px;
}
.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 11px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--c-ink-soft);
}
.breadcrumb li::after { content: "›"; margin-left: 8px; opacity: 0.5; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--c-ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-brand); text-decoration: underline; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, #0b3c67 0%, #082a48 100%);
  color: #fff;
  padding: 68px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 35%);
}
.hero-svg-deco {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 420px;
  opacity: 0.08;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9c8e8;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 820px;
}
.hero p.lead {
  font-size: 19px;
  color: #d4e2f0;
  max-width: 720px;
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero-search form {
  display: flex;
  max-width: 600px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1;
  border: 0;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  color: var(--c-ink);
}
.hero-search button {
  background: var(--c-accent);
  color: #fff;
  border: 0;
  padding: 0 26px;
  font-weight: 600;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.hero-search button:hover { background: var(--c-accent-deep); }
.hero-suggestions {
  margin-top: 14px;
  font-size: 14px;
  color: #b8cde1;
}
.hero-suggestions a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  margin-right: 16px;
}

/* ---------- Section wrappers ---------- */

section.band { padding: 56px 0; }
section.band.alt { background: var(--c-bg); }
section.band h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--c-brand-deep);
}
section.band .section-intro {
  color: var(--c-ink-muted);
  max-width: 720px;
  margin: 0 0 32px;
  font-size: 17px;
}

/* ---------- Service tiles ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.tile {
  background: var(--c-paper);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile:hover {
  border-color: var(--c-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.tile-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--c-brand-pale);
  color: var(--c-brand);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.tile-icon svg { width: 24px; height: 24px; }
.tile h3 {
  font-size: 17px;
  margin: 0;
  color: var(--c-brand-deep);
  font-weight: 600;
}
.tile p {
  margin: 0;
  font-size: 14.5px;
  color: var(--c-ink-muted);
  line-height: 1.5;
}
.tile-arrow {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  color: var(--c-brand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Focus themes ---------- */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.focus-card {
  background: var(--c-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
}
.focus-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--c-brand-light), var(--c-brand-deep));
  position: relative;
  overflow: hidden;
}
.focus-cover svg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 180px;
  opacity: 0.35;
}
.focus-cover.sea { background: linear-gradient(135deg, #1f6a9a, #0b3c67); }
.focus-cover.lime { background: linear-gradient(135deg, #4a7a3a, #2b5224); }
.focus-cover.rust { background: linear-gradient(135deg, #a55a3b, #7a3c24); }
.focus-cover.slate { background: linear-gradient(135deg, #4e5c6a, #232e3a); }
.focus-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-brand-deep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}
.focus-body { padding: 20px 22px 22px; }
.focus-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--c-brand-deep);
}
.focus-body p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--c-ink-muted);
}
.focus-body a {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--c-brand);
  text-decoration: none;
}
.focus-body a:hover { text-decoration: underline; }

/* ---------- Press/news grid ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.news {
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.news:hover {
  border-color: var(--c-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-decoration: none;
}
.news:hover .news-title { color: var(--c-brand); }
.news-media {
  height: 150px;
  background: linear-gradient(135deg, #d2dce6, #a3b5c8);
  position: relative;
  overflow: hidden;
}
.news-media svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  opacity: 0.35;
}
.news-media.green { background: linear-gradient(135deg, #bfd6ae, #7fa370); }
.news-media.sky { background: linear-gradient(135deg, #c8d9e8, #6f9ec6); }
.news-media.sand { background: linear-gradient(135deg, #e5d5b8, #b89a6c); }
.news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.news-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.news-title {
  font-size: 19px;
  font-weight: 600;
  margin: 4px 0 2px;
  line-height: 1.3;
}
.news-title a { color: var(--c-ink); text-decoration: none; }
.news-title a:hover { color: var(--c-brand); }
.news-date {
  font-size: 13px;
  color: var(--c-ink-soft);
  margin-bottom: 6px;
}
.news-body p { margin: 0; font-size: 15px; color: var(--c-ink-muted); }

/* ---------- Inline long-form content ---------- */

.article {
  background: var(--c-paper);
  padding: 48px 0 24px;
}
.article h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--c-brand-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 820px;
}
.article .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--c-ink-muted);
  max-width: 780px;
  margin: 0 0 32px;
}
.article h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  color: var(--c-brand-deep);
  font-weight: 700;
}
.article h3 {
  font-size: 19px;
  margin: 26px 0 8px;
  color: var(--c-ink);
}
.article p { max-width: 780px; margin: 0 0 16px; }

.notice {
  background: var(--c-brand-pale);
  border-left: 4px solid var(--c-brand);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 26px 0;
  max-width: 820px;
}
.notice strong { color: var(--c-brand-deep); }

.callout {
  background: var(--c-accent-pale);
  border-left: 4px solid var(--c-accent);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 26px 0;
  max-width: 820px;
}
.callout strong { color: var(--c-accent-deep); }

.info-block {
  background: var(--c-bg);
  padding: 26px 28px;
  border-radius: var(--radius-md);
  margin: 30px 0;
  max-width: 820px;
}
.info-block dt {
  font-weight: 600;
  margin-top: 14px;
  color: var(--c-brand-deep);
}
.info-block dt:first-child { margin-top: 0; }
.info-block dd {
  margin: 4px 0 0;
  color: var(--c-ink);
}

/* ---------- Quote block ---------- */

.quote-block {
  background: var(--c-bg-alt);
  padding: 40px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.quote-block blockquote {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--c-ink);
  max-width: 820px;
  position: relative;
  padding-left: 34px;
}
.quote-block blockquote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -18px;
  font-size: 70px;
  line-height: 1;
  color: var(--c-brand);
  font-family: Georgia, serif;
}
.quote-attribution {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-ink-muted);
  letter-spacing: 0.02em;
}
.quote-attribution strong {
  color: var(--c-ink);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-brand-deep);
  color: #c5d5e6;
  padding: 48px 0 24px;
  margin-top: 64px;
  font-size: 14.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-top h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin: 7px 0; }
.footer-top a { color: #c5d5e6; text-decoration: none; }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand .brand-crest path { fill: #fff; }
.footer-brand .brand-text span { color: #fff; }
.footer-brand p {
  margin: 10px 0 0;
  color: #9cb0c5;
  font-size: 14px;
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: #9cb0c5;
  font-size: 13.5px;
}
.footer-bottom a { color: #c5d5e6; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .site-header .bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .header-search { max-width: none; }
  .utility-bar .wrap { font-size: 12.5px; }
  .utility-bar ul { gap: 14px; flex-wrap: wrap; }
  .hero { padding: 46px 0 54px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16.5px; }
  .article h1 { font-size: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .main-nav a { padding: 12px 14px; font-size: 14.5px; }
}

/* Zufish-style collapsible sections on service pages */
.article details.zufi-section {
  border-top: 1px solid var(--c-border);
  margin: 0;
}
.article details.zufi-section:last-of-type {
  border-bottom: 1px solid var(--c-border);
}
.article details.zufi-section > summary {
  cursor: pointer;
  padding: 18px 48px 18px 0;
  position: relative;
  list-style: none;
  user-select: none;
}
.article details.zufi-section > summary > h2 {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-brand-deep);
  line-height: 1.3;
}
.article details.zufi-section > summary:hover > h2 { color: var(--c-brand); }
.article details.zufi-section > summary::-webkit-details-marker { display: none; }
.article details.zufi-section > summary::marker { content: ''; }
.article details.zufi-section > summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--c-brand);
  border-bottom: 2.5px solid var(--c-brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.article details.zufi-section[open] > summary::after {
  transform: translateY(-25%) rotate(-135deg);
}
.article details.zufi-section > summary:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: 2px;
}
.article details.zufi-section > .zufi-body {
  padding: 4px 0 22px;
  max-width: 820px;
}
.article details.zufi-section > .zufi-body > *:first-child { margin-top: 0; }
.article details.zufi-section > .zufi-body > *:last-child { margin-bottom: 0; }

/* Override plugin floating button — default is white-on-white on light pages */
#ptpButton {
  background-color: var(--c-brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 24px rgba(11, 33, 53, 0.28) !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
}
#ptpButton:hover {
  background-color: var(--c-brand-deep) !important;
  box-shadow: 0 12px 32px rgba(11, 33, 53, 0.35) !important;
}
#ptpButton img {
  filter: brightness(0) invert(1) !important;
}
