/* Managed Technology Group — site styles.
   Brand foundations shared with Managed IT Support (managedtech.uk):
   Onest headings, Instrument Sans body, navy #00001F, cool greys.
   MTG's own accent is burnt orange. */

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00001F;
  --navy-2: #14143A;
  --grey: #666679;
  --border: #E0E0E4;
  --tint: #F6F7F9;
  --tint-2: #F7F9FC;
  --white: #FFFFFF;
  --accent: #B8430A;
  --accent-dark: #9A3807;
  --accent-light: #F2A15E;
  --on-dark: #C9CBD6;
  --on-dark-muted: #9A9CB0;

  --font-head: "Onest", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: 32px;
}

/* ---------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 23px; line-height: 1.25; }
p { margin: 0 0 18px; }
a { color: var(--navy); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
ul, ol { padding-left: 1.2em; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--white); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); margin-left: 0; }
@media (min-width: 1304px) { .narrow { margin-left: auto; margin-right: auto; max-width: calc(var(--wrap) + var(--gutter) * 2); padding-right: calc(var(--gutter) + 420px); } }

/* ---------------------------------------------------------- header */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; flex: none; }
.brand:hover { color: var(--white); }
.brand__mark { width: 42px; height: 42px; border: 2px solid var(--accent); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.15; }

.site-nav { display: flex; align-items: center; gap: 8px 24px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 6px; }
.site-nav__list > li { position: relative; display: flex; align-items: center; }
.site-nav__list a { color: var(--white); text-decoration: none; font-size: 15px; padding: 12px 10px; display: block; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--accent-light); }
.sub-toggle { background: none; border: 0; color: var(--white); padding: 8px 4px; margin-left: -6px; cursor: pointer; display: grid; place-items: center; }
.sub-toggle:hover { color: var(--accent-light); }
.site-nav__sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--navy); border: 1px solid rgba(255,255,255,.12); display: none; }
.site-nav__sub a { padding: 10px 18px; }
.has-sub:hover > .site-nav__sub, .has-sub:focus-within > .site-nav__sub, .has-sub.is-open > .site-nav__sub { display: block; }
.site-nav__cta { white-space: nowrap; min-height: 46px; padding: 10px 20px; font-size: 15px; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); font: 600 15px var(--font-body); padding: 10px 14px; min-height: 44px; cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav__list a { padding: 14px 0; font-size: 17px; }
  .sub-toggle { padding: 14px; margin: 0; }
  .site-nav__sub { position: static; width: 100%; min-width: 0; border: 0; padding: 0 0 8px 16px; }
  .has-sub:hover > .site-nav__sub, .has-sub:focus-within > .site-nav__sub { display: none; }
  .has-sub.is-open > .site-nav__sub { display: block; }
  .site-nav__sub a { padding: 10px 0; font-size: 16px; color: var(--on-dark); }
  .site-nav__cta { margin-top: 20px; }
}

