/* MMD Solutions — responsive theme matching the homepage concept.
   Use with the accompanying index.html or map these classes to your templates. */
:root {
  --background: #f8fafc;
  --surface: #ffffff;
  --navy: #0f172a;
  --text: #475569;
  --red: #dc2626;
  --brand-accent: #ff2d2c;
  --red-hover: #b91c1c;
  --green: #15803d;
  --green-soft: #dcfce7;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 12px 36px rgb(15 23 42 / 7%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 4.1vw, 3.85rem); letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 72px; padding-block: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; white-space: nowrap; line-height: 1; }
.brand img { flex-shrink: 0; width: 96px; height: auto; margin-right: -5px; display: block; }
.brand span { font-family: Arial, Helvetica, sans-serif; font-size: 1.4rem; font-weight: 300; letter-spacing: .015em; line-height: 1; }
.nav { display: flex; align-items: center; justify-content: flex-end; margin-inline-start: auto; }
.nav a { color: var(--navy); text-decoration: none; font-size: .95rem; }
.nav a:hover { text-decoration: underline; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px; border: 1px solid transparent;
  border-radius: 8px; text-decoration: none; font-weight: 650; line-height: 1.3;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: var(--red-hover); }
.button-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.button-outline:hover { background: #e2e8f0; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-wide { width: 100%; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.hero { padding-block: 20px 24px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(24px, 3vw, 40px); }
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 18px; font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero-description { max-width: 660px; margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.hero-actions .button { min-height: 52px; padding-inline: 24px; font-size: 1rem; }
.text-link { color: var(--navy); font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.helper { margin-top: 14px; font-size: .88rem; }
.demo-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 24px; }
.demo-card h2 { font-size: 1.75rem; }
.demo-intro { margin-top: 8px; font-size: .95rem; }
.demo-form { display: grid; gap: 10px; margin-top: 16px; }
.demo-form .form-input { min-height: 46px; padding: 10px 12px; }
.demo-form .helper { margin-top: 0; font-size: .8rem; }
.field-label { color: var(--navy); font-weight: 600; font-size: .95rem; }
.form-input { width: 100%; min-height: 52px; padding: 12px 16px; background: white; border: 1px solid #94a3b8; border-radius: 7px; color: var(--navy); }
.form-input::placeholder { color: #64748b; }
.form-input[aria-invalid="true"] { border-color: var(--red); }
.form-error { color: var(--red-hover); font-size: .9rem; }
.divider { height: 1px; background: var(--border); margin-block: 14px; border: 0; }
.enquiry-card { background: var(--background); border-radius: 10px; padding: 16px; overflow-wrap: anywhere; }
.enquiry-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.card-label { font-size: .7rem; letter-spacing: .06em; font-weight: 750; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; background: var(--green-soft); color: #166534; font-size: .75rem; font-weight: 700; border-radius: 999px; }
.status-pending { background: #fef3c7; color: #92400e; }
.transcript { margin-top: 8px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; }
.enquiry-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.meta { font-size: .8rem; }
.task-tag { padding: 7px 12px; border: 1px solid var(--navy); border-radius: 6px; color: var(--navy); font-size: .8rem; font-weight: 600; }
.how-it-works { padding-block: 20px; background: white; scroll-margin-top: 24px; }
.how-it-works h2 { font-size: 2rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.step { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-content: start; }
.step + .step { border-left: 1px solid var(--border); padding-left: 24px; }
.step-icon { grid-column: 1; grid-row: 1 / span 3; align-self: center; display: inline-grid; place-items: center; width: 84px; height: 84px; color: var(--navy); }
.step-icon svg { display: block; width: 80px; height: 80px; }
.icon-accent { stroke: var(--brand-accent); }
.step-number { grid-column: 2; color: #64748b; font-size: .9rem; font-weight: 650; line-height: 1.2; }
.step h3, .step p { grid-column: 2; }
.step p { font-size: .9rem; line-height: 1.4; }
@media (min-width: 961px) {
  #main { min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); display: grid; grid-template-rows: minmax(auto, 1fr) auto auto; }
  .hero { display: grid; align-items: center; }
}
@media (min-width: 961px) and (max-height: 800px) {
  .hero { padding-block: 8px; }
  .hero h1 { font-size: clamp(2.5rem, 3.7vw, 3.35rem); }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-description { margin-top: 16px; }
  .hero-actions { margin-top: 18px; }
  .demo-card { padding: 18px; }
  .demo-card h2 { font-size: 1.5rem; }
  .demo-intro { margin-top: 6px; font-size: .88rem; }
  .demo-form { margin-top: 8px; gap: 8px; }
  .demo-form .field-label { font-size: .85rem; line-height: 1.4; }
  .demo-form .form-input { min-height: 44px; padding: 7px 10px; }
  .demo-form .button { min-height: 44px; padding-block: 8px; }
  .demo-form .helper { font-size: .75rem; line-height: 1.35; }
  .demo-card .divider { margin-block: 12px; }
  .enquiry-card { padding: 14px; }
  .enquiry-top { margin-bottom: 6px; }
  .enquiry-card .status { padding: 3px 8px; font-size: .7rem; line-height: 1.4; }
  .enquiry-card h3 { font-size: 1.125rem; }
  .transcript { margin-top: 6px; font-size: .875rem; line-height: 1.4; }
  .enquiry-bottom { margin-top: 8px; }
  .enquiry-card .meta { font-size: .75rem; }
  .enquiry-card .task-tag { padding: 4px 8px; font-size: .75rem; }
  .how-it-works { padding-block: 16px; }
  .how-it-works h2 { font-size: 1.6rem; }
  .steps { margin-top: 12px; }
  .step h3 { font-size: 1.05rem; }
  .step p { font-size: .85rem; }
  .step { grid-template-columns: 76px minmax(0, 1fr); }
  .step-icon { width: 76px; height: 76px; }
  .step-icon svg { width: 72px; height: 72px; }
}
.credibility { padding-block: 10px; background: var(--navy); color: #cbd5e1; text-align: center; }
.credibility h2 { color: white; font-size: 1rem; letter-spacing: 0; line-height: 1.4; }
.credibility p { margin-top: 8px; font-size: .9rem; }
.site-footer { padding-block: 40px 24px; font-size: .85rem; text-align: left; }
.footer-details { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 40px; align-items: start; }
.footer-company { margin-bottom: 12px; color: #fff; font-size: 1.1rem; font-weight: 700; }
.footer-details address { font-style: normal; line-height: 1.8; }
.footer-kicker { margin-bottom: 12px; color: #fff; font-weight: 650; }
.footer-contact { text-align: right; overflow-wrap: anywhere; }
.footer-contact > p + p { margin-top: 8px; }
.footer-description { max-width: 320px; margin-inline-start: auto; color: #94a3b8; }
.footer-cta { align-self: center; justify-self: center; min-width: 200px; min-height: 60px; padding: 16px 32px; color: #fff; font-size: 1.15rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 15%); color: #94a3b8; font-size: .8rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 960px) {
  .footer-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .footer-cta { grid-column: 1 / -1; grid-row: 2; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 720px; }
  .demo-card { width: 100%; max-width: 640px; }
  .hero { padding-block: 28px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; flex-wrap: nowrap; gap: 10px; padding-block: 8px; }
  .brand span { font-size: 1.1rem; }
  .nav { flex-shrink: 0; }
  .nav a { font-size: .85rem; }
  .nav .button { min-height: 44px; padding: 10px 12px; }
  h1 { font-size: clamp(2.5rem, 9vw, 3.3rem); }
  .eyebrow { font-size: .7rem; margin-bottom: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-actions .button { width: 100%; }
  .demo-card { padding: 20px; }
  .demo-card h2 { font-size: 1.6rem; }
  .enquiry-card { padding: 16px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; }
  .step-icon { width: 72px; height: 72px; }
  .step-icon svg { width: 64px; height: 64px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
/* Navy framing for the one-page site. */
.site-header { background: var(--navy); border-bottom: 0; }
.site-header .brand, .site-header .nav a { color: #fff; }
.site-header .button-outline { color: #fff; border-color: #fff; }
.site-header .button-outline:hover { background: rgb(255 255 255 / 12%); }
.credibility, .site-footer { background: var(--navy); color: #cbd5e1; }
.site-footer { border-top: 1px solid rgb(255 255 255 / 15%); }
.modal-open { overflow: hidden; }
.consent-open { overflow: hidden; }
.consent-dialog { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgb(0 0 0 / 30%); overflow-y: auto; }
.consent-dialog::backdrop { background: rgb(15 23 42 / 72%); }
.consent-dialog h2 { color: var(--navy); font-size: 1.6rem; }
.consent-dialog p { margin-top: 14px; font-size: .95rem; line-height: 1.6; }
.consent-details { margin-top: 16px; font-size: .9rem; }
.consent-details summary { cursor: pointer; min-height: 36px; }
.consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.consent-actions .button { padding-inline: 12px; }
.cookie-settings { padding: 0; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
@media (max-width: 420px) {
  .consent-dialog { padding: 22px 18px; }
  .consent-actions { grid-template-columns: 1fr; }
}
.contact-dialog { width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface); box-shadow: 0 24px 80px rgb(0 0 0 / 30%); overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.contact-dialog::backdrop { background: rgb(15 23 42 / 72%); }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.dialog-header h2 { font-size: 1.65rem; }
.dialog-header h2:focus { outline: none; }
.dialog-close { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--background); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--border); }
.dialog-content { padding: 20px 24px; }
.contact-intro { margin-bottom: 18px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; min-width: 0; align-items: start; }
.contact-form > :not(.field) { grid-column: 1 / -1; }
.contact-form .helper { margin: 0; }
.contact-privacy { font-size: .85rem; }
.contact-privacy summary { min-height: 32px; cursor: pointer; }
.contact-privacy p { margin-block: 8px 12px; }
.contact-email { margin-top: 12px; font-size: .85rem; }
.field { display: grid; gap: 8px; min-width: 0; }
.form-input { min-width: 0; font-size: 1rem; }
textarea.form-input { resize: vertical; }
.optional { color: var(--text); font-weight: 400; }
.form-status:empty { display: none; }
.form-status { overflow-wrap: anywhere; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; top: 8px; left: 16px; transform: translateY(-150%); background: white; color: var(--navy); padding: 12px; z-index: 10; }
.skip-link:focus { transform: none; }
@media (max-width: 600px) {
  .brand img { width: 76px; }
  .nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer { padding-top: 28px; }
  .footer-details { grid-template-columns: 1fr; gap: 24px; }
  .contact-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .dialog-header { padding: 12px 16px; }
  .dialog-content { padding: 16px; }
  .contact-intro { font-size: .9rem; margin-bottom: 14px; }
  .contact-form { gap: 12px; }
  .contact-form .field:nth-child(n + 3) { grid-column: 1 / -1; }
  .contact-form .field { gap: 4px; }
  .contact-form .field-label { font-size: .85rem; }
  .contact-form .form-input { min-height: 44px; padding: 8px 10px; }
  .contact-form textarea.form-input { height: 88px; }
  .contact-form .helper { font-size: .8rem; }
  .contact-email { overflow-wrap: anywhere; }
}
