/*
Theme Name: Mill Tech Limited
Theme URI: https://www.milltech.tech/
Author: ChatGPT
Author URI: https://openai.com/
Description: A premium industrial WordPress theme for Mill Tech Limited, a UK machine tool manufacturing and trade support business.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mill-tech-limited
Tags: custom-logo, custom-menu, responsive-layout, one-column, business, manufacturing
*/

:root {
  --mt-ink: #0d1724;
  --mt-ink-2: #132438;
  --mt-navy: #1b4e7a;
  --mt-steel: #60748b;
  --mt-brass: #c08b4f;
  --mt-brass-deep: #946638;
  --mt-line: #d8dde4;
  --mt-bg: #f4f1eb;
  --mt-bg-2: #e9ded0;
  --mt-white: #ffffff;
  --mt-muted: #5d6874;
  --mt-shadow: 0 24px 70px rgba(13, 23, 36, .16);
  --mt-radius: 22px;
  --mt-radius-sm: 14px;
  --mt-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mt-display: "Aptos Display", "Segoe UI", var(--mt-font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mt-ink);
  background: var(--mt-bg);
  font-family: var(--mt-font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: var(--mt-navy); text-decoration: none; transition: color .18s ease, transform .18s ease, border-color .18s ease, background .18s ease; }
a:hover { color: var(--mt-brass-deep); }
img { max-width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
button, input, select, textarea { font: inherit; }

.mt-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.mt-container-narrow { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.mt-grid { display: grid; gap: 28px; }
.mt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-section { padding: 92px 0; position: relative; }
.mt-section-sm { padding: 58px 0; }
.mt-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--mt-brass-deep); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; }
.mt-kicker::before { content: ""; width: 32px; height: 2px; background: var(--mt-brass); display: inline-block; }
.mt-eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: var(--mt-brass); }
.mt-section-title { font-family: var(--mt-display); font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.05; margin: 14px 0 18px; letter-spacing: -.035em; }
.mt-lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--mt-muted); max-width: 760px; }
.mt-dark .mt-lede, .mt-dark p { color: #d6dfea; }
.mt-dark { color: white; background: var(--mt-ink); }
.mt-muted { color: var(--mt-muted); }

.mt-btn, .wp-block-button__link, .mt-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 21px;
  border: 1px solid transparent;
  background: var(--mt-brass);
  color: #08111c;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 13px 30px rgba(192, 139, 79, .24);
}
.mt-btn:hover, .wp-block-button__link:hover, .mt-contact-submit:hover { transform: translateY(-2px); color: #08111c; background: #d8a466; }
.mt-btn-secondary { background: transparent; color: var(--mt-white); border-color: rgba(255,255,255,.22); box-shadow: none; }
.mt-btn-secondary:hover { background: rgba(255,255,255,.09); color: white; }
.mt-btn-dark { background: var(--mt-ink); color: white; box-shadow: 0 15px 35px rgba(13,23,36,.18); }
.mt-btn-dark:hover { background: #20324a; color: white; }
.mt-btn-outline { background: transparent; border-color: var(--mt-line); color: var(--mt-ink); box-shadow: none; }
.mt-btn-outline:hover { background: white; color: var(--mt-ink); border-color: var(--mt-brass); }

.screen-reader-text, .skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 9999; width: auto; height: auto; padding: 10px 14px; background: white; color: var(--mt-ink); border-radius: 8px; box-shadow: var(--mt-shadow); }

.mt-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 241, 235, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 221, 228, .72);
}
.mt-header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mt-logo { display: inline-flex; align-items: center; min-width: 230px; }
.mt-logo img { width: 232px; height: auto; }
.mt-main-nav { display: flex; align-items: center; gap: 18px; }
.mt-main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.mt-main-nav a { display: inline-flex; padding: 11px 12px; color: var(--mt-ink); font-weight: 750; font-size: .94rem; border-radius: 999px; }
.mt-main-nav a:hover, .mt-main-nav .current-menu-item > a { background: white; color: var(--mt-navy); }
.mt-header-cta { margin-left: 8px; }
.mt-menu-toggle { display: none; background: var(--mt-ink); color: white; border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 800; }

