/* Chairside North Partners
   Colours are sampled from the logo. Change them here and the whole site follows. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --navy: #0a2239;
  --navy-soft: #16344f;
  --blue: #1c6cb0;
  --blue-bright: #6eb0e8;
  --paper: #f6f9fc;
  --white: #ffffff;
  --mist: #dbe6f0;
  --slate: #4b6075;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --row: 26px; /* height of one 30-minute row on the day sheet */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.9vw, 4rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.08; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 14px; }

/* Buttons and links */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 4px;
  padding: 15px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--blue); }
.btn-small { padding: 10px 18px; font-size: .94rem; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-bright); }
.text-link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--blue); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 249, 252, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand img { width: 196px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 20px; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--navy-soft); max-width: 34em; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero-note { margin-top: 28px; font-size: .95rem; color: var(--slate); }

/* Day sheet: the one illustrated moment on the page */
.daysheet {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 10px;
  box-shadow: 0 24px 60px -28px rgba(10, 34, 57, .35);
  padding: 22px 22px 16px;
}
.ds-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 16px; border-bottom: 1px solid var(--mist); }
.ds-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; font-size: 1.35rem; line-height: 1.1; }
.ds-sub, .ds-meter-label { font-size: .82rem; color: var(--slate); }
.ds-meter { text-align: right; }
.ds-meter-value { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue); }
.ds-grid { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 10px; margin-top: 14px; }
.ds-times { height: calc(26px + var(--row) * 16); padding-top: 26px; display: grid; grid-auto-rows: calc(var(--row) * 2); font-size: .72rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.ds-times span { transform: translateY(-.55em); }
.ds-col {
  position: relative;
  height: calc(26px + var(--row) * 16);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row) * 2 - 1px), var(--mist) calc(var(--row) * 2 - 1px), var(--mist) calc(var(--row) * 2)) 0 26px no-repeat;
}
.ds-col-name { height: 26px; font-size: .8rem; font-weight: 600; }
.slot {
  position: absolute; left: 0; right: 0;
  top: calc(26px + var(--start) * var(--row) + 2px);
  height: calc(var(--len) * var(--row) - 4px);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: .78rem; font-weight: 500; line-height: 1.3;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.slot.booked { background: #e9f0f7; color: var(--navy-soft); border-left: 3px solid var(--navy); }
.slot.lunch { color: var(--slate); background: repeating-linear-gradient(135deg, transparent 0 6px, #eef3f8 6px 7px); }
.slot.open, .slot.stay-open { border: 1.5px dashed #9db4ca; color: var(--slate); background: var(--white); }
.slot.filled {
  border: 0; border-left: 3px solid var(--navy);
  background: var(--blue); color: var(--white);
  animation: fill .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.daysheet figcaption { margin-top: 24px; font-size: .76rem; color: var(--slate); }

/* Leaks */
.leaks { background: var(--white); border-block: 1px solid var(--mist); padding: clamp(64px, 8vw, 112px) 0; }
.leaks-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.leaks-grid > div p { margin-top: 20px; color: var(--navy-soft); max-width: 30em; }
.leak-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.leak-list li { border-top: 2px solid var(--navy); padding-top: 16px; }
.leak-list p { margin-top: 8px; color: var(--slate); font-size: .98rem; }

/* Section heads */
.section-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--navy-soft); max-width: 34em; }

/* Services */
.services { padding: clamp(64px, 8vw, 112px) 0; }
.service-list { border-top: 1px solid var(--navy); }
.service { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); padding: 30px 0; border-bottom: 1px solid var(--mist); }
.service h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.15; }
.service p { max-width: 36em; }
.service-get { margin-top: 10px; color: var(--blue); font-weight: 500; }
.service-lead { background: var(--white); margin-inline: -24px; padding-inline: 24px; border-bottom-color: var(--navy); }

/* Process */
.process { background: var(--white); border-block: 1px solid var(--mist); padding: clamp(64px, 8vw, 112px) 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 28px 28px 0 0; border-top: 2px solid var(--navy); }
.steps li::before {
  content: counter(step);
  position: absolute; top: -17px; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  font-size: .9rem; font-weight: 600;
}
.steps p { margin-top: 8px; color: var(--slate); font-size: .98rem; }

/* Exclusivity */
.exclusive { background: var(--navy); color: var(--white); padding: clamp(72px, 9vw, 128px) 0; }
.exclusive-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.exclusive h2 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1; }
.exclusive p { color: #c9d8e6; max-width: 34em; font-size: 1.1rem; }
.exclusive p + p { margin-top: 16px; }
.exclusive .btn { margin-top: 32px; }
.exclusive :focus-visible { outline-color: var(--blue-bright); }

/* Audit form */
.audit { padding: clamp(64px, 8vw, 112px) 0; }
.audit-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.audit-copy p { margin-top: 20px; color: var(--navy-soft); max-width: 28em; }
.assurances { margin-top: 32px; display: grid; gap: 12px; }
.assurances li { padding-left: 18px; border-left: 3px solid var(--blue); font-weight: 500; }

.lead-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: var(--white); border: 1px solid var(--mist); border-radius: 10px;
  padding: clamp(22px, 3vw, 36px);
}
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
label { font-size: .92rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--slate); }
input, select, textarea {
  font: inherit; color: var(--navy);
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid #b9c9d9;
  border-radius: 4px;
}
input::placeholder { color: #8195a8; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(28, 108, 176, .35); border-color: var(--blue); }
.invalid { border-color: #b3261e; background: #fdf3f2; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-status { font-size: .97rem; font-weight: 500; }
.form-status.ok { color: #14663a; }
.form-status.err { color: #b3261e; }
.btn[disabled] { opacity: .6; cursor: default; }

address { font-style: normal; }
.office { margin-top: 32px; font-size: .92rem; color: var(--slate); }
.office strong { font-size: 1.05rem; color: var(--navy); font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d8e6; padding: 44px 0; font-size: .95rem; }
.footer-row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-row img { width: 210px; }
.footer-row a { color: var(--white); text-decoration: none; }
.copyright { margin-left: auto; }

/* Smaller screens */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid, .leaks-grid, .section-head, .service, .exclusive-grid, .audit-grid { grid-template-columns: 1fr; }
  .section-head { gap: 16px; margin-bottom: 36px; }
  .service { gap: 12px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .header-row { height: 64px; gap: 12px; }
  .brand img { width: 150px; }
  .leak-list, .lead-form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .service-lead { margin-inline: -18px; padding-inline: 18px; }
  .daysheet { padding: 16px 14px 12px; }
  .ds-grid { grid-template-columns: 34px 1fr 1fr; gap: 6px; }
  .slot { font-size: .7rem; padding: 3px 6px; }
  .copyright { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slot.filled { animation: none; }
  .btn { transition: none; }
}
