/* ==========================================================================
   FundingPro — shared stylesheet
   ========================================================================== */

@font-face { font-family: "MarkOT"; src: url("../fonts/MarkOT-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "MarkOT"; src: url("../fonts/MarkOT-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MarkOT"; src: url("../fonts/MarkOT-Medium.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #092b3a;
  --teal: #499b95;
  --aqua: #ceefea;
  --aqua-bright: #5eccc7;
  --mist: #e6f7f6;
  --grey: #efefef;
  --white: #ffffff;
  --text: #092b3a;
  --muted: #454545;

  --font: "MarkOT", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 8vw, 104px);
  --header-h: 76px;
  --radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--aqua-bright); outline-offset: 3px; }

/* Shared type */
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

/* Buttons */
.button {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  border-radius: 4px;
  background: var(--aqua-bright);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.button:hover { background: var(--white); color: var(--navy); }
.button--navy { background: var(--navy); }
.button--navy:hover { background: var(--teal); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(9, 43, 58, .08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.site-logo img { width: 168px; height: auto; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.primary-nav > ul { display: flex; gap: 8px; }
.primary-nav li { position: relative; }
.primary-nav a, .primary-nav .submenu-toggle {
  display: block; padding: 10px 14px;
  font: 600 15px/1.2 var(--font); color: var(--navy); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.primary-nav a:hover, .primary-nav .submenu-toggle:hover, .primary-nav a[aria-current="page"] { color: var(--teal); }
.submenu-toggle::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  padding: 8px 0; background: var(--navy); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(9, 43, 58, .2);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav > ul > li:last-child > .submenu { left: auto; right: 0; }
.submenu a { color: var(--white); font-weight: 400; padding: 10px 20px; }
.submenu a:hover { color: var(--aqua-bright); }
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.ext::after { content: " \2197"; font-size: .85em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: clamp(380px, 62vh, 640px);
  padding: 64px var(--gutter);
  text-align: center;
  overflow: hidden;
  background: var(--aqua);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__content { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 300; letter-spacing: -.01em; margin-bottom: .25em; }
.hero .eyebrow { margin: 0; }
.hero--home { min-height: clamp(440px, 78vh, 760px); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }
.section--aqua { background: var(--aqua); }
.section--mist { background: var(--mist); }
.section--grey { background: var(--grey); }

/* Feature tiles (icon / heading / text) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); text-align: center; }
.feature img { width: 64px; height: 64px; margin: 0 auto 20px; }
.feature h3 { font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.section--navy .feature { color: var(--aqua); }
.section--navy .feature p { color: var(--white); opacity: .9; }
.feature .button { margin-top: 20px; }

/* Value cards (white boxes) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.card {
  background: var(--white); color: var(--navy);
  padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); text-align: center;
}
.card h3 { font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.card img { width: 56px; height: 56px; margin: 0 auto 18px; }
.card .button { margin-top: 20px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }

/* Testimonial band */
.quote-band { position: relative; padding: clamp(72px, 10vw, 140px) 0; text-align: center; overflow: hidden; background: var(--aqua); }
.quote-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-band .wrap { position: relative; z-index: 1; }
.quote { max-width: 920px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 28px; font-size: clamp(19px, 2.2vw, 26px); font-weight: 300; line-height: 1.5; }
.quote__name { font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 4px; }
.quote__place { font-size: 15px; margin: 0; }
.section--navy .quote blockquote { font-size: clamp(17px, 1.7vw, 20px); }
.section--navy .quote__name { color: var(--aqua); }

/* Who we work with / What we do */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list-card { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); }
.list-card h2, .list-card h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; letter-spacing: 0; text-transform: none; text-align: center; margin-bottom: 28px; }
.section--white { background: var(--white); }
.section--white .list-card--white { border: 1px solid var(--aqua); }

/* Home service sections */
.service__head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 48px); }
.service__head .eyebrow { color: var(--teal); margin-bottom: 10px; }
.service__head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 300; margin-bottom: 10px; }
.service__why { font-size: clamp(17px, 1.6vw, 19px); margin: 0; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.reason { display: flex; gap: 16px; align-items: flex-start; }
.reason__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); }
.reason__icon img { width: 36px; height: 36px; }
.reason h4 { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 4px 0 6px; }
.reason p { font-size: 16px; }