.mt-hero { overflow: hidden; background: radial-gradient(circle at top right, rgba(27,78,122,.24), transparent 34%), linear-gradient(135deg, #0d1724 0%, #122238 47%, #1b4e7a 100%); color: white; }
.mt-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent); pointer-events: none; }
.mt-hero-inner { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 54px; align-items: center; min-height: 720px; padding: 92px 0 86px; }
.mt-hero h1 { font-family: var(--mt-display); font-size: clamp(3rem, 6vw, 6.45rem); line-height: .92; letter-spacing: -.075em; margin: 16px 0 24px; max-width: 780px; }
.mt-hero h1 span { color: var(--mt-brass); }
.mt-hero-copy { color: #d6dfea; font-size: clamp(1.05rem, 1.5vw, 1.26rem); max-width: 660px; }
.mt-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.mt-hero-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 42px; max-width: 730px; }
.mt-trust-tile { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.075); border-radius: 17px; padding: 18px 16px; min-height: 112px; }
.mt-trust-tile strong { display: block; color: white; font-size: 1rem; line-height: 1.2; }
.mt-trust-tile span { display: block; color: #b9c8da; font-size: .88rem; margin-top: 8px; }
.mt-hero-image-wrap { position: relative; }
.mt-hero-image-card { position: relative; border-radius: 30px; overflow: hidden; box-shadow: 0 35px 95px rgba(0,0,0,.34); transform: rotate(1deg); border: 1px solid rgba(255,255,255,.15); background: #111; }
.mt-hero-image-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.mt-image-protect { position: relative; overflow: hidden; }
.mt-image-protect::after { content: ""; position: absolute; inset: 0; z-index: 4; background: transparent; pointer-events: auto; }
.mt-hero-badge { position: absolute; left: -24px; bottom: 32px; z-index: 7; background: white; color: var(--mt-ink); border-radius: 18px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.25); max-width: 250px; }
.mt-hero-badge strong { display: block; font-size: 1rem; line-height: 1.25; }
.mt-hero-badge span { display: block; color: var(--mt-muted); margin-top: 4px; font-size: .88rem; }
.mt-vertical-tag { position: absolute; right: -35px; top: 40px; transform: rotate(90deg); letter-spacing: .22em; color: rgba(255,255,255,.54); font-size: .74rem; font-weight: 800; text-transform: uppercase; }

.mt-stat-band { margin-top: -48px; position: relative; z-index: 4; }
.mt-stat-band-inner { background: white; border-radius: var(--mt-radius); box-shadow: var(--mt-shadow); display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(216,221,228,.85); }
.mt-stat-intro { padding: 28px 30px; background: var(--mt-bg-2); }
.mt-stat { padding: 28px 30px; border-left: 1px solid var(--mt-line); }
.mt-stat strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.mt-stat span, .mt-stat-intro p { color: var(--mt-muted); font-size: .94rem; margin: 6px 0 0; }

.mt-card { background: white; border: 1px solid rgba(216,221,228,.92); border-radius: var(--mt-radius); padding: 30px; box-shadow: 0 16px 48px rgba(13,23,36,.07); position: relative; overflow: hidden; }
.mt-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--mt-navy), var(--mt-brass)); opacity: .88; }
.mt-card h3 { margin: 0 0 12px; line-height: 1.2; font-size: 1.35rem; letter-spacing: -.02em; }
.mt-card p { color: var(--mt-muted); margin: 0 0 18px; }
.mt-card ul { margin: 0; padding-left: 20px; color: var(--mt-muted); }
.mt-card .mt-card-link { font-weight: 800; }

.mt-services-head { display: flex; gap: 28px; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.mt-services-head .mt-lede { margin: 0; }
.mt-service-card { min-height: 100%; }
.mt-service-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--mt-bg-2); margin-bottom: 20px; color: var(--mt-brass-deep); font-weight: 900; }

