/* FinCrimez site. Plain CSS, no build step.
   The design follows the old FinCrimez site: Raleway titles, light body text, the brand's
   slate / pale blue / orange, a picture band at the top of each page, and one pattern per section. */

@font-face { font-family: "Raleway"; src: url("../fonts/raleway.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --slate: #394459;
  --slate-deep: #1f2636;
  --pale: #e2ecf1;
  --pale-soft: #f3f7f9;
  --orange: #f58345;
  --orange-text: #c2561a;   /* darker orange for small text on white */
  --text: #394459;
  --muted: #5f6b7e;
  --line: #d3dde3;
  --title: "Raleway", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --page: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--body); font-size: 1rem; line-height: 1.75; font-weight: 400; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--slate); text-underline-offset: 0.2em; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--title); font-weight: 300; color: var(--slate); line-height: 1.25; margin: 0; font-variant-numeric: lining-nums; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--slate); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header: logo and name on the left, menu on the right */
.site-header .wrap { max-width: 1240px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--slate); }
.brand img { width: 47px; height: 52px; display: block; }
.brand span { font-family: var(--title); font-weight: 300; font-size: 2.35rem; line-height: 1; letter-spacing: -0.01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 26px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--slate); font-size: 0.92rem; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--slate); }
.site-nav a.nav-cta { border: 1px solid var(--slate); border-radius: 4px; padding: 6px 16px; }
.site-nav a.nav-cta:hover { background: var(--slate); color: #fff; }

/* Picture band at the top of each page */
.band { background: var(--pale) center / cover no-repeat; text-align: center; }
.band .wrap { min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
/* A soft clearing behind the words, so the network never runs through the text */
.band-light { background-image: radial-gradient(ellipse 46% 78% at center, rgba(240,246,249,0.97) 0, rgba(240,246,249,0.92) 55%, rgba(240,246,249,0) 100%), url("../img/band-light.svg"); }
.band-dark { background-image: radial-gradient(ellipse 40% 70% at center, rgba(57,68,89,0.96) 0, rgba(57,68,89,0.9) 50%, rgba(57,68,89,0) 100%), url("../img/band-dark.svg"); background-color: var(--slate); }
@media (max-width: 760px) {
  .band-light { background-image: linear-gradient(rgba(240,246,249,0.9), rgba(240,246,249,0.9)), url("../img/band-light.svg"); }
  .band-dark { background-image: linear-gradient(rgba(57,68,89,0.88), rgba(57,68,89,0.88)), url("../img/band-dark.svg"); }
  .band .wrap { min-height: 320px; }
}
.band h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); max-width: 16ch; }
.band-dark h1 { color: var(--orange); }
.band-dark .wrap { min-height: 300px; }
.band p { font-size: 1.15rem; max-width: 46ch; margin: 1.1em auto 0; }
.band-dark p { color: #e8eef2; }

/* Bands with the old site's photographs */
.band-columns .wrap { min-height: 440px; }
.band-columns p { color: var(--slate-deep); font-weight: 600; }
.band-umbrellas { background-image: linear-gradient(rgba(31,38,54,0.12), rgba(31,38,54,0.12)), url("../img/services-umbrellas-brand.jpg"); max-width: var(--page); margin: 28px auto 0; }
.band-umbrellas .wrap { min-height: 380px; }
.band-umbrellas h1 { color: var(--orange); text-shadow: 0 1px 14px rgba(31,38,54,0.35); }

/* Home option B: words on a white panel over the photograph */
.hero-panel .wrap { min-height: 480px; display: flex; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-panel .panel { background: rgba(255,255,255,0.95); max-width: 560px; padding: 44px 46px 42px; border-left: 7px solid var(--orange); }
.hero-panel h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.hero-panel p { font-size: 1.08rem; margin: 1em 0 0; }
.hero-panel .btn { margin-top: 26px; }

/* Home option C: words on the left, photograph on the right */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 480px; }
.hero-split .words { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 6vw, 84px); }
.hero-split .words > * { max-width: 520px; }
.hero-split h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.hero-split p { font-size: 1.1rem; margin: 1em 0 0; }
.hero-split .btn { margin-top: 28px; align-self: flex-start; }
@media (max-width: 820px) { .hero-split { grid-template-columns: 1fr; } .hero-split .photo { order: -1; } }

