/* Catalyst Finance Solutions: site styles */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #0B2A5B;          /* headings, buttons, links */
  --teal-text: #0B7576;     /* eyebrow, link hover */
  --teal-accent: #17A08A;   /* decorative only: never behind white text */
  --text: #1E2732;
  --text-secondary: #3A4553;
  --text-muted: #5A6472;
  --bg-light: #F2F6F9;
  --border: #E3E8EE;
  --input-border: #C9D2DC;
  --white: #ffffff;

  --font-body: "Inter", system-ui, sans-serif;
  --font-heading: "Poppins", "Inter", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-heading); color: var(--navy); }

a { color: var(--navy); }
a:hover { color: var(--teal-text); }

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

input, textarea, button { font: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ---------- Layout ---------- */
.container {
  /* content-box: 1120px of content plus 24px padding each side, as in the design */
  box-sizing: content-box;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section > .container { padding-top: 88px; padding-bottom: 88px; }
.section--light { background: var(--bg-light); }

/* Anchor targets clear the top of the viewport neatly */
section[id] { scroll-margin-top: 0; }

.accent-bar {
  width: 64px;
  height: 4px;
  background: var(--teal-accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

h2 {
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #082048; color: var(--white); }

.button--small {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); }

.site-header__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { display: block; height: 52px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.button) { text-decoration: none; }

/* ---------- Hero ---------- */
.hero > .container { padding-bottom: 96px; }
.hero__content { max-width: 760px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--teal-text);
}

h1 {
  margin: 0 0 24px;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__text {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text-secondary);
}
.hero__text:last-of-type { margin-bottom: 32px; }

/* ---------- About ---------- */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.about__photo {
  flex: 1 1 280px;
  max-width: 360px;
  margin: 0;
}
.about__photo img {
  display: block;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--teal-accent);
}
.about__photo figcaption {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.about__text { flex: 999 1 420px; min-width: 0; }
.about__text p { margin: 0 0 16px; font-size: 17px; }
.about__text p:last-child { margin-bottom: 0; }

/* ---------- Services ---------- */
.services__heading { margin-bottom: 40px; }

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  /* content-box so the 320px basis excludes padding, giving the design's 2-2-1 grid */
  box-sizing: content-box;
  flex: 1 1 320px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal-accent);
  border-radius: 8px;
  padding: 28px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}
.card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-secondary);
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.contact__intro { flex: 1 1 360px; min-width: 0; }
.contact--no-form .contact__intro { max-width: 760px; }
.contact__intro h2 { margin-bottom: 20px; }
.contact__lead { margin: 0 0 24px; font-size: 17px; }
.contact__email { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.contact__email strong { color: var(--navy); }
.contact__button { margin-top: 32px; }

/* Shown only when form.enabled is true in contact.yaml */
.contact-form {
  box-sizing: content-box;
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 28px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-weight: 400;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline-offset: 1px; }
.contact-form .button { align-self: flex-start; min-height: 48px; padding: 12px 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.site-footer__inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.site-footer__logo { display: block; width: 260px; height: auto; }

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .section > .container { padding-top: 64px; padding-bottom: 64px; }
  .hero > .container { padding-bottom: 72px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .site-nav { gap: 20px; }
  .card { padding: 24px; }
  .site-footer__meta { align-items: flex-start; }
}
