/*
Theme Name: DMTech Support
Theme URI: https://dmtechsolutions.co.uk/
Author: DM Tech Solutions
Description: IT support consultancy theme for DMTech Solutions.
Version: 1.0.0
Text Domain: dmtech-support
*/

:root {
  --ink: #111827;
  --muted: #5b6575;
  --line: #dce3ee;
  --panel: #ffffff;
  --soft: #f3f7fb;
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --accent: #f59e0b;
  --navy: #182235;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a,
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
}

.menu a:hover,
.nav-link:hover {
  color: var(--ink);
  background: var(--soft);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.button.secondary {
  color: var(--brand-dark);
  background: #d9f3ee;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #182235;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 24, 39, 0.92), rgba(16, 24, 39, 0.74)),
    linear-gradient(0deg, rgba(15, 118, 110, 0.32), rgba(24, 34, 53, 0.18));
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #99f6e4;
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  margin: 24px 0 0;
  color: #dce7f5;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.status-board {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.status-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 750;
}

.dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
}

.status-row span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 64px 0;
}

.section.white {
  background: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.entry-title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 220px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card strong {
  display: block;
  margin-top: 18px;
  color: var(--brand-dark);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step {
  padding: 24px;
  background: #fff;
}

.step b {
  color: var(--accent);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: inset 0 4px 0 var(--brand);
}

.plan h3 {
  margin: 0 0 8px;
}

.plan ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.cta-band {
  padding: 42px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.cta-band p {
  max-width: 720px;
  margin: 12px 0 24px;
  color: #dce7f5;
}

.site-main {
  min-height: 60vh;
}

.entry {
  width: min(980px, calc(100% - 32px));
  margin: 46px auto 70px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.entry-content {
  margin-top: 24px;
}

.entry-content a {
  color: var(--brand-dark);
  font-weight: 750;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.contact-panel,
.contact-form-panel {
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-panel h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.contact-details div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 4px 0 0;
  font-weight: 750;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

.contact-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 750;
}

.contact-notice.success {
  color: #065f46;
  background: #d1fae5;
  border-color: #86efac;
}

.contact-notice.error {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.site-footer {
  color: #dce7f5;
  background: #101827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 30px 0;
}

.footer-inner p {
  margin: 0;
  color: #9fb0c6;
}

@media (max-width: 860px) {
  .nav,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    flex-wrap: wrap;
  }

  .hero-inner,
  .grid,
  .process,
  .plans,
  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0 42px;
  }

  .status-board {
    padding: 12px;
  }

  .cta-band,
  .entry,
  .contact-panel,
  .contact-form-panel {
    padding: 24px;
  }
}
