/* ─────────────────────────────────────────────────────────────
   Mitchell Enterprises Inc — mitchellent.com
   Brand colours sampled from the MEI logo artwork.
   ───────────────────────────────────────────────────────────── */
:root {
  --blue:   #54A6DB;   /* MEI logo blue — the one accent */
  --navy:   #2B3D6C;   /* MEI wordmark navy */
  --deep:   #0B1D3E;   /* dark grounds */
  --deep-2: #12284f;

  --paper:  #F5F8FC;
  --white:  #FFFFFF;
  --ink:    #14203A;
  --soft:   #45577A;
  --muted:  #6A7F9E;
  --rule:   #D9E3EF;

  --on-deep:      #FFFFFF;
  --on-deep-soft: rgba(255,255,255,.72);
  --on-deep-dim:  rgba(255,255,255,.46);
  --deep-rule:    rgba(255,255,255,.14);

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Source Sans 3', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --pad:  clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ── Type ────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue); flex: none; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--blue); }

h1, h2, h3 { font-family: var(--display); color: var(--deep); text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.022em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.018em; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.section--dark h1, .section--dark h2, .section--dark h3, .hero h1 { color: var(--on-deep); }

.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 62ch; font-weight: 400; }
.section--dark .lede { color: var(--on-deep-soft); }
.prose p { max-width: 66ch; color: var(--soft); }
.prose p + p { margin-top: 1.1em; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav a {
  font-family: var(--display); font-size: 14px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink); text-decoration: none;
  padding: 9px 14px; border-radius: 3px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--navy); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav .nav-cta a { background: var(--navy); color: #fff; margin-left: 8px; border-radius: 3px; box-shadow: none; }
.nav .nav-cta a:hover { background: var(--deep); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 3px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  font-size: 20px; line-height: 1; font-family: var(--body);
}

/* ── Hero ────────────────────────────────────────────────── */
/* Text and team photo sit side by side, so the headline never covers a face. */
.hero { background: var(--deep); color: var(--on-deep); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px);
}
.hero h1 { font-size: clamp(34px, 4.3vw, 54px); max-width: 16ch; }
.hero .lede { color: var(--on-deep-soft); margin-top: 18px; }
/* No team photo at the moment, so the hero runs as one column. Measure is
   capped so the lede does not stretch the full page width. */
.hero-grid--solo { grid-template-columns: 1fr; }
.hero-grid--solo .hero-copy { max-width: 62ch; }
.territory {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px;
  font-family: var(--display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--on-deep);
}
.territory span { display: inline-flex; align-items: center; gap: 18px; }
.territory span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .01em;
  padding: 14px 24px; border-radius: 3px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--deep); }
.btn-primary:hover { background: #fff; color: var(--deep); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--deep); color: #fff; }
.btn-line { border-color: var(--rule); color: var(--navy); background: #fff; }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--deep); color: var(--on-deep); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lede { margin-top: 14px; }

.page-head { background: var(--deep); color: var(--on-deep); padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 56px); }
.page-head h1 { color: var(--on-deep); }
.page-head .lede { color: var(--on-deep-soft); margin-top: 16px; }
.page-head .eyebrow { color: var(--blue); }

/* ── Section heads ───────────────────────────────────────── */
.section--tight { padding-top: clamp(32px, 4vw, 48px); }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.narrow { max-width: 760px; }
.prose h2 { margin-bottom: 18px; }

/* ── Two-column split (About) ────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
/* One column centred in the wrap, rather than a narrow column of text stranded
   beside an empty half. */
.split--solo { grid-template-columns: minmax(0, 68ch); justify-content: center; }
.split-media img { width: 100%; border-radius: 3px; }

/* ── Logos ───────────────────────────────────────────────── */
/* One fixed-height stage per line so marks of wildly different shapes read
   at a similar weight. */
.logo-box {
  height: 116px; padding: 18px 22px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  background: var(--white);
}
/* Width cap keeps long flat wordmarks (GREE, Reflectix) from out-shouting compact marks. */
.logo-box img { max-height: 72px; max-width: 74%; width: auto; object-fit: contain; }
/* Joint lines (Hart & Cooley / Amerivent…) stack, so each mark gets the full width. */
.logo-box--pair { flex-direction: column; gap: 10px; }
.logo-box--pair img { max-height: 36px; max-width: 88%; }
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 21px;
  letter-spacing: -.01em; color: var(--navy); text-align: center; line-height: 1.15;
}

