/*
Theme Name: MFI Tractor South Africa
Theme URI: https://masseyfergusontractor.co.za
Author: Murshid Farm Industries
Author URI: https://mfipk.com
Description: Export-focused WordPress theme for Massey Ferguson tractors, farm implements and spare parts in South Africa.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: mfi-sa
*/

:root {
  --red: #c81421;
  --red-dark: #94101a;
  --ink: #181a1b;
  --muted: #656768;
  --cream: #f3f0e8;
  --line: #d8d5cd;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: #fff; position: relative; z-index: 20; }
.topbar { color: #d9d9d9; background: var(--ink); font-size: 12px; letter-spacing: .02em; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: #fff; font-weight: 700; }
.nav-row { min-height: 82px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-badge { width: 47px; height: 43px; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 20px; font-weight: 900; letter-spacing: -.07em; clip-path: polygon(50% 0,100% 100%,0 100%); padding-top: 10px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy b { font-size: 19px; letter-spacing: .11em; }
.brand-copy small { margin-top: 5px; font-size: 9px; font-weight: 800; letter-spacing: .22em; color: #6d6e70; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 25px; margin-left: auto; }
.desktop-nav a { font-size: 14px; font-weight: 700; padding: 31px 0; border-bottom: 3px solid transparent; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--red); border-color: var(--red); }
.nav-quote { background: var(--red); color: white; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 14px 18px; }
.mobile-menu { display: none; margin-left: auto; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; background: var(--ink); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 20px; height: 2px; background: #fff; display: block; }
.mobile-menu nav { position: absolute; right: 0; top: 50px; width: 240px; padding: 10px; background: #fff; box-shadow: 0 18px 50px #0003; }
.mobile-menu nav a { display: block; padding: 12px; font-weight: 700; border-bottom: 1px solid #eee; }

.hero { min-height: 690px; position: relative; display: grid; align-items: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 12%, #5f322e 0, transparent 28%), linear-gradient(125deg, #101112 0%, #202224 62%, #2a2220 100%); }
.hero::after { content: ""; position: absolute; right: -12%; bottom: -45%; width: 720px; height: 720px; border: 1px solid #ffffff12; border-radius: 50%; box-shadow: 0 0 0 80px #ffffff05, 0 0 0 160px #ffffff04; }
.hero-inner { position: relative; z-index: 1; padding: 86px 0 62px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-content { min-width: 0; }
.eyebrow { margin: 0 0 15px; color: var(--red); font-size: 12px; line-height: 1.4; font-weight: 900; text-transform: uppercase; letter-spacing: .2em; }
.eyebrow.light { color: #ffccd0; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(46px, 5.2vw, 72px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero-copy { max-width: 680px; margin: 28px 0 0; color: #e6e2dc; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-ghost { color: white; border: 1px solid #ffffff80; background: #ffffff08; }
.button-white { color: var(--ink); background: #fff; }
.hero-product { margin: 0; position: relative; background: #f2efe7; padding: 10px; transform: rotate(1deg); box-shadow: 0 35px 85px #0008; }
.hero-product::before { content: ""; position: absolute; width: 100%; height: 100%; top: 18px; left: 18px; border: 1px solid #ffffff33; z-index: -1; }
.hero-product img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-product figcaption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 8px 4px; color: var(--ink); font-size: 13px; }
.hero-product figcaption span { color: var(--red); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.hero-product figcaption b { text-align: right; }
.hero-proof { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 780px; gap: 1px; margin-top: 18px; background: #ffffff48; border: 1px solid #ffffff48; }
.hero-proof span { padding: 15px 18px; background: #161616b5; color: #d9d6d1; font-size: 13px; }
.hero-proof b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }

.section { padding: 100px 0; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: start; }
h2 { margin: 0; font-size: clamp(35px, 4.5vw, 58px); line-height: 1.06; letter-spacing: -.04em; }
.prose-large p { margin: 0 0 28px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 900; border-bottom: 2px solid var(--red); padding-bottom: 6px; }
.text-link span { color: var(--red); margin-left: 8px; }
.cream-section { background: var(--cream); }
.section-heading { margin-bottom: 42px; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading h2 { max-width: 720px; }
.tractor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tractor-card { background: #fff; border: 1px solid var(--line); transition: .25s ease; }
.tractor-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px #3e352216; }
.tractor-visual { height: 230px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #382d26, #a9815e); }
.tractor-visual-2 { background: linear-gradient(145deg, #242b27, #789074); }
.tractor-visual-3 { background: linear-gradient(145deg, #342628, #aa5a55); }
.tractor-visual > span { position: absolute; top: 16px; right: 16px; padding: 7px 10px; background: #0009; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.tractor-silhouette { color: var(--red); font-size: 64px; font-weight: 900; letter-spacing: -.15em; text-shadow: 0 8px 25px #0008; transform: skewX(-5deg); }
.tractor-card-body { padding: 25px; }
.card-kicker { margin: 0 0 9px !important; color: var(--red) !important; font-size: 10px !important; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.model-line { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.model-line h3 { font-size: 28px; margin: 0; }
.model-line strong { color: var(--red); }
.tractor-card-body p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 14px 0 23px; }
.tractor-card-body a { font-size: 13px; font-weight: 900; }
.tractor-card-body a span { color: var(--red); }

.package-section { background: var(--ink); color: #fff; padding: 0; }
.package-grid { width: 100%; max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; min-height: 610px; }
.package-media { background-image: linear-gradient(90deg, transparent 60%, var(--ink)), url('/images/implements.jpg'); background-size: cover; background-position: center; }
.package-copy { max-width: 620px; padding: 105px 70px 100px; align-self: center; }
.package-copy h2 { font-size: clamp(36px, 4.8vw, 62px); }
.package-copy p:not(.eyebrow) { color: #c7c6c2; font-size: 17px; line-height: 1.75; margin: 28px 0 34px; }

.center-heading { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.center-heading p:last-child { color: var(--muted); line-height: 1.7; }
.process-grid { list-style: none; margin: 55px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process-grid li { padding: 40px 38px 10px 0; border-right: 1px solid var(--line); }
.process-grid li + li { padding-left: 38px; }
.process-grid li:last-child { border-right: 0; }
.process-grid span { color: var(--red); font-weight: 900; letter-spacing: .1em; }
.process-grid h3 { font-size: 21px; margin: 28px 0 12px; }
.process-grid p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.cta-strip { padding: 68px 0; color: #fff; background: var(--red); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { font-size: clamp(32px, 4vw, 50px); }

.site-footer { color: #b8b8b8; background: #101112; padding: 72px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; padding-bottom: 58px; }
.footer-brand .brand-copy b { color: #fff; }
.footer-grid > div:first-child p { max-width: 340px; line-height: 1.7; }
.footer-grid h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 20px; }
.footer-grid div:not(:first-child) { display: flex; flex-direction: column; gap: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid #2c2d2e; color: #797b7c; font-size: 11px; }
.footer-bottom span:last-child { text-align: right; max-width: 600px; }

.page-hero { position: relative; overflow: hidden; color: #fff; padding: 100px 0 92px; background: radial-gradient(circle at 85% 20%, #5d302d 0, transparent 26%), linear-gradient(120deg, #101112, #242526 68%, #2f2422); }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -270px; border: 1px solid #ffffff15; border-radius: 50%; box-shadow: 0 0 0 70px #ffffff05, 0 0 0 140px #ffffff04; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(48px, 6.3vw, 78px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.page-hero > .wrap > p:last-child { max-width: 760px; margin: 28px 0 0; color: #d7d5d0; font-size: 18px; line-height: 1.75; }

.feature-product-grid { display: grid; gap: 90px; }
.feature-product { display: grid; grid-template-columns: .95fr 1.05fr; gap: 65px; align-items: center; }
.feature-product.reverse img { order: 2; }
.feature-product img { width: 100%; min-height: 390px; object-fit: cover; background: var(--cream); }
.feature-product h2 { font-size: clamp(38px, 4.7vw, 57px); }
.feature-product p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.8; margin: 24px 0 30px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.model-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.model-table th, .model-table td { padding: 19px 22px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.5; }
.model-table th { color: #fff; background: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.model-table tr:last-child td { border-bottom: 0; }
.model-table td:first-child strong { color: var(--red); font-size: 17px; }
.small-note { color: #777; font-size: 12px !important; line-height: 1.6; }
.three-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.three-info-grid article { padding: 40px; background: #fff; }
.three-info-grid span { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.three-info-grid h3 { margin: 26px 0 12px; font-size: 23px; }
.three-info-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.visual-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.visual-split-grid > img { width: 100%; min-height: 500px; object-fit: cover; }
.visual-split-grid h2 { font-size: clamp(39px, 5vw, 60px); }
.visual-split-grid p:not(.eyebrow):not(.small-note) { color: var(--muted); font-size: 17px; line-height: 1.8; }
.check-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 29px; font-weight: 700; font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catalog-grid article { min-height: 215px; padding: 27px; border: 1px solid var(--line); background: #fff; }
.catalog-grid span { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.catalog-grid h3 { margin: 31px 0 12px; font-size: 20px; }
.catalog-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.parts-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: start; }
.parts-layout h2 { max-width: 680px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tag-cloud span { padding: 12px 16px; border: 1px solid var(--line); background: var(--cream); font-size: 13px; font-weight: 800; }
.parts-request { padding: 38px; color: #fff; background: var(--ink); }
.parts-request h3 { margin: 0 0 26px; font-size: 24px; }
.parts-request ol { margin: 0; padding-left: 22px; }
.parts-request li { padding: 11px 0; color: #d4d4d4; line-height: 1.5; border-bottom: 1px solid #ffffff18; }
.dark-panel { color: #fff; background: var(--ink); }
.dark-panel .prose-large p { color: #c8c7c3; }

.export-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.export-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.export-steps span { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.export-steps h3 { margin: 0 0 8px; font-size: 20px; }
.export-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-layout > div:first-child > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.8; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 800; }
.faq-list p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats-row div { padding: 38px 24px; background: #fff; text-align: center; }
.stats-row strong { display: block; color: var(--red); font-size: 31px; }
.stats-row span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 65px; align-items: start; }
.inquiry-form { padding: 44px; border: 1px solid var(--line); background: var(--cream); }
.form-heading { margin-bottom: 35px; }
.form-heading h2 { font-size: 44px; }
.form-heading p:last-child { color: var(--muted); line-height: 1.7; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inquiry-form label { display: grid; gap: 9px; color: #3b3c3d; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.inquiry-form > label { margin: 20px 0; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; border: 1px solid #cbc7bd; background: #fff; color: var(--ink); font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; padding: 14px; border-radius: 0; }
.inquiry-form input, .inquiry-form select { height: 49px; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.contact-aside h2 { font-size: 39px; margin-bottom: 32px; }
.contact-card { padding: 19px 0; border-bottom: 1px solid var(--line); }
.contact-card span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.contact-card a { color: var(--red); font-size: 18px; font-weight: 800; }
.contact-card p { margin: 0; font-size: 17px; }
.response-note { margin-top: 30px; padding: 25px; color: #fff; background: var(--ink); }
.response-note ul { margin-bottom: 0; padding-left: 20px; color: #ccc; line-height: 1.8; }
.legal-copy { max-width: 800px; }
.legal-copy h2 { font-size: 32px; margin-top: 42px; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.legal-copy a { color: var(--red); font-weight: 800; }
.admin-bar .site-header { top: 32px; }
.wp-site-blocks { padding: 0; }
.page-content > *:first-child { margin-top: 0; }
.page-content .section:first-child { padding-top: 95px; }
.wp-caption, .wp-caption img { max-width: 100%; }
.alignwide { width: min(1180px, calc(100% - 40px)); max-width: 1180px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.current-menu-item > a, .current_page_item > a { color: var(--red); border-color: var(--red) !important; }
.desktop-nav .menu { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.desktop-nav .menu li { margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 13px; }
.wp-page-section { padding: 90px 0; }
.wp-page-section.cream { background: var(--cream); }
.wp-page-section.dark { color: #fff; background: var(--ink); }
.wp-page-section h2 { margin-bottom: 24px; }
.wp-page-section p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.wp-page-section.dark p { color: #c8c7c3; }
.wp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.wp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wp-card { padding: 28px; border: 1px solid var(--line); background: #fff; }
.wp-card h3 { margin: 0 0 12px; font-size: 21px; }
.wp-card p { margin: 0; font-size: 14px; }
.wp-number { display: block; margin-bottom: 25px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.wp-image-cover { width: 100%; min-height: 470px; object-fit: cover; }
.wp-model-table { width: 100%; border-collapse: collapse; background: #fff; }
.wp-model-table th, .wp-model-table td { padding: 18px 20px; border: 1px solid var(--line); text-align: left; font-size: 14px; }
.wp-model-table th { color: #fff; background: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.wp-model-table td:first-child { color: var(--red); font-weight: 900; }
.wp-check-list { list-style: none; padding: 0; }
.wp-check-list li { position: relative; padding: 10px 0 10px 28px; font-weight: 700; }
.wp-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); }
.wp-tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-tag-list span { padding: 12px 15px; border: 1px solid var(--line); background: var(--cream); font-size: 13px; font-weight: 800; }
.wp-contact-form { padding: 38px; background: var(--cream); border: 1px solid var(--line); }
.wp-contact-form .field-grid { margin-bottom: 20px; }
.wp-contact-form label { display: grid; gap: 8px; color: #404142; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.wp-contact-form input, .wp-contact-form select, .wp-contact-form textarea { width: 100%; padding: 14px; border: 1px solid #cbc7bd; background: #fff; font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; }
.wp-contact-form textarea { margin-bottom: 20px; resize: vertical; }

@media (max-width: 1000px) {
  .desktop-nav, .nav-quote { display: none; }
  .mobile-menu { display: block; }
  .tractor-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-product { max-width: 620px; }
  .package-grid { grid-template-columns: 1fr; }
  .package-media { min-height: 460px; background-image: linear-gradient(0deg, var(--ink), transparent 40%), url('/images/implements.jpg'); }
  .package-copy { padding: 0 40px 80px; margin-top: -20px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .parts-layout, .contact-grid { grid-template-columns: 1fr; }
  .faq-layout { gap: 45px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .topbar-inner span { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-row { min-height: 72px; }
  .brand-badge { width: 42px; height: 39px; }
  .brand-copy b { font-size: 16px; }
  .hero { min-height: 690px; }
  .hero-inner { padding-top: 75px; }
  .hero h1 { font-size: 48px; }
  .hero-copy { font-size: 16px; }
  .hero-proof { grid-template-columns: 1fr; max-width: 360px; margin-top: 42px; }
  .section { padding: 75px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .split-heading { align-items: start; flex-direction: column; }
  .tractor-grid { grid-template-columns: 1fr; }
  .package-media { min-height: 340px; }
  .package-copy { padding: 0 24px 65px; }
  .process-grid { grid-template-columns: 1fr; border-top: 0; }
  .process-grid li, .process-grid li + li { padding: 30px 0; border-right: 0; border-top: 1px solid var(--line); }
  .cta-inner { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; padding: 25px 0; }
  .footer-bottom span:last-child { text-align: left; }
  .page-hero { padding: 72px 0 68px; }
  .page-hero h1 { font-size: 48px; }
  .page-hero > .wrap > p:last-child { font-size: 16px; }
  .feature-product, .feature-product.reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature-product.reverse img { order: initial; }
  .feature-product img { min-height: 280px; }
  .three-info-grid { grid-template-columns: 1fr; }
  .three-info-grid article { padding: 30px; }
  .visual-split-grid { grid-template-columns: 1fr; gap: 35px; }
  .visual-split-grid > img { min-height: 330px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .export-steps { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .inquiry-form { padding: 27px 20px; }
  .form-heading h2 { font-size: 37px; }
  .wp-grid-2, .wp-grid-3 { grid-template-columns: 1fr; }
  .wp-model-table { min-width: 720px; }
  .wp-contact-form { padding: 25px 18px; }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Codex submenu hover fix 2026-07-17 */
.desktop-nav .menu > .menu-item {
  position: relative;
}

.desktop-nav .menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 1000;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.desktop-nav .menu > .menu-item:hover > .sub-menu,
.desktop-nav .menu > .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.desktop-nav .menu .sub-menu li {
  display: block;
  width: 100%;
}

.desktop-nav .menu .sub-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--ink);
  border: 0 !important;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.35;
}

.desktop-nav .menu .sub-menu a:hover,
.desktop-nav .menu .sub-menu a:focus-visible {
  color: #fff;
  background: var(--red);
}

.desktop-nav .menu > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

/* Codex strengthened hover menu repair 2026-07-17 */
.desktop-nav .menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav .menu > .menu-item {
  position: relative;
  margin: 0;
}

.desktop-nav .menu > .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav .menu .sub-menu {
  display: block !important;
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 9999;
  min-width: 230px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.desktop-nav .menu > .menu-item:hover > .sub-menu,
.desktop-nav .menu > .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.desktop-nav .menu .sub-menu li {
  display: block;
  width: 100%;
  margin: 0;
}

.desktop-nav .menu .sub-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--ink, #111827);
  border: 0 !important;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.desktop-nav .menu .sub-menu a:hover,
.desktop-nav .menu .sub-menu a:focus-visible {
  color: #fff;
  background: var(--red, #b91c1c);
}

.desktop-nav .menu > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }
}

/* Codex final hover-only menu guard 2026-07-17 */
@media (min-width: 861px) {
  .desktop-nav .menu,
  .desktop-nav .menu > li {
    overflow: visible !important;
  }

  .desktop-nav .menu > li {
    position: relative !important;
  }

  .desktop-nav .menu > li > ul.sub-menu {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    z-index: 99999 !important;
    min-width: 230px !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    list-style: none !important;
    background: #fff !important;
    border: 1px solid rgba(17, 24, 39, .12) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(0) !important;
  }

  .desktop-nav .menu > li:hover > ul.sub-menu,
  .desktop-nav .menu > li:focus-within > ul.sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .desktop-nav .menu > li > ul.sub-menu > li,
  .desktop-nav .menu > li > ul.sub-menu > li > a {
    display: block !important;
    width: 100% !important;
  }

  .desktop-nav .menu > li > ul.sub-menu a {
    padding: 12px 16px !important;
    color: var(--ink, #111827) !important;
    background: #fff !important;
    border: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  .desktop-nav .menu > li > ul.sub-menu a:hover,
  .desktop-nav .menu > li > ul.sub-menu a:focus-visible {
    color: #fff !important;
    background: var(--red, #b91c1c) !important;
  }
}