.mt-operations { background: linear-gradient(135deg, #f7f5f0, #e7ded2); overflow: hidden; }
.mt-ops-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 42px; align-items: center; }
.mt-ops-image { border-radius: 30px; overflow: hidden; box-shadow: var(--mt-shadow); border: 10px solid white; transform: rotate(-1deg); }
.mt-ops-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.mt-ops-list { margin: 26px 0 0; display: grid; gap: 14px; }
.mt-ops-item { display: flex; gap: 13px; align-items: flex-start; background: white; border: 1px solid var(--mt-line); border-radius: 16px; padding: 16px; }
.mt-ops-item span { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--mt-ink); color: white; display: grid; place-items: center; font-size: .82rem; font-weight: 900; }
.mt-ops-item strong { display: block; }
.mt-ops-item p { margin: 3px 0 0; color: var(--mt-muted); }

.mt-choose { background: var(--mt-ink); color: white; overflow: hidden; }
.mt-choose::after { content: ""; position: absolute; inset: auto -10% -35% auto; width: 500px; height: 500px; border-radius: 50%; background: rgba(192,139,79,.18); filter: blur(8px); }
.mt-choose .mt-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); box-shadow: none; }
.mt-choose .mt-card h3 { color: white; }
.mt-choose .mt-card p, .mt-choose .mt-card li { color: #d6dfea; }

.mt-process { counter-reset: step; }
.mt-process-card { background: transparent; box-shadow: none; border-style: dashed; padding: 26px; }
.mt-process-card::before { display: none; }
.mt-process-card h3::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; color: var(--mt-brass-deep); font-size: .8rem; letter-spacing: .16em; margin-bottom: 9px; }

