/*
Theme Name: Newneng Export
Description: English industrial catalog for Newneng Hydraulics.
Version: 1.5.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: newneng-export
*/

:root {
    --navy: #11243b;
    --ink: #172e47;
    --steel: #34536e;
    --muted: #516478;
    --line: #dbe3ea;
    --soft: #f2f5f7;
    --accent: #bb2432;
    --accent-dark: #9c1725;
    --max: 1240px;
    --gutter: clamp(32px, 7vw, 112px);
    --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 93px; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, .wp-block-table:focus-visible {
    outline: 3px solid #3573a6;
    outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); font-weight: 740; line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.15vw, 4.65rem); letter-spacing: -.038em; }
h2 { font-size: clamp(1.8rem, 3.35vw, 2.9rem); letter-spacing: -.032em; }
h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.wrap { width: min(calc(100% - var(--gutter)), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: 6px; left: 12px; z-index: 100; padding: 10px 16px; background: #fff; transform: translateY(-145%); }
.skip-link:focus { transform: none; }
.kicker { margin-bottom: 8px; color: var(--accent-dark); font-size: .73rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.kicker:empty { display: none; }
.lead { max-width: 67ch; margin-top: 10px; color: var(--muted); }
.text-link, .back-link { color: var(--steel); font-weight: 730; }
.text-link:hover, .back-link:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }

.utility { background: var(--navy); color: #e9eff4; font-size: .74rem; }
.utility-inner { display: flex; min-height: 33px; align-items: center; gap: 22px; }
.utility-location { margin-right: auto; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility a span { margin-right: 3px; }
.language { display: flex; align-items: center; gap: 6px; padding-left: 15px; border-left: 1px solid #6c7e90; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: #fff; }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--navy); font-size: 1.16rem; font-weight: 800; letter-spacing: .07em; line-height: 1; }
.brand img { width: 43px; height: 44px; object-fit: contain; }
.brand small { display: block; margin-top: 5px; color: var(--steel); font-size: .62rem; letter-spacing: .21em; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 34px); font-size: .93rem; font-weight: 670; }
.main-nav a:not(.button):hover, .main-nav a[aria-current] { color: var(--accent-dark); }
.nav-products { display: flex; align-items: center; gap: 5px; }
.family-toggle, .menu-toggle, .catalog-filter-toggle {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
}
.family-toggle { width: 31px; height: 31px; padding: 0 0 5px; font-size: 1.15rem; line-height: 1; }
.family-toggle[aria-expanded="true"] { color: var(--accent-dark); border-color: #dea8ad; }
.family-menu { position: absolute; inset: 100% 0 auto; padding: 18px 0; border-block: 1px solid var(--line); background: #fff; box-shadow: 0 20px 35px #10243b1c; }
.family-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 28px; }
.family-links a { padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu-toggle { display: none; padding: 6px 12px; font-weight: 700; }
.button {
    display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 18px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent);
    color: #fff; font-size: .93rem; font-weight: 720; line-height: 1.25; text-align: center; cursor: pointer;
    transition: background .16s, border-color .16s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.outline { border-color: #a5b4c3; background: transparent; color: var(--navy); }
.button.outline:hover { border-color: var(--steel); background: #e9eff4; }
.nav-quote { min-height: 40px; padding: 8px 14px; }

.hero { background: var(--navy); color: #fff; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 490px; }
.hero-copy { align-self: center; padding: 62px clamp(24px, 4vw, 65px) 62px 0; }
.hero h1 { color: #fff; text-wrap: pretty; font-size: clamp(2.8rem, 5.1vw, 4.6rem); }
.hero-description { margin-top: 19px; color: #d8e5ef; font-size: clamp(.97rem, 1.6vw, 1.13rem); }
.hero-actions, .product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero .button.outline { border-color: #8d9dae; color: #fff; }
.hero .button.outline:hover { background: #ffffff17; }
.hero-art { align-self: center; padding-block: 36px; }
.hero-art img { width: 100%; min-height: 380px; max-height: 475px; border-radius: var(--radius); object-fit: cover; object-position: 72% center; }
.spec-band { border-bottom: 1px solid var(--line); background: var(--soft); }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec-grid div { padding: 20px clamp(12px, 2vw, 27px); border-left: 1px solid var(--line); }
.spec-grid div:first-child { border-left: 0; padding-left: 0; }
.spec-grid strong { display: block; color: var(--navy); font-size: clamp(1.34rem, 2.3vw, 1.93rem); line-height: 1.15; letter-spacing: -.035em; }
.spec-grid span { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; line-height: 1.4; }

.section { padding: clamp(42px, 6vw, 80px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 820px; margin: 0 0 24px; }
.section-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-toolbar .section-head { margin: 0; }
.section-toolbar > a { flex: none; padding-bottom: 2px; }
.product-grid, .insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.product-card, .insight-card, .industry-card {
    display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
    border-radius: var(--radius); background: #fff;
}
.product-card:hover, .insight-card:hover { border-color: #98aabc; box-shadow: 0 10px 25px #10243b0c; }
.product-photo { display: grid; place-items: center; min-width: 0; aspect-ratio: 1.64; padding: 13px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.product-photo img, .product-photo .framed-product-photo { width: auto; height: auto; max-width: 100%; max-height: min(15vw, 195px); object-fit: contain; }
.product-copy, .insight-card { padding: clamp(16px, 2vw, 24px); }
.product-copy { display: flex; flex: 1; flex-direction: column; }
.product-copy h3 { font-size: clamp(1.05rem, 1.65vw, 1.28rem); }
.product-copy h3 a:hover, .insight-card h3 a:hover { color: var(--accent-dark); }
.product-copy p, .insight-card > p:not(.kicker), .industry-copy p { margin: 8px 0 15px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.card-button, .insight-card .text-link { align-self: flex-start; margin-top: auto; padding-top: 7px; font-size: .9rem; }
.product-card-no-photo .product-copy { justify-content: center; }
.product-card-no-photo .card-button { margin-top: 0; }
.product-copy .photo-note { margin: 0 0 4px; font-size: .82rem; }
.industry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.industry-card img { width: 100%; aspect-ratio: 840 / 330; object-fit: cover; }
.industry-copy { padding: 19px 22px; }
.industry-copy p { margin-bottom: 0; }
.insight-card { padding-bottom: 23px; }

.page-top, .product-intro { padding: clamp(30px, 5vw, 65px) 0; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-top h1 { max-width: 910px; font-size: clamp(2.2rem, 4.6vw, 4rem); }
.page-top p { max-width: 65ch; margin-top: 12px; color: var(--muted); font-size: 1.04rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 15px; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.catalog-layout { display: grid; grid-template-columns: minmax(187px, 226px) minmax(0, 1fr); align-items: start; gap: clamp(21px, 3vw, 44px); padding-block: 33px 64px; }
.catalog-sidebar { position: sticky; top: 88px; }
.catalog-filter { display: grid; gap: 1px; max-height: calc(100dvh - 112px); overflow: auto; overscroll-behavior: contain; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.catalog-filter h2 { padding: 8px 9px; font-size: .93rem; letter-spacing: 0; }
.catalog-filter a { display: block; border-radius: 6px; padding: 6px 9px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.catalog-filter [aria-current="page"], .catalog-filter a:hover { background: #eaf0f5; color: var(--navy); }
.catalog-filter [aria-current="page"] { font-weight: 740; }
.catalog-filter-toggle { display: none; }
.result-count { margin-bottom: 10px; color: var(--muted); font-size: .9rem; }
.catalog-results .product-photo img, .catalog-results .product-photo .framed-product-photo { max-height: 145px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 25px; }
.pagination .page-numbers { padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; }
.pagination .current { border-color: var(--navy); background: var(--navy); color: #fff; }

.product-intro { padding-top: 25px; }
.product-showcase { display: grid; align-items: center; gap: clamp(20px, 5vw, 66px); }
.product-showcase.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
.product-showcase h1 { max-width: 790px; font-size: clamp(2.17rem, 4.15vw, 4.1rem); }
.product-deck { max-width: 60ch; margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.17rem); }
.product-media { min-width: 0; margin: 0; }
.product-media .photo-note { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.related-reading { margin-top: 25px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.related-reading h2 { margin: 0 0 6px; font-size: 1.25rem; }
.related-reading ul { margin: 0; padding-left: 1.2em; }
.related-reading a { text-decoration: underline; text-underline-offset: .15em; }
.detail-photo { display: grid; min-height: 270px; place-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-photo img, .detail-photo .framed-product-photo { max-width: 100%; max-height: 350px; object-fit: contain; }
.framed-product-photo { display: block; width: auto; height: auto; max-width: 100%; background: #fff; }
.product-information { padding-bottom: 64px; }
.product-jumps { display: flex; flex-wrap: wrap; gap: 25px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--steel); font-size: .91rem; font-weight: 690; }
.product-jumps a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.product-overview { display: grid; grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); gap: 22px 45px; padding: 39px 0; }
.product-overview .prose { max-width: 76ch; }
.product-overview > h2, .specification-sheet > h2, .product-photos > h2 { font-size: clamp(1.64rem, 2.65vw, 2.4rem); }
.specification-sheet, .product-photos { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.specification-sheet > h2, .product-photos > h2 { margin-bottom: 17px; }
.product-photos, .product-enquiry { margin-top: 25px; }
.product-enquiry { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); }
.product-enquiry h2 { margin-bottom: 5px; font-size: 1.36rem; }
.product-enquiry p { color: var(--muted); }
.product-enquiry .button { flex: none; }
.detail-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.detail-gallery .detail-photo { min-height: 130px; }
.product-photo-detail { max-width: 480px; margin: 15px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.product-photo-detail .framed-product-photo { max-height: 280px; margin-inline: auto; }
.product-photo-detail figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.workshop-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.workshop-photos figure { width: 100%; }
.workshop-photos img { display: block; width: 100%; height: 245px; object-fit: contain; }

.prose { min-width: 0; }
.prose p { max-width: 76ch; margin-bottom: 14px; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-bottom: 12px; font-size: clamp(1.24rem, 2.15vw, 1.65rem); }
.prose h2:not(:first-child) { margin-top: 23px; }
.prose a:not(.button), .contact-info a, .form-note a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; margin: 0; border-collapse: collapse; }
.prose .wp-block-table { max-width: 100%; margin: 0 0 18px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.prose th, .prose td { padding: 10px 13px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .91rem; line-height: 1.45; }
.prose th { background: #e2eaf1; color: var(--navy); font-weight: 720; }
.prose tr:last-child td { border-bottom: 0; }
.prose tr:nth-child(even) td { background: #f5f8fa; }
.specification-sheet:not(:has(> h2)) .technical-tables > h2:first-child { font-size: clamp(1.64rem, 2.65vw, 2.4rem); }
.technical-tables .wp-block-table table:not(.has-fixed-layout) td { min-width: 80px; }
.technical-tables .wp-block-table .has-fixed-layout td { overflow-wrap: anywhere; }
.reading { max-width: 810px; }
.longform-card { padding: clamp(21px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); }
.longform-card article + article { padding-top: 22px; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(18px, 5vw, 60px); }
.company-top .button { margin-top: 16px; }
.split-media { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.split-media img { width: 100%; max-height: 290px; object-fit: cover; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: 21px; }
.contact-info, .quote-form { padding: clamp(19px, 3.5vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-info { background: var(--soft); }
.contact-info h2, .quote-form h2 { margin-bottom: 15px; font-size: 1.53rem; }
.contact-info p { margin-top: 13px; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.quote-form label { display: block; min-width: 0; font-size: .93rem; font-weight: 680; }
.quote-form > label { margin-top: 13px; }
.quote-form label span { color: var(--accent-dark); }
.quote-form input:not([type="hidden"]), .quote-form select, .quote-form textarea {
    display: block; width: 100%; min-height: 43px; margin-top: 4px; padding: 8px 10px;
    border: 1px solid #aab9c8; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 400;
}
.quote-form textarea { resize: vertical; }
.form-note { margin: 11px 0 17px; color: var(--muted); font-size: .86rem; }
.notice { margin-bottom: 13px; padding: 9px 12px; border-left: 3px solid #862029; background: #fae9eb; color: #862029; }
.notice.success { border-color: #18543c; background: #e4f3eb; color: #18543c; }

.quote-strip { padding: 33px 0; border-top: 1px solid var(--line); background: var(--soft); }
.quote-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.quote-inner .kicker { display: none; }
.quote-inner h2 { font-size: clamp(1.56rem, 2.6vw, 2.28rem); }
.quote-inner p:not(.kicker) { margin-top: 7px; color: var(--muted); }
.quote-inner .button { flex: none; }
.site-footer { padding: 36px 0 17px; background: var(--navy); color: #d9e5ef; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .7fr 1fr; gap: 20px; margin-bottom: 23px; font-size: .91rem; }
.footer-grid h2 { margin-bottom: 9px; color: #fff; font-size: 1rem; letter-spacing: 0; }
.footer-grid p { max-width: 34ch; margin-top: 7px; }
.footer-grid a:not(.footer-brand) { display: table; margin: 3px 0; }
.footer-grid a:hover, .footer-base a:hover { color: #fff; text-decoration: underline; }
.footer-brand { color: #fff; font-size: 1.07rem; font-weight: 790; letter-spacing: .07em; }
.footer-brand span { color: #b5cadc; }
.footer-base { display: flex; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid #486075; font-size: .8rem; }

@media (max-width: 1060px) {
    .catalog-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-art img { min-height: 300px; }
    .hero-inner { min-height: 405px; }
}
@media (max-width: 840px) {
    .utility-inner { justify-content: space-between; gap: 8px; }
    .utility-location { display: none; }
    .header-inner { min-height: 62px; }
    .admin-bar .site-header { top: 0; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; max-height: 75dvh; overflow: auto; padding: 8px max(16px, calc(var(--gutter) / 2)) 14px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 12px 20px #10243b13; }
    .main-nav.is-open { display: flex; }
    .main-nav > a:not(.button), .nav-products > a { padding: 8px 4px; }
    .main-nav > a:not(.button), .nav-products { border-bottom: 1px solid var(--line); }
    .nav-products { flex-wrap: wrap; justify-content: space-between; }
    .family-menu { position: static; width: 100%; padding: 0 8px 8px; border: 0; box-shadow: none; }
    .family-links { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
    .family-links a { padding: 7px 0; }
    .nav-quote { margin-top: 10px; }
    .product-grid, .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-photo img, .product-photo .framed-product-photo { max-height: 132px; }
}
@media (max-width: 760px) {
    .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 18px; }
    .catalog-sidebar { position: static; }
    .catalog-filter { max-height: 320px; margin-top: 5px; }
    .catalog-filter h2 { display: none; }
    .catalog-filter-toggle { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: space-between; padding: 8px 12px; font-weight: 720; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-copy { padding: 35px 0 20px; }
    .hero h1 { max-width: 700px; }
    .hero-art { padding: 0 0 22px; }
    .hero-art img { min-height: 0; height: clamp(170px, 43vw, 310px); }
    .product-showcase.has-photo, .product-overview { grid-template-columns: minmax(0, 1fr); }
    .product-overview { padding: 26px 0; gap: 10px; }
    .detail-photo { min-height: 160px; }
    .detail-photo img, .detail-photo .framed-product-photo { max-height: 245px; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
    .utility { font-size: .68rem; }
    .utility a span { display: none; }
    .language { padding-left: 5px; }
    .brand { font-size: 1rem; }
    .brand img { width: 37px; height: 38px; }
    .hero h1 { font-size: clamp(2.45rem, 10vw, 3.3rem); }
    .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-grid div { padding: 11px 10px; }
    .spec-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
    .spec-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .section-toolbar, .quote-inner, .product-enquiry { flex-direction: column; align-items: flex-start; gap: 12px; }
    .section-toolbar { margin-bottom: 17px; }
    .product-grid, .insight-grid, .industry-grid, .split, .fields { grid-template-columns: minmax(0, 1fr); }
    .catalog-results .product-grid { grid-template-columns: minmax(0, 1fr); }
    .product-photo { aspect-ratio: 2 / 1; }
    .product-photo img, .product-photo .framed-product-photo { max-height: 155px; }
    .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-base { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* Keep the complete verified photograph visible at every viewport. */
.hero-real-photo { margin: 0; }
.hero-real-photo > a { display: block; }
.hero-real-photo img { display: block; height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; object-fit: contain; object-position: center; background: #fff; }
.hero-real-photo figcaption { margin-top: 10px; color: #d8e5ef; font-size: .82rem; line-height: 1.5; }
.hero-real-photo figcaption a { text-underline-offset: 3px; }

.machining-detail-panel { max-width: 760px; margin-inline: auto; padding: 0; border: 0; background: transparent; }
.machining-detail-panel img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }

.product-photos.has-machining-panel { padding-inline: 0; }
.has-machining-panel > h2, .machining-detail-panel > figcaption { padding-inline: clamp(20px, 4vw, 38px); }