/* Home option B: two equal lists */
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; }
.lists h3 { font-size: 1.5rem; color: var(--orange-text); padding-bottom: 14px; border-bottom: 2px solid var(--slate); }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists a { display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 18px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--slate); min-height: 96px; }
.lists a:hover { background: var(--pale-soft); color: var(--slate); }
.lists .dot { width: 48px; height: 48px; border-radius: 50%; background: var(--slate); display: grid; place-items: center; }
.lists .dot svg { width: 26px; height: 26px; }
.lists strong { display: block; font-family: var(--title); font-weight: 400; font-size: 1.22rem; line-height: 1.3; }
.lists span.line { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.lists .go { color: var(--orange); font-size: 1.3rem; line-height: 1; }
@media (max-width: 820px) { .lists { grid-template-columns: 1fr; } }

/* Home option C: numbered index on slate */
.index { background: var(--slate); color: #e8eef2; padding: 64px 0 70px; }
.index .section-title h2 { color: #fff; }
.index ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; border-top: 1px solid rgba(226,236,241,0.28); border-left: 1px solid rgba(226,236,241,0.28); }
.index li { border-right: 1px solid rgba(226,236,241,0.28); border-bottom: 1px solid rgba(226,236,241,0.28); }
.index a { display: block; height: 100%; padding: 26px 24px 28px; text-decoration: none; color: #e8eef2; }
.index a:hover { background: rgba(226,236,241,0.09); color: #fff; }
.index .n { font-family: var(--title); font-weight: 300; font-size: 2.3rem; line-height: 1; color: var(--orange); font-variant-numeric: lining-nums; display: block; margin-bottom: 18px; }
.index h3 { color: #fff; font-size: 1.32rem; font-weight: 400; margin-bottom: 8px; }
.index p { font-family: var(--title); font-style: italic; font-size: 0.98rem; line-height: 1.5; margin: 0; color: #cfdae2; }
@media (max-width: 900px) { .index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .index ol { grid-template-columns: 1fr; } }

/* Section opening: the orange line under the band, as on the old home page */
.section { padding: 64px 0; }
.section.tight { padding-top: 40px; }
.section.soft { background: var(--pale-soft); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--orange-text); }
.section-title p { max-width: 60ch; margin: 0.8em auto 0; color: var(--muted); }

.btn { display: inline-block; text-decoration: none; font-family: var(--body); font-size: 0.98rem; font-weight: 600; padding: 12px 28px; border-radius: 4px; background: var(--slate); color: #fff; border: 2px solid var(--slate); }
.btn:hover { background: var(--slate-deep); border-color: var(--slate-deep); color: #fff; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--slate-deep); }
.btn.orange:hover { background: #ff9558; border-color: #ff9558; color: var(--slate-deep); }
.band .btn { margin-top: 30px; }

/* Topic tiles: pale blue, orange title, italic line, round icon. Every tile is a link. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.tiles a { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; background: var(--pale); padding: 26px 16px 22px; text-decoration: none; color: var(--slate); transition: background 0.15s; }
.tiles a:hover { background: #d3e2ea; color: var(--slate); }
/* Every title takes two lines of room and every line of text two lines, so all tiles match */
.tiles h3 { font-size: 1.4rem; color: var(--orange-text); line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; }
.tiles p { font-family: var(--title); font-style: italic; font-size: 1.02rem; line-height: 1.45; min-height: 2.9em; margin: 0.5em 0 1em; }
.tiles .dot { margin-top: auto; width: 48px; height: 48px; border-radius: 50%; background: var(--slate); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.tiles .dot svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tiles { grid-template-columns: 1fr; } .tiles h3 { min-height: 0; } }

/* Three or six equal columns with an icon, a title and one paragraph */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 44px; }
.columns > * { text-align: center; }
.columns .icon { width: 150px; height: 150px; margin: 0 auto 28px; display: block; }
.columns .glyph { width: 64px; height: 64px; margin: 0 auto 26px; display: block; }
.columns h3 { font-size: 1.32rem; margin-bottom: 18px; }
.columns p { font-size: 0.94rem; line-height: 1.95; margin: 0; }
@media (max-width: 820px) { .columns { grid-template-columns: 1fr; gap: 44px; } .columns p { max-width: 46ch; margin: 0 auto; } }

/* Two ways to start */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair > div { background: #fff; border-top: 5px solid var(--orange); padding: 30px 32px 28px; }
.pair .kicker { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-text); font-weight: 600; margin: 0 0 8px; }
.pair h3 { font-size: 1.5rem; margin-bottom: 14px; }
.pair ul { margin: 0; padding-left: 1.1em; font-size: 0.96rem; line-height: 1.7; }
.pair li { margin-bottom: 0.4em; }
.pair li::marker { color: var(--orange); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Who does the work */
.person { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; text-align: left; }
.person img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 5px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.person div { max-width: 52ch; }
.person h2 { font-size: 1.7rem; margin-bottom: 10px; }
.person p { margin: 0 0 0.7em; }
.person .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 1.2em; }


.draft-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.draft-bar a[aria-current="page"] { background: #4a3b00; color: #fff4c2; text-decoration: none; padding: 1px 10px; border-radius: 2px; }

/* Contact strip */
.contact-strip { text-align: center; }
.contact-strip h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.contact-strip p { margin: 0.6em auto 1.6em; }

/* Footer: the slate band of the old site */
.site-footer { background: var(--slate); color: #e8eef2; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-top: 34px; padding-bottom: 20px; }
.footer-brand { display: inline-flex; align-items: flex-end; gap: 16px; text-decoration: none; color: var(--pale); }
.footer-brand img { width: 98px; height: 110px; display: block; }
.footer-brand span { font-family: var(--title); font-weight: 300; font-size: 2rem; line-height: 1; padding-bottom: 6px; }
.footer-note { font-family: var(--title); font-style: italic; font-size: 1.12rem; line-height: 1.5; margin: 0 0 6px; }
.footer-note a { color: #fff; }
.footer-copy { flex-basis: 100%; text-align: right; font-size: 0.72rem; color: #c3cdd7; margin: 0; }


.draft-bar { background: #fff4c2; color: #4a3b00; font-size: 0.86rem; line-height: 1.5; border-bottom: 1px solid #e6d27a; padding: 7px 0; }
.draft-bar a { color: #4a3b00; font-weight: 600; }
.soon { text-align: center; padding: 110px 24px; }
.soon h1 { font-size: 2.2rem; margin-bottom: 14px; }

@media print { .draft-bar, .site-nav { display: none; } }