/* ---------------------------------------------------------- sections */
.section { padding: 104px 0; border-bottom: 1px solid var(--border); }
.section--tint { background: var(--tint); }
.section--white { background: var(--white); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.h2-sm { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.muted { color: var(--grey); }
.intro { max-width: 760px; margin-bottom: 48px; }
.split { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.split__main { flex: 999 1 520px; min-width: 0; }
.split__side { flex: 1 1 340px; min-width: 0; }
.split--even > .split__main, .split--even > .split__side { flex: 1 1 420px; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.row__main { flex: 999 1 520px; min-width: 0; }
.section p a:not(.btn):not(.link) { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons and links */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btns--stack { flex-direction: column; flex: 1 1 280px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 52px; padding: 14px 26px; background: var(--accent); color: var(--white); font-weight: 600; text-decoration: none; border: 1.5px solid transparent; line-height: 1.3; }
.btn:hover, .btn:focus-visible { background: var(--accent-dark); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(255,255,255,.08); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--navy); color: var(--white); }
.btn--dark { background: var(--navy); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--navy-2); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover, .btn--light:focus-visible { background: var(--tint); color: var(--navy); }
.link { display: inline-block; padding: 10px 0; min-height: 44px; font-weight: 600; color: var(--navy); text-decoration: none; }
.link:hover { color: var(--accent); }

/* Hero */
.hero { background: var(--navy); color: var(--white); border-bottom: 0; padding: 88px 0 96px; }
.hero .split { align-items: center; }
.hero h1, .hero__title { color: var(--white); margin-bottom: 28px; }
.hero__title--home { font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.02; }
.hero--inner .hero__title { max-width: 16em; }
.hero__title--article { font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 20em; }
.hl { color: var(--accent-light); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.3); padding: 8px 14px; margin-bottom: 28px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--on-dark); max-width: 36em; }
.article-date { color: var(--on-dark-muted); font-size: 15px; margin: 0; }
.ticks { list-style: none; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15px; color: var(--on-dark); }
.ticks li, .checklist li, .strip li { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.ticks svg { width: 16px; height: 16px; margin-top: 4px; flex: none; }

/* Home hero panel: swap for a genuine photo of Jay when available */
.hero-panel { aspect-ratio: 4 / 5; background: var(--navy-2); border: 1px solid rgba(255,255,255,.12); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; }
.hero-panel__mark { width: 72px; height: 72px; border: 3px solid var(--accent); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.hero-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-panel__list li { background: rgba(255,255,255,.06); border-left: 3px solid var(--accent-light); padding: 12px 16px; font-weight: 600; font-size: 15px; }
.hero-photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) { .hero-panel { display: none; } .hero-photo { aspect-ratio: 4 / 3; } }

/* Panels, checklists, chips */
.panel { background: var(--white); border: 1px solid var(--border); padding: 36px; }
.panel h3 { font-size: 22px; margin-bottom: 20px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checklist svg { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip { color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--white); border: 1px solid var(--border); padding: 8px 14px; }
.strip { list-style: none; margin: 32px 0 0; padding: 20px 24px; background: var(--white); border: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px 36px; font-weight: 600; }
.strip li { align-items: center; }
.strip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards--2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--white); border: 1px solid var(--border); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--grey); margin: 0; }
.card > p:not(:last-child):last-of-type { flex-grow: 1; }
.card__title { font-size: 23px; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--accent); text-decoration: underline; }
.card__icon { width: 36px; height: 36px; color: var(--navy); }
.card__strap { font-weight: 600; color: var(--navy) !important; }
.card__needs { font-size: 15px; }
.card__needs strong { color: var(--navy); }
.card .link { margin-top: auto; }
.card--dark { background: var(--navy); color: var(--white); border-color: var(--navy); justify-content: space-between; }
.card--dark .card__title { color: var(--white); }
.card--dark p { color: var(--on-dark); }
.contact-big { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--navy) !important; }
.section p .contact-big a, .contact-big a { color: var(--navy); text-decoration: none; }
.contact-big a:hover { color: var(--accent); }

/* Points (A–D) */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.point { background: var(--white); padding: 28px; }
.point h3 { font-size: 19px; margin-bottom: 8px; }
.point p { color: var(--grey); font-size: 16px; margin: 0; }
.point .point__key { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--accent); margin-bottom: 8px; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.steps li { counter-increment: step; position: relative; padding: 24px 0 24px 84px; border-bottom: 1px solid var(--border); margin: 0; color: var(--grey); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 20px; font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--accent); }
.steps li strong { display: block; color: var(--navy); font-size: 20px; margin-bottom: 4px; }

/* FAQs */
.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--grey); margin: 0 0 22px; }

/* Final CTA */
.cta { background: var(--accent); color: var(--white); border-bottom: 0; }
.cta h2 { color: var(--white); font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.04; }
.cta p { font-size: 19px; max-width: 38em; }
.cta p a { color: var(--white); }

/* Embeds (GoHighLevel form and booking calendar) */
.embed { background: var(--white); border: 1px solid var(--border); padding: 8px; min-height: 300px; }
.embed iframe { display: block; width: 100%; border: 0; }
.embed--form iframe { min-height: 980px; }
.embed--booking iframe { min-height: 760px; }
.embed--wide { max-width: 1000px; }
#enquiry, #book, #latest { scroll-margin-top: 24px; }

/* Insights */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.topic { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--accent); padding: 24px; }
.topic h3 { font-size: 19px; margin-bottom: 8px; }
.topic p { color: var(--grey); font-size: 16px; margin: 0; }
.insight-card__topic { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent) !important; }
.insight-card__date { font-size: 14px; }
.empty-state { background: var(--white); border: 1px dashed var(--border); padding: 32px; color: var(--grey); max-width: 760px; }
.prose { font-size: 18px; }
.prose h2 { font-size: 30px; margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--grey); }

/* Legal pages */
.notice { background: #FFF6EE; border: 1px solid var(--accent-light); padding: 20px 24px; margin-bottom: 32px; }

/* ---------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: var(--on-dark); font-size: 15px; padding: 72px 0 40px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 72px; justify-content: space-between; margin-bottom: 48px; }
.site-footer__cols > * { flex: 1 1 220px; }
.site-footer__about { flex: 1 1 320px; max-width: 420px; }
.site-footer p { margin: 0 0 10px; }
.site-footer__name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--white); }
.site-footer__strap { color: var(--white); font-weight: 500; }
.site-footer__label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.site-footer__links { list-style: none; margin: 0 0 12px; padding: 0; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 36px; overflow-wrap: anywhere; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; font-size: 13px; color: #A9ABBD; }
.site-footer__bottom p { margin: 0; max-width: 760px; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__legal a { color: var(--on-dark); text-decoration: underline; }

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
  .steps li { padding-left: 64px; }
  .card, .panel { padding: 28px; }
}