/* Testimonial carousel */
.t-section { position: relative; padding: clamp(64px, 8vw, 104px) 0; overflow: hidden; background: var(--aqua); }
.t-section__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-section .wrap { position: relative; z-index: 1; }
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3);
  column-gap: 24px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 8px;
}
.t-track::-webkit-scrollbar { display: none; }
.t-track:focus-visible { outline-offset: 6px; }
.t-card {
  scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column;
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: 28px 28px 24px; box-shadow: 0 10px 30px rgba(9, 43, 58, .12);
}
.t-card::before { content: "\201C"; font-size: 56px; line-height: .6; color: var(--aqua-bright); margin-bottom: 8px; }
.t-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; }
.t-card.is-expanded blockquote { display: block; }
.t-more { align-self: flex-start; margin-top: 8px; padding: 0; background: none; border: 0; color: var(--teal); font: 600 14px var(--font); cursor: pointer; text-decoration: underline; }
.t-card figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--grey); }
.t-name { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.t-place { display: block; font-size: 14px; color: var(--muted); }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.t-controls[hidden] { display: none; }
.t-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--navy); color: var(--white); font-size: 20px; cursor: pointer; transition: background-color .2s, opacity .2s;
}
.t-btn:hover { background: var(--teal); }
.t-btn:disabled { opacity: .35; cursor: default; background: var(--navy); }
.t-count { min-width: 96px; text-align: center; font-size: 14px; font-weight: 600; color: var(--navy); }
.list-card--teal { background: var(--teal); color: var(--white); }
.list-card--white { background: var(--white); color: var(--teal); }
.ticks li { position: relative; padding: 7px 0 7px 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 7px; height: 13px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg);
}
.list-card--teal .ticks li::before { border-color: var(--white); }
.list-card--white .ticks li::before { border-color: var(--navy); }

/* CTA band */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 4px; }
.cta p { margin: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
.person { text-align: center; }
.person img { width: 220px; height: 220px; border-radius: 50%; margin: 0 auto 24px; object-fit: cover; }
.person h3 { font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
.person__role { font-style: italic; margin-bottom: 18px; }

/* Services hub */
.service-group + .service-group { margin-top: clamp(48px, 6vw, 80px); }
.service-group__head { text-align: center; margin-bottom: 32px; }
.service-group__head h2 { font-size: clamp(26px, 3vw, 36px); }
.card__sub { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.card h3.card__title { font-size: 22px; font-weight: 400; letter-spacing: 0; text-transform: none; margin-bottom: 6px; }

/* Contact */
.contact-card address { font-style: normal; }
.contact-card a.email { color: var(--teal); font-weight: 600; text-decoration: none; }
.contact-card a.email:hover { text-decoration: underline; }

/* Bank statements embed */
.embed { background: var(--white); }
.embed iframe { display: block; width: 100%; max-width: 940px; min-height: 620px; margin: 0 auto; border: 0; }

/* Legal / placeholder pages */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 300; }
.prose h2 { font-size: 24px; margin-top: 1.8em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.prose ul ul { list-style: circle; margin: .4em 0 0; }
.prose li { margin-bottom: .45em; }
.prose address { font-style: normal; margin: 0 0 1em; }
.prose a { color: var(--teal); }
.placeholder {
  border: 2px dashed var(--teal); background: var(--mist); color: var(--navy);
  padding: 24px; border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--grey); color: var(--navy); font-size: 15px; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: clamp(48px, 6vw, 72px) 0 40px; }
.footer-logo img { width: 150px; margin-bottom: 24px; }
.footer-main strong { display: block; font-weight: 600; }
.footer-main address { font-style: normal; margin-top: 16px; }
.footer-heading { font-size: 15px; font-weight: 400; margin-bottom: 16px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.social { display: flex; gap: 10px; margin-top: 0; }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: var(--white); transition: background-color .2s;
}
.social a:hover { background: var(--navy); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-compliance {
  border-top: 1px solid rgba(9, 43, 58, .15);
  padding: 28px 0; font-size: 13px; line-height: 1.6; color: var(--muted);
}
.footer-compliance p { margin-bottom: .8em; }
.footer-compliance a { color: var(--navy); font-weight: 600; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.footer-bottom { background: var(--white); }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; font-size: 13px; font-weight: 600; }
.to-top { color: var(--teal); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-logo img { width: 140px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); overflow-y: auto; padding: 16px var(--gutter) 40px;
    display: none;
  }
  .nav-open .primary-nav { display: block; }
  .nav-open { overflow: hidden; }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--grey); }
  .primary-nav a, .primary-nav .submenu-toggle { padding: 16px 0; font-size: 18px; width: 100%; text-align: left; }
  .submenu-toggle::after { float: right; margin-top: 4px; }
  .has-submenu.is-open > .submenu-toggle::after { transform: rotate(-135deg); }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: none; padding: 0 0 12px 16px; display: none;
  }
  .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display: none; }
  .has-submenu.is-open > .submenu { display: block; }
  .submenu a { color: var(--navy); padding: 10px 0; font-size: 16px; }

  .features, .cards { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .cards--two { grid-template-columns: 1fr; }
  .lists, .team, .reasons { grid-template-columns: 1fr; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-main { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .person img { width: 180px; height: 180px; }
  .embed iframe { min-height: 720px; }
  .t-track { grid-auto-columns: 88%; column-gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
