/* First Equine Funding - site styles
   Palette: magenta #881366, panel gradient #871a66 -> #902c72, gold gradient #ffc48b -> #cc813e. Font: Roboto Slab. */
@font-face { font-family: "Roboto Slab"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/roboto-slab-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-slab-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-slab-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/roboto-slab-600.woff2") format("woff2"); }

:root {
  --pink: #881366;
  --panel: radial-gradient(circle, #871a66 0%, #902c72 100%);
  --gold: linear-gradient(135deg, #ffc48b 1%, #cc813e 100%);
  --gold-h: linear-gradient(90deg, #ffc48b 0%, #cf8442 70%);
  --gold-text: #cc813e;
  --content: 1140px;
  --gap: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pink); color: #fff; font-family: "Roboto Slab", Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 300; line-height: 28px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 300; }
h1 { font-size: 34px; line-height: 51px; }
h2 { font-size: 29px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 25px; font-weight: 400; }
p { margin: 0 0 20px; }
.wrap { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1000; padding: 10px 16px; color: var(--pink); background: #fff; }
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header { background: var(--pink); position: relative; z-index: 20; }
.nav-row { display: flex; height: 164px; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 195px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a { padding: 10px 12px; border-radius: 30px; text-decoration: none; font-size: 17px; font-weight: 300; line-height: 14px; color: #fff; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--panel); }
.primary-nav a.nav-cta { margin-left: 12px; padding: 17px; background: var(--gold-h); color: var(--pink); font-size: 16px; font-weight: 500; }
.primary-nav a.nav-cta:hover { filter: brightness(1.06); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--gold-text); font: inherit; font-size: 30px; line-height: 1; padding: 8px; cursor: pointer; }

/* ---------- Bands ---------- */
.band-pink { background: var(--pink); padding: 0 0 20px; }
.band-white { background: #fff; color: var(--pink); padding: 20px 0 56px; }
.band-pink .wrap { padding-top: 0; }
.hero-wrap { padding-top: 28px; }

/* ---------- Hero bento ---------- */
.hero-bento { display: flex; gap: var(--gap); height: var(--hh, 496px); }
.hb-col { display: flex; flex-direction: column; gap: var(--gap); flex: var(--w, 1) 1 0; min-width: 0; }
.hb-col.between { justify-content: space-between; }
.hb-row { display: flex; gap: var(--gap); flex: var(--h, 1) 1 0; min-height: 0; }
.t { position: relative; flex: var(--h, 1) 1 0; min-width: 0; min-height: 0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 32px; background: var(--panel); }
.t.row-item { flex: var(--w, 1) 1 0; }
.t.fixed { flex: 0 0 var(--h); }
.hb-row.fixed { flex: 0 0 var(--h); }
.t.gold { background: var(--gold); align-items: center; }
.t.icon { align-items: center; }
.t.icon img { width: var(--iw, 80px); height: auto; }
.t.photo-tile { padding: 0; background-size: cover; background-position: 33% 47%; background-repeat: no-repeat; }
.t.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t.l-flat { border-radius: 0 10px 10px 0; }
.t.r-flat { border-radius: 10px 0 0 10px; }
.t.flat { border-radius: 0; }
.t.copy { padding: 48px 62px 48px 48px; justify-content: center; }
.t.copy h1 { margin-bottom: 20px; }
.t.copy p { margin-bottom: 30px; }
.t.copy p:last-child { margin-bottom: 0; }
.t.contact { font-size: 17px; line-height: 23px; padding: 32px; }
.t.contact p { margin: 0; }
.t.contact strong { display: block; color: var(--gold-text); font-size: 28px; line-height: 34px; font-weight: 600; }
.button { display: inline-block; padding: 17px 30px; border: 0; border-radius: 30px; background: var(--gold-h); color: var(--pink); font: inherit; font-size: 17px; font-weight: 400; line-height: 1; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.06); }
.button.secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px var(--gold-text); }
.button-wrap { margin-top: 10px; }

/* ---------- Content rows ---------- */
.row { display: grid; gap: 17px; margin-top: 28px; }
.row.first { margin-top: 50px; }
.cols-2-3 { grid-template-columns: 435fr 687fr; }
.cols-3-2 { grid-template-columns: 687fr 435fr; }
.cols-1-2 { grid-template-columns: 1fr 1fr; }
.cols-1-3 { grid-template-columns: 1fr 3fr; }
.cols-3-1 { grid-template-columns: 3fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.row-title { margin-top: 28px; }
.row-title h1 { color: var(--pink); margin: 0; padding-bottom: 10px; }
.photo { position: relative; min-height: 300px; border-radius: 20px; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--panel); border-radius: 20px; padding: 50px; color: #fff; }
.panel.side { display: flex; flex-direction: column; justify-content: center; }
.panel.side.pad-r { padding-right: 100px; }
.panel p:last-child, .panel ul:last-child, .panel ol:last-child { margin-bottom: 0; }
.panel ul, .panel ol { margin: 15px 15px 20px; padding: 0 0 0 20px; line-height: 26px; }
.panel li { margin-bottom: 10px; }
.panel h2 { margin-bottom: 10px; }
.panel .icon-sm { width: 100px; height: 100px; margin-bottom: 14px; }
.quotebox { padding: 80px 60px; }
.quotebox h1 { margin-bottom: 25px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 40px 17px; margin-top: 28px; padding-top: 15px; }
.tile { display: flex; align-items: center; gap: 18px; background: var(--panel); border-radius: 20px; padding: 30px; min-height: 120px; }
.tile img { width: 55px; height: 55px; flex: 0 0 55px; object-fit: contain; }
.tile h3 { margin: 0; padding: 0; color: #fff; }
.contact-strip { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.contact-strip p { margin: 0; max-width: 560px; }
.contact-strip .details { font-size: 18px; line-height: 30px; }
.contact-strip .details a { text-decoration: none; display: block; }
.contact-strip .details a:hover { text-decoration: underline; }
.footnote { margin-top: 28px; color: var(--pink); font-size: 14px; line-height: 20px; }
.footnote p { margin: 0 0 8px; }
.sidenote { display: block; margin-top: 18px; font-size: 14px; line-height: 20px; }
.lede-white { color: #fff; }

/* contact page */
.member { text-align: center; }
.member img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.member h3 { font-size: 24px; line-height: 30px; margin: 0 0 4px; }
.member h4 { font-size: 18px; font-weight: 400; margin: 0 0 16px; color: #ffc48b; }
.con-line { font-size: 24px; margin: 0 0 8px; }
.con-line a { text-decoration: none; }
.con-line strong { font-weight: 500; }
.office h1 { margin-bottom: 14px; }
.map-frame { min-height: 320px; padding: 0; overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.intro-row { margin-top: 50px; }
.intro-row h3 { color: var(--pink); font-size: 24px; line-height: 34px; }

/* ---------- Calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; margin-top: 28px; }
.calc-wrap .panel { padding: 30px; }
.calc-wrap [hidden] { display: none !important; }
.calc-wrap[data-step="2"] .application-panel { grid-column: 1; grid-row: 1; }
.calc-wrap[data-step="2"] .results-panel { grid-column: 2; grid-row: 1; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 16px; line-height: 22px; }
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; padding: 8px 14px; border: 0; border-radius: 8px; background: #fff; color: #333; font: inherit; font-size: 16px; line-height: 24px; }
.field textarea { min-height: 80px; }
.field input + input { margin-top: 10px; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.range-line { display: flex; align-items: center; gap: 14px; }
.range-line input[type=range] { flex: 1; accent-color: #ffc48b; }
.range-line output { min-width: 60px; text-align: right; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; margin: 6px 0 16px; }
.check-field input { margin-top: 4px; }
.step-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; }
.results-panel .truck { width: 56px; margin-bottom: 18px; }
.result-list { margin: 0; }
.result-row { margin-bottom: 14px; }
.result-row dt { font-size: 16px; line-height: 22px; }
.result-row dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; }
.calculator-note { margin: 20px 0 0; font-size: 14px; line-height: 20px; }
.calc-footnote { margin: 24px 0 0; font-size: 14px; line-height: 20px; text-align: center; }
.calc-footnote a { color: var(--gold-text); }

/* ---------- Blog / news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 50px; }
.news-card { display: flex; flex-direction: column; background: var(--panel); border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card .body { padding: 26px 28px 30px; }
.news-card h2 { font-size: 22px; line-height: 30px; }
.news-card .meta { font-size: 14px; color: #ffc48b; margin-bottom: 8px; }
.news-card p { font-size: 17px; line-height: 25px; margin: 0; }
.pager { display: flex; justify-content: center; margin-top: 30px; }
.empty-news { text-align: center; color: var(--pink); margin-top: 50px; }
.post-article { margin-top: 50px; }
.post-article .post-meta { color: var(--pink); font-size: 16px; margin-bottom: 20px; }
.post-body { background: var(--panel); border-radius: 20px; padding: 50px; color: #fff; }
.post-body h2, .post-body h3 { margin: 1.2em 0 .5em; }
.post-body a { color: #ffc48b; }
.post-body img { border-radius: 12px; margin: 20px 0; }
.post-hero-img { border-radius: 20px; margin-bottom: 28px; width: 100%; max-height: 420px; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pink) url("../images/rings-background.svg") no-repeat bottom right; background-size: auto 350px; padding: 68px 0 0; }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 34px; }
.footer-top img.flogo { width: 228px; margin-bottom: 24px; }
.footer-links p { margin: 0; padding-bottom: 17px; font-size: 17px; line-height: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.group-logos { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.group-logos .grp { display: flex; gap: 15px; justify-content: center; align-items: center; flex-wrap: nowrap; }
.group-logos .grp a { flex: 0 1 clamp(150px, 22vw, 250px); display: block; }
.group-logos img { display: block; width: 100%; max-width: 250px; height: auto; border-radius: 15px; }
.legal { margin: 20px 0 30px; font-size: 16px; line-height: 23px; }
.footer-bottom { padding: 15px 0 5px; font-size: 17px; }
.footer-bottom .wrap { padding-bottom: 10px; }

/* ---------- Messages ---------- */
.message-page main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.message-panel { max-width: 720px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-row { height: 100px; }
  .brand img { width: 150px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 20px 24px; background: var(--pink); box-shadow: 0 18px 30px rgba(0,0,0,.25); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px 16px; line-height: 18px; }
  .primary-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .hero-bento { flex-direction: column; height: auto; }
  .hb-col, .hb-row, .t, .t.row-item { flex: none; }
  .hb-col { width: 100%; }
  .hb-row { height: 150px; }
  .t { min-height: 130px; }
  .t.fixed { flex: none; height: auto; min-height: 130px; }
  .t.photo-tile { min-height: 200px; }
  .t.l-flat, .t.r-flat, .t.flat { border-radius: 10px; }
  .t.copy { order: -1; padding: 36px 28px; }
  .hero-bento .hb-col.copy-col { order: -2; }
  .hero-bento .hb-col:not(.copy-col) { flex-direction: row; flex-wrap: wrap; }
  .hero-bento .hb-col:not(.copy-col) > .t, .hero-bento .hb-col:not(.copy-col) > .hb-row { flex: 1 1 140px; }
  .cols-2-3, .cols-3-2, .cols-1-2, .cols-1-3, .cols-3-1, .cols-3 { grid-template-columns: 1fr; }
  .photo { min-height: 240px; }
  .panel, .panel.side.pad-r { padding: 30px 26px; }
  .quotebox { padding: 44px 28px; }
  .tiles { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-wrap[data-step="2"] .application-panel, .calc-wrap[data-step="2"] .results-panel { grid-column: 1; grid-row: auto; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .site-footer { background-size: 120px 120px; }
  .group-logos .grp { flex-wrap: wrap; }
  .post-body { padding: 28px 22px; }
}
@media (max-width: 680px) {
  body { font-size: 18px; }
  h1 { font-size: 28px; line-height: 40px; }
  .t.copy h1 { font-size: 28px; line-height: 38px; }
  .row.first { margin-top: 30px; }
}