/* Home: logo wall — logos only, like a trade-show backdrop */
.logo-wall {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.logo-tile { display: block; background: var(--white); text-decoration: none; transition: background .15s; }
.logo-tile .logo-box { background: transparent; }
.logo-tile:hover { background: var(--paper); }

/* Line card page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--rule);
  transition: background .15s, color .15s, border-color .15s;
}
.filter span { color: var(--muted); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--navy); }
.filter.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter.is-on span { color: rgba(255,255,255,.7); }

.line-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.line-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s;
}
.line-card:hover { border-color: #b9cbe2; box-shadow: 0 8px 24px rgba(11,29,62,.07); }
.line-card .logo-box { border-bottom: 1px solid var(--rule); height: 128px; }
.line-body { padding: 18px 22px 22px; }
.line-body h3 { font-size: 17px; margin-bottom: 6px; }
.line-body p { font-size: 15px; color: var(--soft); line-height: 1.55; }

/* ── Contact strip (home) ────────────────────────────────── */
.contact-strip { background: var(--deep); color: var(--on-deep); padding: clamp(44px, 6vw, 64px) 0; }
.contact-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.contact-strip h2 { color: var(--on-deep); font-size: clamp(24px, 2.8vw, 32px); }
.contact-strip p { color: var(--on-deep-soft); margin-top: 8px; }
.contact-strip .hero-actions { margin-top: 0; }

/* ── Team ────────────────────────────────────────────────── */
.team-section + .team-section { margin-top: clamp(56px, 7vw, 84px); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 26px; }
.team-grid--lead { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: 640px; }
.person { display: flex; flex-direction: column; }
.person-photo {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px;
  background: var(--paper); margin-bottom: 16px;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.person:hover .person-photo img { transform: scale(1.025); }
.person-name { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--deep); line-height: 1.25; }
.person-role {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-top: 4px;
}
.person-area { font-size: 14.5px; color: var(--soft); margin-top: 10px; line-height: 1.55; }
.person-contact { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.person-contact a { color: var(--ink); text-decoration: none; }
.person-contact a:hover { color: var(--navy); text-decoration: underline; }
.person-contact .k { display: inline-block; width: 18px; color: var(--muted); font-weight: 600; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-block + .contact-block { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--rule); }
.contact-block .k {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.contact-block .v { font-size: 19px; color: var(--ink); line-height: 1.5; }
.contact-block .v a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-block .v a:hover { color: var(--navy); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { max-width: 20ch; }

/* ── Memberships ─────────────────────────────────────────── */
.memberships { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.membership { border: 1px solid var(--rule); border-radius: 3px; padding: 20px 22px; background: var(--white); }
.membership strong { display: block; font-family: var(--display); font-size: 20px; color: var(--deep); }
.membership span { font-size: 14.5px; color: var(--soft); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--deep); color: var(--on-deep-soft); padding: 64px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 34px; width: auto; margin-bottom: 18px; }
.footer-grid h4 {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-deep); margin-bottom: 14px;
}
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-deep-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--deep-rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--on-deep-dim);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* The panel hangs off .site-header, not .wrap, so it spans the full width
     rather than stopping at the wrap's gutters. */
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule); padding: 4px var(--pad) 16px;
    box-shadow: 0 14px 28px rgba(11, 29, 62, .10);
  }
  .nav.open { display: flex; }
  /* An inline <a> ignores vertical padding, so the panel used to collapse to a
     sliver and the links spilled out over the page. Blocks fix the height and
     make each rule span the full row. */
  .nav a { display: block; padding: 15px 2px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav li:nth-last-child(2) a { border-bottom: none; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--blue); }
  .nav .nav-cta a { margin: 14px 0 0; text-align: center; justify-content: center; border-bottom: none; }

  .split, .contact-grid, .hero-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .memberships { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-box { height: 96px; padding: 14px; }
  .logo-box img { max-height: 56px; }
  /* Same specificity as the rule above (one class + one type), so this has to
     be restated here or paired marks lose their cap and render oversized. */
  .logo-box--pair img { max-height: 32px; max-width: 86%; }
  .line-card .logo-box { height: 120px; }
  .wordmark { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .person-photo img { transition: none; }
}

/* Placeholder until a headshot exists — initials, never a stand-in face. */
.person-initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy), var(--deep));
  color: rgba(255,255,255,.9); font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 5vw, 58px); letter-spacing: .02em;
}

