/* Meridian Partners: site styles.
   Plain CSS, no build step. Colours are variables so they can be changed in one place. */

:root {
  --navy: #1f3864;
  --navy-deep: #182848;
  --coral: #d9705f;          /* decorative accents */
  --coral-text: #b84c38;     /* accent that must meet AA contrast on white */
  --coral-btn: #b84c38;
  --coral-btn-hover: #9d3f2e;
  --gold: #e8c170;
  --ink: #2b2f38;
  --grey: #5a5f6b;
  --line: #d9dce3;
  --tint: #f2f3f5;
  --white: #fff;
  --radius: 4px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Didot", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }
a:hover { color: var(--coral-btn-hover); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; min-width: 0; }
.brand {
  display: inline-flex; align-items: center; min-width: 0;
  text-decoration: none; color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-logo { height: 34px; width: auto; max-width: 100%; display: block; flex-shrink: 1; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--coral-btn-hover); text-decoration: underline; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 14px; font: inherit; font-size: 0.95rem; color: var(--navy); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav li { width: 100%; }
  .site-nav a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav li:last-child { margin-top: 16px; }
  .site-nav .btn { width: 100%; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--coral-btn); color: var(--white);
  border: 0; border-radius: var(--radius); padding: 14px 28px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  min-height: 48px; line-height: 1.3;
}
.btn:hover { background: var(--coral-btn-hover); color: var(--white); }
.btn-small { padding: 10px 18px; min-height: 44px; font-size: 0.95rem; }

/* Hero */
.hero { background: var(--navy-deep); color: var(--white); padding: 120px 0 112px; }
.hero h1 {
  margin: 0; font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.05;
  letter-spacing: 0.02em; text-transform: uppercase; font-weight: 800;
  font-family: var(--font-display);
}
.rule { width: 120px; height: 3px; background: var(--coral); margin: 32px 0; }
.hero-kicker {
  margin: 0 0 16px; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.5;
}
.hero-lede {
  margin: 0 0 36px; font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: #dfe4f0;
}

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }

.eyebrow {
  margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.8rem; font-weight: 600; color: var(--grey);
}
.eyebrow-light { color: #c8cfde; }

h2 {
  margin: 0 0 16px; color: var(--navy); font-weight: 700;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem); line-height: 1.2;
}
h3 { color: var(--navy); line-height: 1.3; margin: 0 0 8px; font-size: 1.3rem; font-family: var(--font-display); font-weight: 700; }

.sub { margin: 0 0 40px; max-width: 58rem; font-style: italic; color: var(--grey); font-size: 1.15rem; }
.sub strong { font-weight: 700; }
.section .sub:last-child { margin-bottom: 0; }

.prose { max-width: 58rem; }
.prose p { margin: 0 0 20px; }
.pullstatement { color: var(--navy); font-weight: 700; font-style: italic; font-size: 1.2rem; }

/* Three phases strip */
.phases {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.phase {
  background: var(--tint); text-align: center; padding: 24px 16px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px;
}
.phase-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 700; color: var(--grey); }
.phase-text { font-size: 1.1rem; }
.phase-active { background: var(--navy); color: var(--white); }
.phase-active .phase-label { color: var(--gold); }
.phase-active .phase-text { font-style: italic; font-weight: 700; }
@media (max-width: 720px) { .phases { grid-template-columns: 1fr; } }

/* Five frictions */
/* Five cards: three across the top, two wider cards beneath, so the rows fill the width. */
.friction-grid { display: grid; gap: 24px; grid-template-columns: repeat(6, 1fr); }
.friction { grid-column: span 2; }
.friction:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 980px) {
  .friction-grid { grid-template-columns: repeat(2, 1fr); }
  .friction, .friction:nth-child(n+4) { grid-column: span 1; }
  .friction:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .friction-grid { grid-template-columns: 1fr; }
  .friction:last-child { grid-column: auto; }
}

