:root {
  --mt-dark: #10231f;
  --mt-green: #1f6b54;
  --mt-green-2: #2f8067;
  --mt-sand: #d7bd87;
  --mt-cream: #f6f1e7;
  --mt-text: #26332f;
  --mt-muted: #66746f;
  --mt-border: rgba(16, 35, 31, 0.14);
  --mt-shadow: 0 18px 60px rgba(16,35,31,0.14);
}
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--mt-cream);
  color: var(--mt-text);
  line-height: 1.6;
  font-size: 17px;
}
a { color: inherit; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  color: var(--mt-dark);
  padding: 10px 14px;
  z-index: 99999;
}
.skip-link:focus { left: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: rgba(246,241,231,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mt-border);
}
.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mt-dark);
  text-decoration: none;
  min-width: 230px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--mt-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: -0.06em;
}
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-name {
  font-size: clamp(1.18rem, 2.6vw, 1.55rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.brand-tagline {
  color: var(--mt-muted);
  font-size: 0.84rem;
  white-space: nowrap;
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1 1 auto;
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link,
.dropdown-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 850;
  font-size: 0.95rem;
  color: var(--mt-dark);
  padding: 10px 11px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus,
.dropdown-toggle:hover,
.dropdown-toggle:focus { background: rgba(31,107,84,0.1); outline: none; }
.dropdown-toggle { display: inline-flex; }
.nav-contact {
  background: var(--mt-dark);
  color: #fff;
  padding-inline: 16px;
}
.nav-contact:hover, .nav-contact:focus { background: var(--mt-green); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 285px;
  max-width: min(440px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--mt-border);
  border-radius: 20px;
  box-shadow: var(--mt-shadow);
  padding: 10px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.dropdown-menu a {
  display: block;
  text-decoration: none;
  color: var(--mt-dark);
  font-weight: 780;
  padding: 11px 12px;
  border-radius: 13px;
  white-space: normal;
}
.dropdown-menu a:hover, .dropdown-menu a:focus { background: var(--mt-cream); outline: none; }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: var(--mt-dark);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon span { height: 2px; background: #fff; border-radius: 99px; display: block; }
.site-main { width: 100%; min-width: 0; }
.section-inner, .hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.hero-section {
  background: radial-gradient(circle at top left, rgba(47,128,103,0.18), transparent 35%), linear-gradient(135deg, #f6f1e7 0%, #efe4d0 100%);
  padding: clamp(46px, 8vw, 100px) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mt-green);
}
h1, h2, h3 {
  color: var(--mt-dark);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}
h1 { font-size: clamp(2.3rem, 7.4vw, 5rem); max-width: 920px; }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.25rem); max-width: 900px; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
p { margin: 0 0 18px; }
.hero-lead, .section-inner > p, .page-content p {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--mt-muted);
  max-width: 820px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-primary, .button-secondary, .mt-inline-button, .mt-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  border: 2px solid transparent;
  cursor: pointer;
}
.button-primary, .mt-inline-button, .mt-submit { background: var(--mt-green); color: #fff; }
.button-primary.light { background: #fff; color: var(--mt-dark); }
.button-secondary { background: #fff; color: var(--mt-dark); border-color: var(--mt-border); }
.hero-panel {
  background: var(--mt-dark);
  color: #fff;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--mt-shadow);
}
.hero-panel strong { display: block; font-size: 1.35rem; margin-bottom: 12px; }
ul { padding-left: 1.2rem; }
.hero-panel li { margin: 8px 0; }
.content-band { background: #fff; padding: clamp(48px, 7vw, 86px) 0; }
.section-inner { padding: clamp(48px, 7vw, 86px) 0; }
.content-band .section-inner { padding-top: 0; padding-bottom: 0; }
.three-grid, .mt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.three-grid article, .mt-card-link {
  background: #fff;
  border: 1px solid var(--mt-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(16, 35, 31, 0.07);
}
.content-band .mt-card-link { background: var(--mt-cream); }
.mt-card-link {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: var(--mt-text);
  min-height: 142px;
}
.mt-card-link strong { color: var(--mt-dark); font-size: 1.15rem; }
.mt-card-link span { color: var(--mt-muted); }
.mt-card-link:hover, .mt-card-link:focus { transform: translateY(-2px); border-color: rgba(31,107,84,0.35); }
.cta-section { background: var(--mt-dark); color: #fff; text-align: center; }
.cta-inner { padding: clamp(50px, 7vw, 80px) 0; }
.cta-section h2, .cta-section p { color: #fff; margin-left: auto; margin-right: auto; }
.page-hero { background: linear-gradient(135deg, var(--mt-dark), #21483d); padding: clamp(48px, 8vw, 90px) 0; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--mt-sand); }
.page-content { max-width: min(980px, calc(100% - 40px)); }
.page-content ul { font-size: 1.08rem; color: var(--mt-text); }
.page-content li { margin: 8px 0; }
.mt-contact-form {
  background: #fff;
  border: 1px solid var(--mt-border);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--mt-shadow);
  margin: 28px 0;
  display: grid;
  gap: 16px;
}
.mt-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mt-contact-form label { display: grid; gap: 8px; font-weight: 900; color: var(--mt-dark); }
.mt-contact-form input, .mt-contact-form textarea, .mt-contact-form select {
  width: 100%;
  border: 1px solid var(--mt-border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fbfaf6;
  color: var(--mt-text);
}
.mt-contact-form textarea { resize: vertical; }
.mt-hidden-field { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.mt-form-note { font-size: 0.93rem !important; color: var(--mt-muted); margin-bottom: 0; }
.mt-form-success, .mt-form-error { border-radius: 18px; padding: 15px 18px; margin: 22px 0; font-size: 1rem; }
.mt-form-success { background: #e5f6ee; border: 1px solid #a7ddc1; color: #154c39; }
.mt-form-error { background: #fff0ee; border: 1px solid #e7aaa3; color: #873327; }
.site-footer { background: #0b1714; color: #e9f2ee; padding: 44px 0 24px; }
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.footer-inner p { color: #b7c4bf; max-width: 580px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.footer-links a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.footer-bottom { width: min(1180px, calc(100% - 40px)); margin: 26px auto 0; color: #98aaa3; font-size: 0.92rem; }

@media (max-width: 1120px) {
  .brand { min-width: auto; }
  .brand-tagline { display: none; }
  .nav-link, .dropdown-toggle { font-size: 0.9rem; padding-inline: 9px; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .three-grid, .mt-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .header-inner { width: 100%; min-height: 72px; padding: 0 16px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  .brand-name { font-size: 1.22rem; }
  .brand-tagline { display: none; }
  .menu-toggle { display: inline-flex; flex: 0 0 auto; }
  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    z-index: 5001;
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: calc(100dvh - 72px);
    overflow-y: auto;
    background: var(--mt-dark);
    padding: 12px 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 22px 50px rgba(0,0,0,0.25);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 190ms ease, opacity 190ms ease;
  }
  .site-header.menu-is-open .primary-nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  html.mt-menu-open, html.mt-menu-open body { overflow: hidden; }
  .nav-item { display: block; width: 100%; }
  .nav-link,
  .dropdown-toggle {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    padding: 14px 12px;
    border-radius: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: normal;
    text-align: left;
  }
  .dropdown-toggle { display: flex; background: transparent; }
  .nav-link:hover, .nav-link:focus, .dropdown-toggle:hover, .dropdown-toggle:focus { background: rgba(255,255,255,0.09); }
  .nav-contact { background: var(--mt-green-2); margin-top: 8px; text-align: center; justify-content: center; }
  .dropdown-menu {
    position: static;
    transform: none !important;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: none;
    padding: 6px;
    margin: 4px 0 10px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .dropdown-menu::before { display: none; }
  .has-dropdown.is-open .dropdown-menu { display: grid; }
  .dropdown-menu a {
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 760;
  }
  .dropdown-menu a:hover, .dropdown-menu a:focus { background: rgba(255,255,255,0.09); }
  .section-inner, .hero-inner { width: calc(100% - 32px); }
  .hero-section { padding-top: 42px; }
  .hero-actions, .button-primary, .button-secondary, .mt-inline-button { width: 100%; }
  .button-primary, .button-secondary, .mt-inline-button { text-align: center; }
  .mt-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section-inner, .hero-inner, .page-content, .footer-inner, .footer-bottom { width: calc(100% - 28px); }
  h1 { font-size: clamp(2.05rem, 12vw, 3.2rem); }
  h2 { font-size: clamp(1.65rem, 9vw, 2.4rem); }
  .three-grid, .mt-card-grid { grid-template-columns: 1fr; }
  .hero-panel, .three-grid article, .mt-card-link, .mt-contact-form { border-radius: 20px; }
  .footer-inner { display: grid; }
  .footer-links { justify-content: flex-start; }
}

/* Maintenance Time V9 hard-coded homepage with image placeholders */
.mt-home-v9 .mt-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.mt-home-v9 .mt-wrap.narrow { width: min(900px, calc(100% - 40px)); }
.mt-hero-v9 {
  background: var(--mt-dark);
  color: #fff;
  padding: clamp(54px, 7vw, 88px) 0;
}
.mt-hero-v9 h1,
.mt-hero-v9 p { color: #fff; }
.mt-kicker {
  color: var(--mt-sand);
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.mt-hero-grid,
.mt-two-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.mt-hero-v9 h1 { font-size: clamp(2.3rem, 5.8vw, 4.1rem); max-width: 780px; }
.mt-lead { font-size: clamp(1.08rem, 2.1vw, 1.3rem); }
.mt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.light-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.light-outline:hover { background: #fff; color: var(--mt-dark); }
.mt-section { padding: clamp(48px, 6vw, 70px) 0; }
.mt-soft { background: rgba(255,255,255,0.38); }
.mt-section-head { text-align: center; margin: 0 auto 34px; max-width: 820px; }
.mt-section-head h2 { margin-left: auto; margin-right: auto; }
.mt-section-head p { margin-left: auto; margin-right: auto; color: var(--mt-muted); }
.mt-three-grid,
.mt-service-grid-v9 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mt-card {
  background: #fff;
  border: 1px solid var(--mt-border);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(16,35,31,0.08);
  padding: 26px;
  height: 100%;
}
.mt-card h3 { margin-top: 0; }
.mt-list-card { margin-top: 22px; }
.mt-list-card ul { padding-left: 20px; }
.mt-list-card li { margin-bottom: 8px; }
.mt-image-placeholder {
  min-height: 260px;
  border-radius: 22px;
  background: repeating-linear-gradient(45deg,#e9e9e9,#e9e9e9 12px,#f4f4f4 12px,#f4f4f4 24px);
  border: 2px dashed rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
  font-weight: 800;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.mt-image-placeholder span { font-size: 0.88rem; font-weight: 600; opacity: 0.8; max-width: 420px; }
.mt-image-placeholder.small {
  min-height: 165px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: none;
}
.mt-image-placeholder.dark {
  background: repeating-linear-gradient(45deg,#252525,#252525 12px,#303030 12px,#303030 24px);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.mt-service-grid-v9 .mt-card-link { min-height: 185px; }
.mt-centre { display: flex; justify-content: center; margin-top: 28px; }
.mt-link-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--mt-border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(16,35,31,0.08);
}
.mt-link-columns ul { margin: 0; padding-left: 20px; }
.mt-link-columns li { margin-bottom: 12px; font-weight: 850; }
.mt-final-cta-v9 {
  text-align: center;
  background: var(--mt-dark);
  color: #fff;
  padding: clamp(54px, 7vw, 76px) 0;
}
.mt-final-cta-v9 h2,
.mt-final-cta-v9 p { color: #fff; margin-left: auto; margin-right: auto; }
.mt-final-cta-v9 p { font-size: 1.15rem; max-width: 760px; }
@media (max-width: 900px) {
  .mt-hero-grid,
  .mt-two-grid,
  .mt-three-grid,
  .mt-service-grid-v9,
  .mt-link-columns {
    grid-template-columns: 1fr;
  }
  .mt-actions .button-primary,
  .mt-actions .button-secondary,
  .mt-final-cta-v9 .button-primary {
    width: 100%;
  }
  .mt-image-placeholder { min-height: 220px; }
  .mt-image-placeholder.small { min-height: 145px; }
}