.mt-cta { background: linear-gradient(135deg, var(--mt-navy), var(--mt-ink)); color: white; border-radius: 34px; padding: clamp(34px, 5vw, 62px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; overflow: hidden; position: relative; }
.mt-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 20%, rgba(192,139,79,.35), transparent 32%); pointer-events: none; }
.mt-cta > * { position: relative; }
.mt-cta h2 { margin: 0 0 12px; font-family: var(--mt-display); font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.mt-cta p { color: #d6dfea; max-width: 680px; margin: 0; }
.mt-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mt-page-hero { padding: 72px 0 42px; background: linear-gradient(135deg, #0d1724, #17395b); color: white; }
.mt-page-hero h1 { font-family: var(--mt-display); font-size: clamp(2.6rem, 5vw, 5rem); line-height: .96; letter-spacing: -.065em; margin: 0 0 18px; }
.mt-page-hero p { color: #d6dfea; max-width: 800px; font-size: 1.12rem; }
.mt-page-content { padding: 72px 0 88px; }
.mt-page-content h2 { font-family: var(--mt-display); font-size: clamp(1.8rem, 2.7vw, 2.8rem); line-height: 1.1; letter-spacing: -.04em; margin: 44px 0 16px; }
.mt-page-content h3 { font-size: 1.3rem; margin: 28px 0 10px; }
.mt-page-content p, .mt-page-content li { color: var(--mt-muted); }
.mt-page-content .mt-card p, .mt-page-content .mt-card li { color: var(--mt-muted); }
.mt-page-content .mt-card h3 { margin-top: 0; }
.mt-page-content a { font-weight: 700; }
.mt-page-media-row { display: grid; grid-template-columns: 1.02fr .98fr; gap: 36px; align-items: center; margin: 30px 0; }
.mt-framed-img { border-radius: 24px; overflow: hidden; border: 10px solid white; box-shadow: var(--mt-shadow); background: white; }
.mt-framed-img img { aspect-ratio: 16 / 10; object-fit: cover; }

.mt-filter-panel { background: white; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: 24px; margin: 24px 0 34px; box-shadow: 0 14px 40px rgba(13,23,36,.06); }
.mt-filter-panel label { display: block; font-weight: 850; margin-bottom: 8px; }
.mt-filter-panel input { width: 100%; border: 1px solid var(--mt-line); border-radius: 14px; padding: 14px 16px; outline: none; background: #fbfaf8; }
.mt-filter-panel input:focus { border-color: var(--mt-brass); box-shadow: 0 0 0 4px rgba(192,139,79,.14); }
.mt-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mt-filter-card { transition: opacity .2s ease, transform .2s ease; }
.mt-filter-card[hidden] { display: none !important; }
.mt-tag { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: .76rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; background: var(--mt-bg-2); color: var(--mt-brass-deep); margin-bottom: 14px; }

.mt-contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: start; }
.mt-contact-list { display: grid; gap: 16px; }
.mt-contact-list .mt-card { padding: 24px; }
.mt-contact-form { background: white; border: 1px solid var(--mt-line); border-radius: 28px; padding: clamp(24px, 4vw, 38px); box-shadow: var(--mt-shadow); }
.mt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mt-form-field { display: grid; gap: 7px; }
.mt-form-field.full { grid-column: 1 / -1; }
.mt-form-field label { font-weight: 850; font-size: .92rem; }
.mt-form-field input, .mt-form-field select, .mt-form-field textarea { width: 100%; border: 1px solid var(--mt-line); border-radius: 13px; padding: 13px 14px; background: #fbfaf8; outline: none; }
.mt-form-field textarea { resize: vertical; min-height: 150px; }
.mt-form-field input:focus, .mt-form-field select:focus, .mt-form-field textarea:focus { border-color: var(--mt-brass); box-shadow: 0 0 0 4px rgba(192,139,79,.14); }
.mt-form-note { color: var(--mt-muted); font-size: .9rem; margin-top: 14px; }
.mt-form-message { border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; font-weight: 750; }
.mt-form-success { background: #e9f8ef; color: #17623a; }
.mt-form-error { background: #fff0eb; color: #9a3a22; }
.mt-map { border: 0; width: 100%; min-height: 360px; border-radius: 24px; box-shadow: var(--mt-shadow); margin-top: 30px; }

.mt-site-footer { background: #08111c; color: white; padding: 68px 0 26px; }
.mt-footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .8fr 1fr; gap: 34px; }
.mt-footer-logo img { width: 230px; }
.mt-site-footer p, .mt-site-footer li, .mt-site-footer a { color: #bdcad8; }
.mt-site-footer a:hover { color: var(--mt-brass); }
.mt-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mt-site-footer h2, .mt-site-footer h3 { color: white; margin: 0 0 16px; font-size: 1rem; }
.mt-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #96a7ba; font-size: .9rem; }
.mt-footer-bottom a { color: #96a7ba; }

.mt-reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.mt-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .mt-grid-4, .mt-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-hero-inner, .mt-ops-inner, .mt-contact-layout, .mt-page-media-row { grid-template-columns: 1fr; }
  .mt-hero-inner { min-height: auto; padding-top: 70px; }
  .mt-hero-image-card { transform: none; }
  .mt-hero-badge { left: 20px; }
  .mt-stat-band-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-stat { border-left: 0; border-top: 1px solid var(--mt-line); }
  .mt-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mt-header-inner { min-height: 74px; }
  .mt-menu-toggle { display: inline-flex; }
  .mt-main-nav { position: fixed; inset: 74px 18px auto 18px; display: none; background: white; border: 1px solid var(--mt-line); border-radius: 20px; box-shadow: var(--mt-shadow); padding: 14px; flex-direction: column; align-items: stretch; }
  .mt-main-nav.is-open { display: flex; }
  .mt-main-nav ul { display: grid; gap: 4px; width: 100%; }
  .mt-main-nav a { width: 100%; }
  .mt-header-cta { margin-left: 0; width: 100%; }
  .mt-header-cta .mt-btn { width: 100%; }
  .mt-logo img { width: 205px; }
  .mt-grid-2, .mt-grid-3, .mt-grid-4, .mt-filter-grid { grid-template-columns: 1fr; }
  .mt-services-head { align-items: flex-start; flex-direction: column; }
  .mt-hero-panel { grid-template-columns: 1fr; }
  .mt-cta { grid-template-columns: 1fr; }
  .mt-form-grid { grid-template-columns: 1fr; }
  .mt-stat-band { margin-top: 0; }
  .mt-section { padding: 68px 0; }
}
@media (max-width: 580px) {
  .mt-container, .mt-container-narrow { width: min(100% - 28px, 1180px); }
  .mt-stat-band-inner, .mt-footer-grid { grid-template-columns: 1fr; }
  .mt-hero h1 { font-size: clamp(2.75rem, 16vw, 4.4rem); }
  .mt-hero-badge, .mt-vertical-tag { display: none; }
  .mt-card { padding: 24px; }
  .mt-page-hero { padding: 54px 0 34px; }
}