.friction {
  background: var(--white); border-top: 6px solid var(--accent, var(--navy));
  padding: 24px 24px 28px; border-radius: 0 0 var(--radius) var(--radius);
}
.friction .question { margin: 0 0 20px; font-style: italic; color: var(--grey); }
.friction blockquote {
  margin: 0; padding-left: 16px; border-left: 3px solid var(--accent, var(--navy));
  color: var(--navy); font-style: italic;
}
/* "What We Offer" band: dark blue, left aligned like the light sections */
.band { background: var(--navy); color: var(--white); }
.band h2 { color: var(--white); }
.band .sub { color: #c8cfde; margin-bottom: 12px; }
.band .sub strong { color: var(--white); }

/* Graphic: five friction points combine into one bespoke programme */
.combine-label {
  margin: 48px 0 16px; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.8rem; font-weight: 600; color: #c8cfde;
}
.combine { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 24px; align-items: stretch; }
.combine-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.combine-blocks li {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 6px solid var(--accent); background: rgba(255, 255, 255, 0.08);
  padding: 12px 18px 14px; border-radius: 0 var(--radius) var(--radius) 0;
}
.combine-blocks strong { color: var(--white); }
.combine-blocks span { color: #c8cfde; font-style: italic; font-size: 0.95rem; }
.combine-arrow { display: flex; align-items: center; justify-content: center; }
.combine-arrow svg { width: 56px; height: 56px; fill: var(--coral); }
.combine-result {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; justify-content: center;
}
.combine-tag { margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 700; color: var(--coral-text); }
.combine-result h3 { color: var(--navy); font-size: 1.7rem; margin: 0 0 16px; }
.combine-result p:not(.combine-tag) { margin: 0 0 12px; }
.combine-result p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .combine { grid-template-columns: 1fr; gap: 16px; }
  .combine-arrow svg { transform: rotate(90deg); width: 44px; height: 44px; }
}

/* Why we do this */
.why-grid { display: grid; gap: 32px 48px; grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { border-left: 6px solid var(--navy); padding: 4px 0 4px 24px; }
.why-item p { margin: 0; font-size: 1.1rem; }
.why-num { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; color: var(--coral-text); }
.why-item strong { color: var(--navy); }

/* What good looks like */
.goals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 16px; margin: 32px 0 48px; }
.goal-min, .goal-main { border-radius: var(--radius); padding: 24px 28px; }
.goal-min { background: var(--white); }
.goal-main { background: var(--navy); color: var(--white); }
.goal-tag { margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 700; color: var(--coral-text); }
.goal-main .goal-tag { color: #c8cfde; }
.goal-text { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.goal-list { list-style: none; counter-reset: goal; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goal-list li { counter-increment: goal; display: flex; gap: 12px; align-items: baseline; font-weight: 700; font-size: 1.1rem; }
.goal-list li::before { content: counter(goal); color: var(--gold); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.benefit-grid { display: grid; gap: 32px 40px; grid-template-columns: repeat(3, 1fr); }
.benefit-grid h3 { margin-bottom: 8px; }
.benefit-grid p { font-size: 1rem; }
@media (max-width: 860px) {
  .goals { grid-template-columns: 1fr; }
  .goal-list, .benefit-grid { grid-template-columns: 1fr; }
}

/* Team */
.team-grid { display: grid; gap: 32px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.person img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; background: var(--line); }
.person p { margin: 0; font-size: 1rem; }
.person .person-label { margin-top: 20px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--grey); }
.person .person-transition { margin-top: 6px; font-style: italic; color: var(--navy); }
.person .person-tag { margin-top: 16px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 700; color: var(--coral-text); }

/* Contact */
.contact { background: var(--navy-deep); color: var(--white); }
.contact h2 { color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; gap: 40px; } }
.contact-copy p { max-width: 34rem; }
.contact-copy .italic { font-style: italic; color: #dfe4f0; }

.contact-form { background: var(--white); color: var(--ink); padding: 32px; border-radius: var(--radius); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.optional { font-weight: 400; color: var(--grey); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1px solid #a9aeba; border-radius: var(--radius); background: var(--white); min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--coral); outline-offset: 1px; border-color: var(--navy); }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.field-check label { margin: 0; font-weight: 400; font-size: 0.95rem; color: var(--ink); }
.field-check a { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-size: 0.95rem; color: var(--navy); min-height: 1.5em; }
.form-status.is-error { color: #a12b1a; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c8cfde; border-top: 1px solid rgba(255,255,255,0.15); padding: 32px 0; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-brand { display: inline-flex; align-items: center; color: var(--white); min-width: 0; }
.footer-brand-logo { height: 22px; width: auto; max-width: 100%; display: block; flex-shrink: 1; }
.site-footer a { color: #c8cfde; }
.site-footer a:hover { color: var(--white); }

/* Simple text pages (privacy, 404) */
.page-simple { padding: 72px 0 96px; }
.page-simple .prose h2 { font-size: 1.4rem; margin-top: 40px; }
.page-simple .prose ul { margin: 0 0 20px; padding-left: 22px; }
.page-simple .prose li { margin-bottom: 6px; }