/* Manufacturer links on line cards */
.line-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.line-links a {
  font-family: var(--display); font-size: 13.5px; font-weight: 600;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--rule);
  padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.line-links a:hover { color: var(--blue); border-color: var(--blue); }
.line-links span[aria-hidden] { font-size: 11px; opacity: .7; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Capability cards (Data Services) */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.pillar { background: var(--white); padding: 32px 30px; }
.pillar-k {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--soft); font-size: 15.5px; line-height: 1.6; }
.page-head h1 { max-width: 20ch; }

/* ── Employee-ownership band ─────────────────────────────── */
.esop-band { background: var(--navy); color: #fff; padding: 20px 0; }
.esop-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.esop-mark {
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .16em;
  padding: 7px 12px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 3px; flex: none;
}
.esop-inner p { font-size: 15.5px; color: rgba(255,255,255,.82); max-width: 84ch; }
.esop-inner strong { color: #fff; font-weight: 700; }

/* ── Product of the month ────────────────────────────────── */
.featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.featured-copy h2 { margin-bottom: 14px; }
.featured-copy .hero-actions { margin-top: 26px; }
.featured-side {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 26px 28px;
}
.featured-line {
  font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--deep); margin-bottom: 10px;
}
.featured-side p { font-size: 15px; color: var(--soft); margin-bottom: 14px; }
.featured-side a { font-family: var(--display); font-size: 14px; font-weight: 700; text-decoration: none; }

@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }

/* ── Territory map ───────────────────────────────────────── */
.territory-map { margin: 0; }
.territory-map svg { width: 100%; height: auto; display: block; }
.territory-map .st { fill: #16305c; stroke: var(--blue); stroke-width: 1.1; stroke-linejoin: round; }
.territory-map .dot { fill: var(--blue); opacity: .85; }
.territory-map .dot-lg { fill: #fff; opacity: 1; }
.territory-map .lbl {
  fill: rgba(255,255,255,.88); font-family: var(--body); font-size: 13px; font-weight: 600;
}
.territory-map .stname {
  fill: rgba(255,255,255,.34); font-family: var(--display); font-size: 12px;
  font-weight: 700; letter-spacing: .16em;
}
.territory-map figcaption {
  margin-top: 16px; font-size: 13.5px; color: var(--on-deep-dim); max-width: 70ch;
}

/* ── Duravent Group badge ────────────────────────────────── */
.line-card { position: relative; }
.dvg-badge {
  position: absolute; top: 12px; right: 12px; width: 62px; height: auto;
  opacity: .55; z-index: 1; pointer-events: none;
}
.line-card:hover .dvg-badge { opacity: .85; }

/* ── Memberships ─────────────────────────────────────────── */
.memberships { grid-template-columns: repeat(3, 1fr); }
.membership {
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.membership:hover { border-color: #b9cbe2; box-shadow: 0 8px 24px rgba(11,29,62,.07); }
.membership-logo { height: 58px; display: flex; align-items: center; }
.membership-logo img { max-height: 58px; max-width: 190px; width: auto; }
.membership-txt { display: block; }
.membership-txt strong { display: block; font-family: var(--display); font-size: 18px; color: var(--deep); }
.membership-txt span { font-size: 14px; color: var(--soft); line-height: 1.5; }
@media (max-width: 900px) { .memberships { grid-template-columns: 1fr; } }

/* Section labels double as h2s for document structure — keep the eyebrow look. */
h2.eyebrow { font-size: 12px; font-weight: 700; color: var(--navy); }

/* Footer social link */
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link svg { flex: none; }
.footer-grid { grid-template-columns: 1.4fr 1fr .9fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
