/* Cardinal Advisors — site styles. Colors and typeface follow the brand guideline. */
:root {
  --navy: #00415e;
  --navy-deep: #002c41;
  --red: #c41e3a;
  --red-dark: #a3172f;
  --ink: #1b2530;
  --muted: #5a6875;
  --line: #dde3e8;
  --paper: #ffffff;
  --tint: #f3f6f8;
  --radius: 10px;
  --wrap: 1120px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a.btn { color: #fff; margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 22px; border-radius: 6px; border: 2px solid var(--red);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  /* blurred project photo under a navy tint, darkest behind the text */
  background:
    linear-gradient(100deg, rgba(0,44,65,.92) 0%, rgba(0,65,94,.8) 45%, rgba(0,65,94,.5) 100%),
    url("../images/hero-bg.jpg") center / cover no-repeat,
    var(--navy);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  /* fill the first screen, so the services start below the fold */
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(2rem, 8.6vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin-bottom: .45em; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.55; color: rgba(255,255,255,.88); max-width: 46ch; margin-bottom: 2em; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.hero .eyebrow { color: #ff8a9c; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero { background: var(--navy); color: #fff; padding: 72px 0 64px; border-bottom: 6px solid var(--red); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 60ch; margin: 0; }

/* Sections */
section { padding: 88px 0; }
section.tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 30px rgba(0,44,65,.08); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(196,30,58,.1);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--red);
}
.card .icon svg { width: 26px; height: 26px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}



/* Project stages: the four stages in order, with a band for work that spans them */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stage { border-top: 4px solid var(--navy); padding: 22px 24px 0 0; position: relative; }
.stage::before { content: ""; position: absolute; top: -10px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid var(--paper); }
.stage > a { display: block; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.stage > a:hover { color: var(--red); }
.stage-num { display: block; color: var(--red); font-size: .85rem; font-weight: 700; margin-bottom: 2px; }
.stage ul { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.stage li { margin-bottom: 6px; }
.stage-band {
  display: block; margin-top: 32px; padding: 18px 22px; background: var(--tint); border-left: 6px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0; text-decoration: none; color: var(--muted);
}
.stage-band strong { color: var(--navy); margin-right: 14px; }
.stage-band:hover strong { color: var(--red); }
.band-items { display: inline-block; }

/* Services page: one section per stage */
.stages-intro { padding: 64px 0 8px; }
.stage-section { padding: 56px 0; scroll-margin-top: 76px; }
.stage-section + .stage-section .wrap { border-top: 1px solid var(--line); padding-top: 56px; }
.stage-section + .stage-section { padding-top: 0; }
.stage-section h2 { font-size: 1.6rem; margin-bottom: 28px; }
.stage-section h2 .stage-num { font-size: .9rem; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; }
.service h3 { font-size: 1.1rem; margin-bottom: .35em; }
.service p { margin: 0; color: var(--muted); max-width: 60ch; }
#throughout { background: var(--tint); padding: 64px 0; }

/* Project cards */
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project .thumb {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.project .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project .body { padding: 24px 26px 28px; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
}
.meta { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* People */
.headshot { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); border-bottom: 6px solid var(--red); }
.headshot-empty {
  display: grid; place-items: center; background: var(--tint); color: var(--muted);
  font-size: .9rem; font-weight: 600; border: 2px dashed var(--line); border-bottom: 6px solid var(--red);
}
.role { color: var(--red); font-weight: 700; margin: -.2em 0 1.2em; }

/* Team page: one row per person, so it grows cleanly as people join */
.team { display: grid; gap: 64px; }
.member { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.member + .member { border-top: 1px solid var(--line); padding-top: 64px; }
.member h2 { font-size: 1.7rem; margin-bottom: .3em; }
.cred { font-weight: 600; color: var(--muted); font-size: .7em; }
.member > div { max-width: 68ch; }
.member { scroll-margin-top: 96px; }
.member details { margin-top: .5em; }
.member summary { cursor: pointer; color: var(--navy); font-weight: 700; margin-bottom: 1em; }
.member summary:hover { color: var(--red); }

/* Home page team strip */
.team-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); gap: 32px; }
.team-mini-card { text-decoration: none; color: var(--ink); }
.team-mini-card .headshot { margin-bottom: 14px; }
.team-mini-card strong { display: block; color: var(--navy); font-size: 1.1rem; }
.team-mini-card span { color: var(--muted); font-size: .95rem; }
.team-mini-card:hover strong { color: var(--red); }
.after-grid { margin-top: 36px; }

/* Virtues */
.virtues-intro { max-width: 760px; font-size: 1.15rem; margin-bottom: 56px; }
.virtue { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.virtue:first-child { border-top: 0; padding-top: 0; }
.virtue img { width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(0,44,65,.18)); }
.virtue:nth-child(even) { grid-template-columns: 1fr 220px; }
.virtue:nth-child(even) img { order: 2; }
.virtue h3 { font-size: 1.6rem; }
.virtue p { margin: 0; }
.virtue-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.virtue-strip a { text-decoration: none; text-align: center; color: var(--navy); font-weight: 700; }
.virtue-strip img { width: 100%; max-width: 170px; margin: 0 auto 12px; transition: transform .2s; }
.virtue-strip a:hover img { transform: translateY(-4px); }

/* Testimonials: one quote per row, read top to bottom */
.testimonials { max-width: 820px; }
.testimonial { margin: 0; padding: 56px 0; border-top: 1px solid var(--line); }
.testimonial:first-child { border-top: 0; padding-top: 0; }
.testimonial blockquote { margin: 0 0 28px; position: relative; padding-left: 40px; }
.testimonial blockquote::before {
  content: "\201C"; position: absolute; left: -4px; top: -18px;
  font-size: 4.5rem; line-height: 1; font-weight: 800; color: var(--red);
}
.testimonial blockquote p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--ink); margin: 0 0 .8em; }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: 18px; padding-left: 40px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.testimonial figcaption img, .no-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.no-photo { background: var(--tint); }
.testimonial figcaption strong { display: block; color: var(--navy); font-size: 1.05rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.contact-list .icon { margin: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a { font-weight: 700; font-size: 1.1rem; text-decoration: none; }

/* CTA band */
.cta { background: var(--red); color: #fff; padding: 64px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 .2em; }
.cta p { margin: 0; color: rgba(255,255,255,.88); }
.cta .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta .btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 56px 0 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer img { height: 46px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
  .member { grid-template-columns: 200px 1fr; gap: 32px; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero {
    padding: 56px 0;
    background:
      linear-gradient(180deg, rgba(0,44,65,.9) 0%, rgba(0,65,94,.75) 100%),
      url("../images/hero-bg-small.jpg") center / cover no-repeat,
      var(--navy);
  }
  .grid.three, .grid.two, .stages, .service-list { grid-template-columns: 1fr; }
  .stage { padding-right: 0; }
  .member, .virtue, .virtue:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .virtue img, .virtue:nth-child(even) img { order: 0; max-width: 180px; }
  .member .headshot { max-width: 240px; }
  .testimonial blockquote, .testimonial figcaption { padding-left: 0; }
  .testimonial blockquote { padding-top: 34px; }
  .testimonial blockquote::before { top: -10px; left: -2px; }
  .team-mini { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .virtue-strip { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .virtue-strip img { transition: none; }
  .card:hover { transform: none; }
}
