/* Peakview Partners: card-catalogue layout. Colour tokens first. */
:root {
  --primary: #611853;
  --primary-deep: #42103a;
  --ink: #2a1825;
  --muted: #5c4b57;
  --paper: #faf6f1;
  --card: #ffffff;
  --rule: #e2d6d0;
  --card-line: #e3e2ea;
  --tint: #f3e8ee;
  --on-dark: #fbf3ec;
  --on-dark-soft: #ead2e1;
  --footer: #2c0b26;
  --head: "Unna", Georgia, "Times New Roman", serif;
  --body: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* buttons + links */
.btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; padding: .7em 1.25em; border-radius: 3px; border: 2px solid var(--primary); line-height: 1.2; }
.btn:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn-lg { font-size: 1.08rem; padding: .85em 1.6em; }
.link { font-weight: 600; color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 1.6rem; }
.actions-center { justify-content: center; }

/* label holder: the framed label on a catalogue drawer */
.holder { position: relative; display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); border: 1.5px solid currentColor; padding: .3em 1.4em; margin-bottom: 1rem; border-radius: 2px; }
.holder::before, .holder::after { content: ""; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; }
.holder::before { left: 6px; }
.holder::after { right: 6px; }
.holder-light { color: var(--on-dark-soft); }

/* masthead */
.top { background: var(--paper); }
.top-in { display: flex; align-items: center; gap: 18px 32px; padding-top: 18px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-family: var(--head); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand span { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--primary); text-decoration: underline; }
.card-edge { height: 9px; border-top: 1px solid var(--primary); background: repeating-linear-gradient(90deg, var(--primary) 0 2px, transparent 2px 7px); }

/* index card + tab */
.tab { display: inline-block; position: relative; z-index: 1; background: var(--card); border: 1px solid var(--rule); border-bottom: 0; border-radius: 7px 7px 0 0; padding: .4em 1.1em .3em; margin-bottom: -1px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.card { position: relative; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--primary); border-radius: 0 3px 3px 3px; padding: 22px 26px 26px; }
.card-hole { padding-bottom: 46px; }
.card-hole::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); }

/* hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.promises { list-style: none; margin: 0; padding: 0; }
.promises li { padding: 12px 0; border-bottom: 1px solid var(--card-line); color: var(--muted); }
.promises li:last-child { border-bottom: 0; }
.promises strong { display: block; color: var(--ink); font-family: var(--head); font-size: 1.3rem; line-height: 1.2; margin-bottom: 2px; }

/* overview */
.overview { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(56px, 7vw, 88px) 0; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.two-col p { margin: 0; }
.two-col p + p { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 40px); }

/* services: the drawer */
.drawer { background: var(--primary); color: var(--on-dark); padding: clamp(56px, 7vw, 96px) 0; border-top: 10px solid var(--primary-deep); border-bottom: 10px solid var(--primary-deep); }
.drawer-head { max-width: 640px; margin-bottom: 40px; }
.drawer h2 { color: var(--on-dark); }
.drawer-head p { color: var(--on-dark-soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.svc { display: flex; flex-direction: column; }
.svc .tab { align-self: flex-start; border-color: transparent; }
.svc:nth-child(3n+2) .tab { align-self: center; }
.svc:nth-child(3n) .tab { align-self: flex-end; }
.svc .card { flex: 1; border: 0; border-radius: 3px; color: var(--muted); }
.svc:nth-child(3n+1) .card { border-top-left-radius: 0; }
.svc:nth-child(3n) .card { border-top-right-radius: 0; }
.svc .card h3 { color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--primary); margin-bottom: 14px; }
.svc .card p { margin: 0; }
.svc-key .tab, .svc-key .card { background: var(--on-dark-soft); }
.svc-key .tab { color: var(--primary-deep); }
.svc-key .card { color: var(--ink); }

/* reasons */
.reasons { background: var(--tint); padding: clamp(56px, 7vw, 96px) 0; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 64px); margin-top: 28px; }
.reason { border-top: 1px solid var(--primary); padding: 22px 0 26px; }
.reason p { color: var(--muted); margin-bottom: .5em; }
.reason .see { font-family: var(--head); font-style: italic; font-size: 1.1rem; color: var(--ink); margin: 0; }

/* process */
.process { padding: clamp(56px, 7vw, 96px) 0; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); max-width: 46em; }
.num { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 76px; border: 2px solid var(--primary); border-radius: 3px; background: var(--card); color: var(--primary); font-family: var(--head); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.num small { font-family: var(--body); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.num::before, .num::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--primary); }
.num::before { left: 7px; }
.num::after { right: 7px; }

/* CTA */
.cta { background: var(--primary-deep); padding: clamp(56px, 7vw, 88px) 0; }
.cta-card { max-width: 720px; margin: 0 auto; text-align: center; background: var(--card); border-top: 3px solid var(--primary); border-radius: 3px; padding: clamp(32px, 5vw, 52px) clamp(20px, 4vw, 48px) clamp(44px, 5vw, 64px); position: relative; }
.cta-card::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--primary-deep); }
.cta-card p { color: var(--muted); font-size: 1.12rem; }

/* footer */
.foot { background: var(--footer); color: var(--on-dark-soft); padding: 56px 0 28px; font-size: .97rem; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.brand-light, .brand-light span { color: var(--on-dark); }
.foot-brand p { margin-top: 14px; max-width: 26em; }
.foot-h { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); margin: 4px 0 12px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; overflow-wrap: anywhere; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(251, 243, 236, .22); font-size: .88rem; }
.foot-legal p { max-width: 62em; }

/* inner pages */
.page { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.contact-file { margin-top: 28px; max-width: 520px; }
.contact-line { margin: 0; font-family: var(--head); font-size: clamp(1.3rem, 4.4vw, 1.75rem); overflow-wrap: anywhere; }
.faq { margin-top: 56px; border-top: 2px solid var(--ink); }
.faq h2 { font-size: 1.6rem; margin: 28px 0 8px; }
.faq p { color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.dated { font-family: var(--head); font-style: italic; color: var(--muted); font-size: 1.1rem; }

/* responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc:nth-child(n) .tab { align-self: flex-start; }
  .svc:nth-child(even) .tab { align-self: flex-end; }
  .svc:nth-child(n) .card { border-radius: 0 3px 3px 3px; }
  .svc:nth-child(even) .card { border-radius: 3px 0 3px 3px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .overview-grid { grid-template-columns: 1fr; }
  .nav { margin-left: 0; order: 3; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .top-in { gap: 12px 16px; }
  .brand { font-size: 1.35rem; }
  .brand .mark { width: 28px; height: 28px; }
  .top-in > .btn { margin-left: auto; padding: .6em 1em; }
  .nav { gap: 4px 16px; }
  .nav a { font-size: .92rem; }
  .two-col, .reason-grid, .cards { grid-template-columns: 1fr; }
  .two-col p + p { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
  .steps li { grid-template-columns: 1fr; gap: 14px; }
  .num { width: 104px; height: 66px; font-size: 2.2rem; }
  .card { padding: 18px 18px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
