/* Michigan Case Management — site styles
   Palette pulled from the MCM logo: deep navy wordmark + sunburst blue. */

:root {
  --navy: #0f3470;
  --navy-deep: #0a2553;
  --blue: #2a5ea8;
  --blue-soft: #5b86c4;
  --sky: #e9f0fa;
  --sky-2: #f5f8fd;
  --ink: #1d2433;
  --muted: #5a6477;
  --line: #d6e0ee;
  --white: #ffffff;
  --accent: #c8a24a; /* warm gold for small highlights */

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 52, 112, .06), 0 8px 24px rgba(15, 52, 112, .08);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
  display: inline-block;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }

/* ---------- Top bar + header ---------- */

.topbar {
  background: var(--navy-deep);
  color: #d9e4f5;
  font-size: .9rem;
}
.topbar .container {
  display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 92px;
}
.brand img { width: 270px; mix-blend-mode: multiply; }
.brands { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-divider { width: 1px; height: 56px; background: var(--line); flex: none; }
.partner-logo { display: block; flex: none; }
.partner-logo img { height: 52px; width: auto; mix-blend-mode: multiply; transition: opacity .15s; }
.partner-logo:hover img { opacity: .8; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { white-space: nowrap; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 6px;
}
.nav a:hover { color: var(--navy); background: var(--sky); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.nav .btn:hover { background: var(--navy-deep); color: #fff; }
.nav .btn[aria-current="page"] { box-shadow: none; border-radius: 8px; background: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 8px;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background .15s, transform .15s;
  font-family: var(--sans);
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy) !important; }
.btn-outline:hover { background: var(--sky); }
.btn-light { background: #fff; color: var(--navy) !important; border-color: #fff; }
.btn-light:hover { background: var(--sky); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero with sunburst ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 70%, #6f98d2 100%);
  color: #fff;
  padding: 110px 0 120px;
}
.hero::before {
  /* sunburst rays echoing the logo */
  content: "";
  position: absolute;
  left: 50%; bottom: -60%;
  width: 1600px; height: 1600px;
  transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.10) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 25%, transparent 62%);
          mask-image: radial-gradient(circle, #000 0%, #000 25%, transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.18));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; max-width: 22ch; text-wrap: balance; margin-left: auto; margin-right: auto; }
.hero .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: #dce8f8; margin-bottom: 1.2rem;
}
.hero p.lead { color: #e7eefa; margin: 0 auto 2rem; }
.hero .actions { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.hero .actions .btn { justify-content: center; }

.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.page-hero::before {
  content: "";
  position: absolute; right: -300px; top: -500px;
  width: 1100px; height: 1100px;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.08) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 60%);
          mask-image: radial-gradient(circle, #000 20%, transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #dce8f8; font-size: 1.2rem; max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: #b9cff0; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--sky-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.rule {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--serif); font-style: italic; color: var(--navy);
  font-size: 1.15rem; justify-content: center; margin-bottom: 12px;
}
.rule::before, .rule::after { content: ""; height: 1px; width: 60px; background: var(--blue-soft); }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 100%, var(--blue-soft), var(--navy));
  color: #fff; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

.audience {
  padding: 26px 24px;
  border-left: 3px solid var(--blue);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.audience h3 { font-size: 1.25rem; }
.audience p { color: var(--muted); margin: 0; font-size: 1rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist-lg { margin: 0; }
.checklist.checklist-lg li { padding: 16px 0 16px 38px; margin: 0; border-bottom: 1px solid var(--line); }
.checklist.checklist-lg li:last-child { border-bottom: 0; }
.checklist.checklist-lg li::before { top: 19px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.stat-panel {
  background: linear-gradient(160deg, var(--navy), var(--blue));
  color: #fff; border-radius: 14px; padding: 40px;
  box-shadow: var(--shadow);
}
.stat-panel h3 { color: #fff; }
.stat-panel p { color: #dce8f8; }
.stat-panel .phone { font-family: var(--serif); font-size: 2rem; color: #fff; text-decoration: none; display: block; margin: 8px 0 20px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 32px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky); color: var(--navy); margin-bottom: 14px;
  border: 1px solid var(--line);
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #fff; padding: 72px 0; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 1400px; height: 1400px; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 55%);
          mask-image: radial-gradient(circle, #000 15%, transparent 55%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .rule { color: #dce8f8; }
.cta-band .rule::before, .cta-band .rule::after { background: rgba(255,255,255,.45); }
.cta-band p { color: #dce8f8; max-width: 56ch; margin: 0 auto 28px; font-size: 1.15rem; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .actions.actions-equal { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.actions-equal .btn { justify-content: center; }

/* Testimonials */
.quote {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow);
  margin: 0;
  display: flex; flex-direction: column;
}
.quote blockquote {
  margin: 0 0 18px; flex: 1;
  font-family: var(--serif); font-style: italic;
  font-size: 1.22rem; line-height: 1.5; color: var(--ink);
}
.quote figcaption {
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
.quote figcaption::before { content: "— "; }
.section-foot { text-align: center; margin-top: 36px; }

.quote-inline {
  margin: 40px 0 0; padding: 26px 32px;
  border-left: 3px solid var(--blue);
  background: var(--sky-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-inline blockquote {
  margin: 0 0 10px;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--navy);
}
.quote-inline figcaption { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.quote-inline figcaption::before { content: "— "; }

/* Coverage map */
.coverage { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; scroll-margin-top: 110px; }
.map-card {
  margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow);
}
.map-card img { width: 100%; border-radius: 8px; }
.expanding {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px 8px 14px; margin: 0 0 24px; font-size: .98rem; color: var(--ink);
}
.expanding::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--blue); box-shadow: 0 0 0 4px rgba(42, 94, 168, .18);
}
.expanding strong { color: var(--navy); }
.map-card figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 10px; }

.quote blockquote::before,
.quote blockquote::after,
.quote-inline blockquote::before,
.quote-inline blockquote::after {
  font-family: var(--serif); font-style: normal; font-weight: 600;
  font-size: 2.1em; line-height: 0; vertical-align: -0.38em;
  color: var(--blue-soft);
}
.quote blockquote::before, .quote-inline blockquote::before { content: "\201C"; margin-right: 4px; }
.quote blockquote::after, .quote-inline blockquote::after { content: "\201D"; margin-left: 3px; }

/* Compact testimonial wall (About page) */
#testimonials .section-head { margin-bottom: 32px; max-width: none; }
.quote-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.quote-wall .quote {
  padding: 18px 24px 18px 24px; border-top: 0; border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: none; background: var(--sky-2);
}
.quote-wall .quote blockquote { font-size: 1.08rem; line-height: 1.45; margin-bottom: 8px; }
.quote-wall .quote figcaption { font-size: .74rem; }

.promise-panel { text-align: center; padding: 48px 36px; }
.promise-panel .eyebrow { color: #b9cff0; }
.promise { font-family: var(--serif); font-size: 1.75rem; line-height: 1.35; color: #fff !important; margin: 6px 0 0; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 980px; margin: 0 auto; }
.value {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px;
}
.value h3 { font-size: 1.3rem; margin-bottom: 6px; }
.value p { margin: 0; color: var(--muted); font-size: 1rem; }

.jobs { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
.jobs-empty {
  background: #fff; border: 1px dashed #b9cbe4; border-radius: 14px;
  padding: 36px; text-align: center;
}
.jobs-empty h3 { margin-bottom: 6px; }
.jobs-empty p { margin: 0 auto; color: var(--muted); max-width: 56ch; }
.job { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.job summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px;
}
.job summary::-webkit-details-marker { display: none; }
.job-head h3 { margin: 0 0 6px; font-size: 1.4rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta span {
  font-size: .82rem; font-weight: 600; color: var(--navy);
  background: var(--sky); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}
.job-toggle {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--navy); transition: transform .2s;
}
.job-toggle::before { content: "+"; font-size: 1.3rem; line-height: 1; }
.job[open] .job-toggle { transform: rotate(45deg); }
.job-body { padding: 0 26px 26px; border-top: 1px solid var(--line); }
.job-body > p:first-child { margin-top: 20px; }
.job-body h4 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 22px 0 8px; }
.job-body ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--ink); }
.job-body li { margin-bottom: 6px; }
.job-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.job-pdfs { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.job-pdfs a { font-weight: 600; }
.job-pdfs span { margin: 0 6px; }

.apply-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--sky-2); border: 1px solid var(--line); border-radius: 14px; padding: 36px 40px;
}
.apply-box h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.apply-box p { margin: 0; color: var(--muted); }
.apply-box .btn { flex: none; }

/* ---------- Services page ---------- */

.service {
  display: grid; grid-template-columns: 72px 1fr; gap: 28px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.service:last-child { border-bottom: 0; }
.service .icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 100%, var(--blue-soft), var(--navy));
  color: #fff;
}
.service .icon svg { width: 34px; height: 34px; }
.service ul { margin: 0; padding-left: 1.2em; color: var(--muted); columns: 2; column-gap: 40px; }
.service li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- Referral page ---------- */

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.option {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.option p { color: var(--muted); flex: 1; }
.option .btn { align-self: flex-start; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 44px; box-shadow: var(--shadow);
}
fieldset { border: 0; padding: 0; margin: 0 0 36px; }
legend {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy);
  padding: 0; margin-bottom: 18px; width: 100%;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
label .req { color: #b3261e; margin-left: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #c3cfe0; border-radius: 8px;
  background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 94, 168, .18);
}
textarea { min-height: 130px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--navy); }
.hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.form-note {
  background: var(--sky); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 18px; font-size: .95rem; color: var(--ink); margin-bottom: 28px;
}
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-weight: 600; }
.form-status.ok { color: #1c7c3c; }
.form-status.err { color: #b3261e; }

/* Referral page: steps + action panel */
.refer-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.refer-steps { list-style: none; counter-reset: rstep; margin: 0; padding: 0; }
.refer-steps li {
  counter-increment: rstep; position: relative;
  padding: 18px 0 18px 64px; border-bottom: 1px solid var(--line);
}
.refer-steps li:last-child { border-bottom: 0; }
.refer-steps li::before {
  content: counter(rstep);
  position: absolute; left: 0; top: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  background: var(--sky); color: var(--navy); border: 1px solid var(--line);
}
.refer-steps h3 { font-size: 1.3rem; margin: 0 0 4px; }
.refer-steps p { margin: 0; color: var(--muted); font-size: 1rem; }
.refer-action {
  background: var(--sky-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px;
}
.refer-action .btn { width: 100%; justify-content: center; }
.refer-action dl { margin: 22px 0 0; }
.refer-action dl div {
  display: grid; grid-template-columns: 96px 1fr; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.refer-action dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.refer-action dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.refer-action dd a { color: var(--navy); text-decoration: none; }
.refer-action dd a:hover { text-decoration: underline; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-card {
  max-width: 680px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 40px 44px; box-shadow: var(--shadow);
}
.contact-card h2 { margin-bottom: 10px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico {
  width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--navy);
  display: grid; place-items: center;
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.2rem; }
.info-list span, .info-list a { color: var(--muted); }
.map {
  margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: var(--sky);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: #c3d2ea; padding: 64px 0 28px; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .name { font-family: var(--serif); font-size: 1.45rem; color: #fff; letter-spacing: .06em; font-variant: small-caps; }
.footer-brand .tag { font-family: var(--serif); font-style: italic; color: #b9cff0; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #9fb3d4;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .brand img { width: 225px; }
  .partner-logo img { height: 42px; }
  .brands { gap: 12px; }
  .brand-divider { height: 42px; }
  .nav a { padding: 8px 9px; font-size: .95rem; }
  .nav .btn { margin-left: 6px; padding: 12px 16px; }
}

@media (max-width: 1000px) and (min-width: 861px) {
  .brand img { width: 190px; }
  .partner-logo img { height: 36px; }
  .brands { gap: 10px; }
  .brand-divider { height: 36px; }
  .nav a { padding: 8px 7px; font-size: .9rem; }
  .nav .btn { padding: 10px 12px; }
}

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid, .coverage, .refer-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-card { max-width: 620px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px;
    box-shadow: 0 12px 24px rgba(15,52,112,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .site-header .container { position: relative; min-height: 76px; }
  .brand img { width: 210px; }
}

@media (max-width: 640px) {
  .contact-card { padding: 28px 20px; }
  .apply-box { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .job summary { padding: 18px 20px; }
  .job-body { padding: 0 20px 22px; }
  .brand img { width: 150px; }
  .partner-logo img { height: 32px; }
  .brands { gap: 8px; }
  .brand-divider { height: 34px; }
  .cta-band .actions.actions-equal { grid-auto-flow: row; }
  .hero .actions { grid-auto-flow: row; }
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 84px; }
  .grid-2, .grid-3, .grid-4, .steps, .option-grid, .form-grid, .checks, .footer-grid, .quote-wall, .values { grid-template-columns: 1fr; }
  .map-card { padding: 10px; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service ul { columns: 1; }
  .form-card { padding: 28px 20px; }
  .topbar .container { justify-content: center; gap: 16px; }
  .topbar .hide-sm { display: none; }
}
