/*
Theme Name: JAFU Local Candidate
Theme URI: http://127.0.0.1:9419/
Author: JAFU project team
Description: Private local JAFU WordPress candidate following approved V3 layout.
Version: 0.1.0
Requires at least: 6.7
Text Domain: jafu-local
*/
:root {
  color-scheme: light;
  --navy: #102844;
  --deep: #10253a;
  --green: #075235;
  --green-soft: #e7f0ec;
  --ink: #172836;
  --muted: #65727a;
  --line: #dbe4e6;
  --wash: #f4f7f8;
  --white: #fff;
  --display: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Segoe UI", "Noto Sans CJK SC", Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 13px/1.45 var(--body); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #80bc91; outline-offset: 3px; }
.container { width: min(calc(100% - 60px), 1320px); margin-inline: auto; }
.kicker { margin: 0 0 5px; color: var(--green); font: 700 clamp(8px, .82vw, 12px)/1.2 var(--mono); letter-spacing: .19em; text-transform: uppercase; }
.section-heading { margin: 0; color: var(--ink); font: 750 clamp(21px, 2.35vw, 34px)/1.06 var(--display); letter-spacing: -.035em; }
.section-note { margin: 4px 0 0; color: var(--muted); font-size: clamp(9px, .94vw, 13px); }
.site-header { height: clamp(46px, 4.89vw, 70px); background: #fff; border-bottom: 1px solid #e9eeee; }
.header-row { height: 100%; display: flex; align-items: center; gap: clamp(15px, 2.3vw, 34px); }
.brand { display: flex; align-items: center; gap: 6px; min-width: fit-content; color: var(--navy); }
.brand strong { font: 900 clamp(30px, 3.45vw, 50px)/.78 var(--display); letter-spacing: -.095em; }
.brand span { font: 750 clamp(8px, 1vw, 15px)/1.04 var(--body); white-space: nowrap; }
.brand small { display: block; margin-top: 2px; font: 500 clamp(5px, .5vw, 8px)/1 var(--body); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.75vw, 25px); margin-left: auto; }
.site-nav a { padding-block: 8px; color: #253a44; font: 600 clamp(8px, .84vw, 12px)/1 var(--body); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--green); }
.header-quote, .button-green { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: clamp(25px, 2.8vw, 41px); padding: 0 clamp(12px, 1.4vw, 20px); border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: #fff; font: 700 clamp(8px, .83vw, 12px)/1 var(--body); white-space: nowrap; }
.header-quote:hover, .button-green:hover { background: #063e2a; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; }
.menu-toggle span { display: block; width: 19px; height: 2px; margin: 5px auto; background: var(--navy); }
.hero { position: relative; height: clamp(310px, 32.94vw, 475px); overflow: hidden; background: #364d54; color: #fff; }
.hero img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 49%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,22,27,.82) 0%, rgba(4,24,29,.54) 42%, rgba(4,24,29,.03) 72%); }
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-eyebrow { margin-bottom: 9px; font: 700 clamp(9px, .9vw, 13px)/1.2 var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { max-width: 690px; margin: 0; font: 800 clamp(40px, 4.55vw, 66px)/.97 var(--display); letter-spacing: -.04em; }
.hero p { max-width: 500px; margin: 11px 0 16px; color: #f1f4f1; font-size: clamp(12px, 1.23vw, 18px); }
.hero-actions { display: flex; gap: 10px; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: clamp(31px, 3.45vw, 49px); padding: 0 clamp(16px, 2vw, 30px); border: 1px solid #fff; border-radius: 3px; font: 700 clamp(10px, 1vw, 15px)/1 var(--body); }
.hero-actions a:first-child { border-color: var(--green); background: var(--green); }
.hero-actions a:hover { filter: brightness(.9); }
.hero-source { position: absolute; z-index: 2; right: 12px; bottom: 8px; padding: 3px 6px; background: rgba(5,27,28,.74); color: #e3ede8; font: 9px/1.2 var(--mono); }
.advantages { height: clamp(64px, 6.8vw, 98px); background: #f5f8f8; border-bottom: 1px solid var(--line); }
.adv-grid { height: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.advantage { display: flex; align-items: center; gap: clamp(8px, 1.1vw, 17px); min-width: 0; padding: 0 clamp(7px, 1vw, 16px); }
.advantage + .advantage { border-left: 1px solid #dfe8e7; }
.adv-icon { flex: 0 0 auto; width: clamp(28px, 3vw, 44px); height: clamp(28px, 3vw, 44px); display: grid; place-items: center; color: var(--green); }
.adv-icon svg { width: 75%; height: 75%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.advantage strong { display: block; font: 750 clamp(9px, 1.02vw, 15px)/1.1 var(--display); white-space: nowrap; }
.advantage span { display: block; margin-top: 3px; color: var(--muted); font: 500 clamp(7px, .76vw, 11px)/1.25 var(--body); }
.products { min-height: clamp(376px, 39.96vw, 575px); padding-top: clamp(15px, 1.8vw, 26px); background: #fff; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(9px, 1.1vw, 16px); }
.section-side { color: var(--green); font-size: clamp(8px, .86vw, 12px); white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.product-card { position: relative; height: clamp(255px, 27.1vw, 390px); overflow: hidden; background: #fff; border: 1px solid #e5ebeb; box-shadow: 0 3px 10px rgba(23,48,56,.045); }
.product-card img { height: 56%; object-fit: contain; background: #f7f9f8; }
.product-body { padding: clamp(8px, 1.1vw, 16px); }
.product-body small { display: block; color: var(--green); font: 650 clamp(7px, .72vw, 10px)/1.2 var(--mono); text-transform: uppercase; }
.product-body h3 { margin: 5px 0 2px; font: 800 clamp(17px, 2vw, 29px)/1 var(--display); color: var(--navy); }
.product-body p { margin: 0; color: #51636d; font-size: clamp(9px, .95vw, 14px); }
.detail-toggle { display: inline-flex; align-items: center; min-height: 38px; margin-top: 2px; padding: 0; border: 0; background: transparent; color: var(--navy); font: 700 clamp(9px, .9vw, 13px)/1 var(--body); }
.detail-toggle::after { content: " ↗"; margin-left: 5px; }
.product-footnote { margin: 5px 0 0; color: var(--muted); font: 9px/1.3 var(--mono); }
.applications { min-height: clamp(247px, 26.25vw, 378px); padding-top: clamp(14px, 1.5vw, 22px); background: var(--wash); }
.application-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.application-card { overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(23,48,56,.045); }
.application-card img { height: clamp(119px, 12.65vw, 182px); object-fit: cover; }
.application-card .caption { min-height: clamp(40px, 4.3vw, 62px); padding: 6px 8px; }
.application-card strong { display: block; color: var(--ink); font: 750 clamp(9px, 1.02vw, 15px)/1.1 var(--display); }
.application-card span { display: block; margin-top: 4px; color: var(--muted); font-size: clamp(7px, .75vw, 11px); }
.about { height: clamp(222px, 23.6vw, 340px); display: grid; grid-template-columns: 49% 51%; background: #fff; }
.about-image { position: relative; overflow: hidden; }
.about-image img { height: 100%; object-fit: cover; object-position: center 41%; }
.about-image small { position: absolute; bottom: 7px; left: 8px; padding: 3px 5px; background: rgba(5,30,33,.78); color: #fff; font: 8px/1.1 var(--mono); }
.about-copy { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(10px, 1.4vw, 20px); align-items: center; padding: clamp(14px, 2vw, 29px); }
.about-copy h2 { margin: 0 0 7px; color: var(--ink); font: 760 clamp(19px, 2.35vw, 34px)/1.02 var(--display); letter-spacing: -.03em; }
.about-copy p { margin: 0; color: #4d5e65; font-size: clamp(9px, .95vw, 14px); }
.about-copy a { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; margin-top: 10px; padding-inline: 12px; border-radius: 2px; background: var(--green); color: #fff; font-weight: 700; font-size: clamp(8px, .85vw, 12px); }
.about-points { padding-left: 10px; border-left: 1px solid var(--line); }
.about-points span { display: block; padding-block: 7px; font-size: clamp(8px, .84vw, 12px); }
.about-points b { color: var(--green); margin-right: 7px; }
.manufacturing { min-height: clamp(205px, 21.78vw, 314px); padding-top: clamp(14px, 1.55vw, 22px); background: var(--wash); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.gallery-card img { height: clamp(104px, 11.05vw, 159px); object-fit: cover; background: #eef3f3; }
.gallery-card strong { display: block; margin-top: 5px; color: var(--ink); font: 750 clamp(9px, 1vw, 14px)/1.1 var(--display); }
.gallery-card span { display: block; margin-top: 2px; color: var(--muted); font-size: clamp(7px, .73vw, 11px); }
.gallery-note { margin: 7px 0 0; color: var(--muted); font: 9px/1.3 var(--mono); }
.dealer-cta { position: relative; height: clamp(72px, 7.65vw, 110px); overflow: hidden; color: #fff; background: #17472f; }
.dealer-cta img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 52%; filter: saturate(.75); }
.dealer-cta::after { content: ""; position: absolute; inset: 0; background: rgba(3,45,27,.76); }
.dealer-inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dealer-inner h2 { margin: 0 0 3px; font: 750 clamp(17px, 2vw, 29px)/1.1 var(--display); }
.dealer-inner p { margin: 0; font-size: clamp(9px, .95vw, 14px); }
.dealer-inner a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 108px; padding: 0 12px; border-radius: 2px; background: #fff; color: var(--navy); font-weight: 700; white-space: nowrap; }
.dealer-source { position: absolute; right: 10px; bottom: 3px; z-index: 1; color: #d5e3d9; font: 7px/1 var(--mono); }
.site-footer { min-height: clamp(130px, 13.82vw, 199px); padding-top: clamp(16px, 2vw, 28px); background: var(--deep); color: #e6eeef; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.3fr .8fr; gap: clamp(17px, 2vw, 30px); }
.footer-brand { color: #fff; }
.footer-brand strong { font-size: clamp(27px, 3.1vw, 45px); }
.footer-col h3 { margin: 0 0 8px; color: #fff; font: 750 clamp(9px, .95vw, 14px)/1 var(--display); }
.footer-col a, .footer-col span { display: block; margin: 4px 0; color: #d6e2e4; font-size: clamp(8px, .83vw, 12px); }
.footer-col a:hover { text-decoration: underline; }
.footer-end { margin-top: clamp(12px, 1.6vw, 23px); padding-top: 7px; border-top: 1px solid #3e5967; color: #a8b9bd; font: 8px/1.2 var(--mono); }
.quote-page { min-height: calc(100vh - 46px); padding: 55px 0; background: var(--wash); }
.quote-panel { max-width: 760px; padding: 35px; background: #fff; border: 1px solid var(--line); }
.quote-panel h1 { margin: 0 0 10px; font: 750 38px/1 var(--display); }
.quote-panel p { color: var(--muted); }
.preview-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.preview-form label { display: block; font-weight: 650; }
.preview-form label span { display: block; margin-bottom: 6px; }
.preview-form input, .preview-form select, .preview-form textarea { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #9eafb2; background: #fff; }
.preview-form textarea { min-height: 110px; resize: vertical; }
.preview-form .wide { grid-column: 1 / -1; }
.preview-form button { justify-self: start; min-height: 44px; padding-inline: 18px; border: 0; background: var(--green); color: #fff; font-weight: 700; }
.form-status { margin: 0; color: var(--green); font-weight: 700; }
@media (max-width: 800px) {
  body { font-size: 15px; }
  .container { width: min(calc(100% - 28px), 720px); }
  .site-header { height: 64px; }
  .brand strong { font-size: 32px; }
  .brand span { font-size: 10px; }
  .brand small { font-size: 6px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; z-index: 10; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px 20px; background: #fff; box-shadow: 0 12px 20px rgba(0,0,0,.14); }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 42px; padding: 13px 0; font-size: 14px; }
  .header-quote { display: none; }
  .hero { height: 455px; }
  .hero img { object-position: 47% 49%; }
  .hero::after { background: linear-gradient(90deg, rgba(3,22,27,.82), rgba(3,22,27,.28)); }
  .hero h1 { font-size: 45px; }
  .hero p { font-size: 15px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-source { font-size: 8px; }
  .advantages { height: auto; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .advantage { min-height: 74px; padding: 9px 8px; }
  .advantage:nth-child(3) { border-left: 0; }
  .advantage:nth-child(n+3) { border-top: 1px solid #dfe8e7; }
  .advantage strong { font-size: 12px; }
  .advantage span { font-size: 9px; white-space: normal; }
  .products, .applications, .manufacturing { min-height: 0; padding: 38px 0; }
  .section-top { align-items: start; }
  .section-heading { font-size: 27px; }
  .section-note, .section-side { font-size: 10px; }
  .section-side { max-width: 120px; white-space: normal; text-align: right; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { height: 285px; }
  .product-card img { height: 54%; }
  .product-body { padding: 9px; }
  .product-body h3 { font-size: 20px; }
  .product-body p { font-size: 10px; }
  .product-detail { padding: 12px; }
  .product-detail h3 { font-size: 20px; }
  .product-detail p { font-size: 11px; }
  .product-detail a { font-size: 10px; }
  .application-grid, .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .application-card img { height: 118px; }
  .application-card .caption { min-height: 70px; }
  .application-card strong { font-size: 12px; }
  .application-card span { font-size: 9px; }
  .about { height: auto; display: block; }
  .about-image { height: 260px; }
  .about-copy { min-height: 260px; padding: 25px 16px; }
  .about-copy h2 { font-size: 25px; }
  .about-copy p, .about-points span { font-size: 11px; }
  .gallery-card img { height: 112px; }
  .gallery-card strong { font-size: 12px; }
  .gallery-card span { font-size: 9px; }
  .dealer-cta { height: 150px; }
  .dealer-inner h2 { font-size: 22px; }
  .dealer-inner p { max-width: 220px; font-size: 11px; }
  .dealer-inner a { min-width: 104px; }
  .site-footer { min-height: 0; padding: 30px 0 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-col h3 { font-size: 13px; }
  .footer-col a, .footer-col span { font-size: 10px; }
  .footer-end { margin-top: 25px; font-size: 8px; }
  .quote-page { padding: 25px 0; }
  .quote-panel { padding: 22px; }
  .quote-panel h1 { font-size: 30px; }
}
@media (max-width: 410px) {
  .hero h1 { font-size: 41px; }
  .hero-actions a { padding-inline: 12px; font-size: 11px; }
  .product-detail p { font-size: 10px; }
  .product-grid { gap: 8px; }
  .product-card { height: 280px; }
  .preview-form { grid-template-columns: 1fr; }
  .preview-form .wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* WordPress interior pages use the same visual language as the V3 homepage. */
.inner-page { min-height: 68vh; padding: clamp(42px, 6vw, 86px) 0 80px; background: #f4f7f8; }
.inner-wrap { max-width: 1080px; padding: clamp(24px, 3vw, 44px); background: #fff; border: 1px solid var(--line); }
.inner-title { margin-bottom: 24px; font-size: clamp(32px, 4vw, 52px); }
.editor-content { color: #394b53; font-size: 16px; line-height: 1.7; }
.editor-content h2 { margin: 36px 0 12px; color: var(--navy); font: 750 28px/1.15 var(--display); }
.editor-content h3 { margin: 25px 0 8px; color: var(--navy); font: 750 21px/1.2 var(--display); }
.editor-content p { max-width: 78ch; }
.editor-content a { color: var(--green); text-decoration: underline; }
.editor-content .wp-block-columns { gap: 20px; }
.editor-content .wp-block-column { padding: 18px; background: #f4f7f8; border: 1px solid var(--line); }
.editor-content figure { margin-inline: 0; }
.editor-content figure img { height: auto; }
.editor-content figcaption { color: var(--muted); font-size: 12px; }
.private-hold { padding: 14px 18px; border-left: 3px solid var(--green); background: var(--green-soft); color: #234537; font-size: 14px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.catalog-card { border: 1px solid var(--line); background: #fff; }
.catalog-card img { height: 210px; object-fit: contain; background: #f7f9f8; }
.catalog-card div { padding: 14px; }
.catalog-card small { color: var(--green); font: 700 11px var(--mono); }
.catalog-card h2 { margin: 5px 0; font: 750 22px/1 var(--display); }
.catalog-card p { min-height: 42px; margin: 4px 0 12px; color: var(--muted); }
.catalog-card a { color: var(--green); font-weight: 700; }
.news-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item h2 { margin: 0; color: var(--navy); }
.rfq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 22px 0; }
.rfq-form label { display: grid; gap: 5px; font-weight: 650; }
.rfq-form input, .rfq-form select, .rfq-form textarea { width: 100%; padding: 11px; border: 1px solid #9eafb2; background: #fff; }
.rfq-form .wide { grid-column: 1 / -1; }
.rfq-form button { justify-self: start; padding: 12px 20px; border: 0; background: var(--green); color: #fff; font-weight: 700; }
.rfq-status { padding: 14px; background: var(--green-soft); color: var(--green); font-weight: 700; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 28px; }
.product-detail-layout img { max-height: 460px; object-fit: contain; background: #f7f9f8; }
.product-detail-layout small { display: block; margin-top: 7px; color: var(--muted); }
.product-detail-layout .editor-content a.button-green { color: #fff; }
@media (max-width: 800px) { .catalog-grid { grid-template-columns: 1fr 1fr; } .catalog-card img { height: 155px; } .editor-content .wp-block-columns { display: block; } }
@media (max-width: 480px) { .catalog-grid, .rfq-form, .product-detail-layout { grid-template-columns: 1fr; } .rfq-form .wide { grid-column: auto; } }

/* Incremental homepage: permanent detail links, image zoom and bounded company photography. */
.hero img { object-position:center 12%; }
.scene-caption { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.application-card .caption { padding:10px; }
.applications { padding-bottom:28px; }
.product-card { height:auto; min-height:clamp(255px,27.1vw,390px); display:flex; flex-direction:column; }
.product-image-link { display:block; height:clamp(143px,15.2vw,219px); overflow:hidden; background:#f7f9f8; }
.product-image-link img { width:100%; height:100%; object-fit:contain; }
.product-visual { display:grid; place-items:center; position:relative; width:100%; height:100%; transition:transform .35s ease; }
.product-card:focus-within .product-visual { transform:scale(1.055); }
@media (hover:hover) and (pointer:fine) { .product-card:hover .product-visual { transform:scale(1.055); } }
.product-body { flex:1; display:flex; flex-direction:column; }
.product-body .detail-toggle { margin-top:auto; padding-top:8px; min-height:44px; }
.about { align-items:stretch; }
.about-image { min-width:0; min-height:0; height:100%; }
.about-image img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:cover; }
.about-copy { min-width:0; }
.about-copy > div { min-width:0; }
.application-product { display:inline-block; min-height:32px; padding-top:7px; color:var(--green); font-weight:700; }
.manufacturing { padding-bottom:24px; }
@media (max-width:800px) {
  .hero img { object-position:25% top; }
  .product-card { min-height:280px; }
  .product-image-link { height:160px; }
  .product-body p { font-size:12px; }
  .about { height:auto; }
  .about-image { height:260px; }
  .about-copy { min-height:220px; }
  .dealer-cta { height:auto; min-height:180px; padding:24px 0; }
  .dealer-inner { flex-direction:column; align-items:flex-start; justify-content:center; gap:14px; }
  .dealer-inner > div { width:100%; }
  .dealer-inner p { max-width:none; }
  .dealer-inner a { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) { .product-card:hover .product-visual,.product-card:focus-within .product-visual { transform:none; } }

/* Master V1 R2: one maintained fidelity block; no parallel override sheet. */
.home { --surface-radius-large:20px; --surface-radius-card:16px; --surface-radius-button:12px; --surface-line:#dce5e2; --surface-shadow:0 3px 12px rgba(16,40,68,.045); --surface-shadow-hover:0 5px 18px rgba(16,40,68,.08); }
.home .header-quote,.home .hero-actions a,.home .product-body .detail-toggle,.home .about-copy a,.home .dealer-inner a { border-radius:var(--surface-radius-button); }
.home,.site-header,.site-footer { --display:Arial,"Segoe UI",sans-serif; --body:Arial,"Segoe UI",sans-serif; --mono:Arial,"Segoe UI",sans-serif; font-family:var(--body); }
.home .hero h1,.home .section-heading,.home .product-body h3,.home .about-copy h2,.home .dealer-inner h2 { font-weight:700; letter-spacing:-.025em; }
.brand-logo { display:block; width:100%; height:100%; object-fit:contain; }
@media (min-width:901px) {
  .site-header .header-row { width:min(calc(100% - 100px),1320px); display:grid; grid-template-columns:clamp(202px,21.47vw,310px) minmax(0,1fr) clamp(92px,9.78vw,142px); gap:clamp(16px,1.7vw,25px); }
  .site-header .brand { width:100%; min-width:0; height:clamp(39px,4.14vw,60px); }
  .site-header .site-nav { margin:0; padding-left:clamp(64px,6.8vw,98px); justify-content:flex-start; gap:clamp(17px,2.05vw,30px); }
  .site-header .site-nav a { font-size:clamp(9px,.96vw,14px); }
  .site-header .header-quote { min-height:clamp(26px,2.76vw,40px); padding-inline:8px; font-size:clamp(8px,.85vw,12px); }
}
.home .hero-content { width:min(calc(100% - 98px),1320px); }
.home .hero h1 { font-size:clamp(39px,4.2vw,61px); line-height:1.02; }
.home .hero p { max-width:clamp(430px,45.7vw,658px); font-size:clamp(13px,1.32vw,19px); }
.home .hero img { object-position:center 6%; }
.home .hero::after { background:linear-gradient(90deg,rgba(3,22,27,.60),rgba(4,24,29,.25) 42%,rgba(4,24,29,0) 74%); }
.home .advantage .adv-icon { color:var(--green); width:clamp(32px,3.4vw,49px); height:clamp(32px,3.4vw,49px); }
.home .adv-icon svg { width:85%; height:85%; stroke-width:2.2; }
.home .advantage strong { font-size:clamp(10.5px,1.12vw,16px); }
.home .advantage div > span { font-size:clamp(8.5px,.9vw,13px); }
.home .products { min-height:clamp(369px,39.21vw,565px); padding:clamp(18px,1.91vw,28px) 0 clamp(17px,1.81vw,26px); }
.home .section-top { margin-inline:20px; margin-bottom:10px; }
.home .section-heading { font-size:clamp(24px,2.55vw,37px); line-height:1.1; }
.home .kicker { font-size:clamp(8.5px,.9vw,13px); }
.home .section-note { font-size:clamp(10px,1.06vw,15px); }
.home .section-side { display:inline-flex; align-items:center; gap:10px; font-size:clamp(10px,1.06vw,15px); padding-bottom:4px; }
.home .product-grid { gap:clamp(10px,1.12vw,16px); }
.home .product-card { min-height:clamp(260px,27.63vw,398px); overflow:visible; border-radius:18px; box-shadow:0 5px 18px rgba(16,40,68,.06); border-color:var(--surface-line); transition:transform .18s ease,box-shadow .18s ease; }
.home .product-image-link { position:relative; height:clamp(146px,15.52vw,224px); margin:6px 6px 0; overflow:hidden; border:1px solid #e2eae5; border-radius:16px; background:#f3f7f4; }
.home .product-image-link img { background:transparent; }
.home .product-crop-window { display:block; position:relative; width:90.5%; aspect-ratio:1320/995; max-height:100%; overflow:hidden; }
.home .product-image-link .catalog-crop-image { position:absolute; top:0; left:-87.878788%; width:187.878788%; max-width:none; height:100%; object-fit:contain; }
.home .has-scene .product-image-link { position:relative; height:clamp(120px,12.75vw,184px); }
.home .has-scene .product-scene-image { object-fit:cover; object-position:center 40%; }
.home .has-scene .product-image-link::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:32px; background:linear-gradient(transparent,#073d2d); pointer-events:none; }
.home .focus-scene-note { display:block; margin-top:4px; font:400 clamp(8px,.85vw,12px)/1.3 var(--body); color:#dbe7df; text-transform:none; }
.home .product-body { display:block; flex:1; padding:clamp(13px,1.32vw,19px); border-radius:0 0 17px 17px; }
.home .product-body h3 { margin:0 0 4px; font-size:clamp(15px,1.59vw,23px); line-height:1.15; }
.home .product-body p { margin:0; min-height:2.8em; font-size:clamp(10px,1.06vw,15px); line-height:1.4; }
.home .product-body .detail-toggle { min-height:clamp(28px,2.98vw,43px); margin-top:12px; padding:0 13px; border:1px solid #dfe6e8; border-radius:var(--surface-radius-button); font-size:clamp(9px,.96vw,14px); }
.home .product-card:nth-child(2) { border-color:var(--green); }
.home .product-card:nth-child(2) .detail-toggle { border-color:var(--green); background:var(--green); color:white; }
.home .product-card.has-scene .product-body { background:#073d2d; }
.home .product-card.has-scene h3,.home .product-card.has-scene p,.home .product-card.has-scene .detail-toggle { color:#fff; }
.home .product-card.has-scene .detail-toggle { border-color:#d2e0d8; }
.home .applications { min-height:clamp(249px,26.46vw,381px); padding:clamp(14px,1.49vw,22px) 0 clamp(18px,1.91vw,28px); }
.home .applications .section-top { margin-bottom:10px; }
.home .application-grid { gap:clamp(10px,1.12vw,16px); }
.home .application-card { overflow:visible; border:1px solid var(--surface-line); border-radius:18px; box-shadow:0 5px 18px rgba(16,40,68,.06); transition:transform .18s ease,box-shadow .18s ease; }
.home .application-card > img { width:calc(100% - 12px); height:clamp(119px,12.65vw,182px); margin:6px 6px 0; border-radius:16px; object-fit:cover; }
.home .application-caption { display:flex; align-items:center; gap:8px; min-height:46px; padding:8px 10px; color:var(--ink); border-radius:0 0 17px 17px; }
.home .product-card:focus-within,.home .application-card:focus-within { box-shadow:0 9px 24px rgba(16,40,68,.10); }
@media (hover:hover) and (pointer:fine) {
  .home .product-card:hover,.home .application-card:hover { transform:translateY(-1px); box-shadow:0 9px 24px rgba(16,40,68,.10); }
}
@media (prefers-reduced-motion:reduce) {
  .home .product-card:hover,.home .application-card:hover { transform:none; }
  .home .product-card,.home .application-card { transition:none; }
}
.home .application-icon { flex:0 0 22px; width:22px; height:24px; fill:none; stroke:var(--green); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.home .application-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; color:var(--green); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.home .application-copy { display:block; flex:1; min-width:0; margin:0; }
.home .application-copy strong { font-size:clamp(11px,1.17vw,17px); line-height:1.2; }
.home .application-copy small { display:block; margin-top:2px; color:#586871; font-size:clamp(8px,.85vw,12px); line-height:1.2; }
.home .application-arrow { flex:0 0 17px; display:grid; place-items:center; width:17px; height:17px; margin:0; border:1px solid #dce5e3; border-radius:50%; color:var(--green); font-size:11px; }
.home .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.home .about { height:clamp(226px,24.02vw,346px); }
.home .about-image { height:calc(100% - 16px); margin-block:8px; border:1px solid var(--surface-line); border-radius:var(--surface-radius-large); background:#eef4f1; box-shadow:0 5px 20px rgba(16,40,68,.065); }
.home .about-image img { object-fit:contain; object-position:center; }
.home .about-copy { grid-template-columns:minmax(0,1fr) clamp(125px,13.28vw,191px); gap:18px; padding:clamp(24px,2.5vw,36px); align-items:center; }
.home .about-copy h2 { margin-bottom:9px; font-size:clamp(20px,2.125vw,31px); line-height:1.1; }
.home .about-copy p { font-size:clamp(10.5px,1.12vw,16px); line-height:1.45; }
.home .about-points { padding-left:12px; }
.home .about-points span { display:flex; align-items:center; padding-block:12px; font-size:clamp(8px,.85vw,12px); line-height:1.3; }
.home .about-points svg { flex:0 0 19px; width:19px; height:21px; margin-right:6px; fill:none; stroke:var(--green); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.home .manufacturing { min-height:0; padding:clamp(14px,1.49vw,22px) 0 clamp(12px,1.28vw,18px); }
.home .manufacturing .section-top { margin-inline:14px; margin-bottom:6px; }
.home .manufacturing .section-heading { font-size:clamp(21.5px,2.285vw,33px); line-height:1.1; }
.home .gallery-grid { gap:clamp(12px,1vw,14px); }
.home .gallery-card { display:flex; flex-direction:column; min-width:0; padding:6px 6px 10px; border:1px solid var(--surface-line); border-radius:18px; background:#fff; box-shadow:0 3px 12px rgba(16,40,68,.05); }
.home .gallery-media { display:grid; place-items:center; width:100%; height:clamp(108px,11.48vw,166px); overflow:hidden; border-radius:16px; background:#eef4f0; }
.home .gallery-media img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; border-radius:16px; background:#eef4f0; }
.home .gallery-placeholder { border:1px solid #dce8e0; background:linear-gradient(135deg,#e8f1ea,#f5f8f5); }
.home .gallery-placeholder-icon { display:grid; place-items:center; width:42px; height:42px; border:1px solid #c9ddd0; border-radius:14px; background:rgba(255,255,255,.76); color:var(--green); }
.home .gallery-placeholder-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.home .gallery-copy { display:flex; flex:1; flex-direction:column; min-width:0; }
.home .gallery-copy strong { display:block; margin-top:9px; font-size:clamp(10px,1.06vw,15px); line-height:1.2; }
.home .gallery-copy > span { display:block; margin-top:4px; color:var(--muted); font-size:clamp(8.5px,.9vw,13px); line-height:1.35; }
.home .gallery-copy a { display:inline-flex; align-items:center; align-self:flex-start; min-height:30px; margin-top:auto; padding-top:7px; color:var(--green); font-size:clamp(9px,.9vw,13px); font-weight:700; }
.home .gallery-copy a span { margin-left:5px; font-size:1.1em; }
.home .gallery-copy a:focus-visible { outline:3px solid #0a704b; outline-offset:2px; border-radius:4px; }
.home .dealer-cta { height:clamp(80px,8.2vw,118px); border-radius:var(--surface-radius-large); }
.home .dealer-cta img { object-position:center 4%; }
.home .dealer-inner { width:min(calc(100% - 98px),1320px); gap:24px; }
.home .dealer-inner h2 { font-size:clamp(17px,1.81vw,26px); }
.home .dealer-inner p { font-size:clamp(10px,1.06vw,15px); }
.home .dealer-inner a { width:clamp(114px,12.12vw,175px); min-width:0; min-height:32px; padding-inline:10px; font-size:clamp(10px,1.06vw,15px); }
.site-footer > .container { width:min(calc(100% - 80px),1320px); }
.site-footer { min-height:clamp(126px,13.39vw,193px); padding-top:clamp(12px,1.28vw,18px); }
.footer-grid { grid-template-columns:1.1fr 1fr 1.6fr 1fr; gap:18px; }
.footer-brand { display:block; }
.footer-logo { width:clamp(120px,12.75vw,184px); height:auto; object-fit:contain; }
.footer-tagline { display:block; margin-top:6px; color:#a8b9bd; font-size:clamp(8px,.85vw,12px); letter-spacing:.05em; }
.footer-col h3 { font-size:clamp(10px,1.06vw,15px); }
.footer-col a,.footer-col span { font-size:clamp(8.5px,.9vw,13px); line-height:1.4; }
.footer-contact i { display:inline-block; width:13px; font-style:normal; color:#d3e6db; }
.footer-end { margin-top:12px; padding-bottom:3px; }
.home .site-footer { padding-top:clamp(18px,1.55vw,24px); border-top:1px solid rgba(255,255,255,.10); }
.home .footer-grid { gap:clamp(22px,2.1vw,30px); align-items:start; }
.home .footer-brand { display:inline-flex; padding:4px 6px; margin:-4px -6px 0; border-radius:14px; background:rgba(255,255,255,.045); }
.home .footer-col { padding-left:12px; border-left:1px solid rgba(255,255,255,.14); }
.home .footer-col h3 { margin-bottom:10px; }
.home .footer-col a { display:flex; align-items:center; min-height:21px; margin:2px 0; border-radius:6px; }
.home .footer-contact i { display:inline-grid; place-items:center; flex:0 0 18px; width:18px; height:18px; margin-right:5px; border-radius:6px; background:rgba(255,255,255,.10); }
.home .footer-end { margin-top:16px; padding-top:10px; }
@media (max-width:900px) {
  .site-header { height:64px; }
  .site-header .header-row { display:flex; width:calc(100% - 28px); }
  .site-header .brand { width:180px; height:35px; }
  .site-header .menu-toggle { display:block; }
  .site-header .header-quote { display:none; }
  .site-header .site-nav { display:none; position:absolute; z-index:10; top:64px; left:0; right:0; margin:0; padding:12px 20px; background:#fff; flex-direction:column; align-items:stretch; gap:0; }
  .site-header .site-nav.is-open { display:flex; }
  .site-header .site-nav a { min-height:42px; padding:13px 0; font-size:14px; }
}
@media (max-width:800px) {
  .home .hero-content,.home .dealer-inner { width:calc(100% - 28px); }
  .home .hero h1 { font-size:41px; }
  .home .hero p { font-size:15px; }
  .home .hero img { object-position:29% top; }
  .home .advantage strong { font-size:12px; }
  .home .advantage div > span { font-size:9px; }
  .home .products,.home .applications,.home .manufacturing { min-height:0; padding:32px 0; }
  .home .section-top,.home .manufacturing .section-top { margin-inline:0; margin-bottom:16px; }
  .home .section-heading { font-size:27px; }
  .home .section-side { display:none; }
  .home .product-grid { gap:12px; }
  .home .product-card { min-height:290px; }
  .home .product-image-link { height:160px; }
  .home .product-body { padding:14px; }
  .home .product-body h3 { font-size:18px; }
  .home .product-body p { font-size:12px; }
  .home .product-body .detail-toggle { min-height:44px; padding-inline:10px; font-size:11px; }
  .home .application-grid { gap:12px; }
  .home .application-card > img { height:118px; }
  .home .application-caption { min-height:60px; padding:9px; gap:6px; }
  .home .application-icon { flex-basis:19px; width:19px; }
  .home .application-copy strong { font-size:11px; }
  .home .application-copy small { font-size:8px; }
  .home .about { height:auto; }
  .home .about-image { height:auto; aspect-ratio:2480/1100; margin:0; }
  .home .about-image img { object-position:center; }
  .home .about-copy { min-height:260px; grid-template-columns:minmax(0,1fr) 100px; padding:26px 16px; gap:12px; }
  .home .about-copy h2 { font-size:25px; }
  .home .about-copy p { font-size:12px; }
  .home .about-points span { font-size:10px; }
  .home .gallery-grid { gap:12px; }
  .home .gallery-media { height:112px; }
  .home .gallery-copy strong { font-size:11px; }
  .home .gallery-copy > span { font-size:9px; }
  .home .gallery-copy a { min-height:44px; font-size:10px; }
  .home .dealer-cta { height:auto; min-height:180px; padding:28px 0; }
  .home .dealer-inner { gap:16px; }
  .home .dealer-inner h2 { font-size:22px; }
  .home .dealer-inner p { font-size:11px; }
  .home .dealer-inner a { width:auto; min-width:114px; min-height:44px; font-size:12px; }
  .home .dealer-cta img { object-position:center top; transform:scale(2.5); transform-origin:center top; }
  .home .dealer-cta::after { background:rgba(3,45,27,.85); }
  .site-footer > .container { width:calc(100% - 28px); }
  .site-footer { padding-top:28px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:24px 18px; }
  .footer-logo { width:120px; }
  .footer-col h3 { font-size:13px; }
  .footer-col a,.footer-col span { font-size:10px; }
  .footer-tagline { max-width:150px; font-size:8px; }
  .footer-end { margin-top:24px; }
  .home .site-footer { padding-top:30px; }
  .home .footer-grid { gap:28px 20px; }
  .home .footer-col { padding-left:10px; }
  .home .footer-col a { min-height:23px; }
  .home .footer-end { margin-top:26px; }
}
@media (min-width:601px) and (max-width:800px) {
  .home .product-image-link { height:195px; }
  .home .has-scene .product-image-link { height:170px; }
  .home .application-card > img { height:185px; }
  .home .gallery-media { height:160px; }
}

/* P06 technical delta: reserve the existing editorial images' natural space. */
body.page-id-19 .editor-content figure img[src$="/orchard-catalog-scene.png"] { aspect-ratio:auto 600 / 360; }
body.page-id-19 .editor-content figure img[src$="/slope-catalog-p4.png"] { aspect-ratio:auto 550 / 420; }
body.page-id-19 .editor-content figure img[src$="/mowing-catalog-p9.png"] { aspect-ratio:auto 695 / 440; }
body.page-id-19 .editor-content figure img[src$="/transport-catalog-p11.png"] { aspect-ratio:auto 550 / 400; }
body:is(.page-id-20,.page-id-21) .editor-content figure img[src$="/factory-exterior.png"] { aspect-ratio:auto 1408 / 1054; }

@media (max-width:480px) {
  body.single-jafu_product .product-detail-layout .editor-content a.button-green {
    font-size:14px;
    min-height:44px;
    padding-inline:16px;
  }
}

/* P08: approved editable FAQ copy; original layout rules retained. */
.editor-content .content-faq { margin-top: 28px; border-top: 1px solid var(--line); }
.editor-content .content-faq details { border-bottom: 1px solid var(--line); }
.editor-content .content-faq summary { padding: 14px 0; cursor: pointer; color: var(--navy); font-weight: 650; min-height: 44px; }
.editor-content .content-faq details p { margin: 0 0 18px; }
.editor-content .content-links { overflow-wrap: anywhere; }

/* P10: local optional fields and accessible consent controls only. */
.rfq-optional { border:1px solid var(--line); padding:12px 16px; border-radius:12px; }
.rfq-optional summary { cursor:pointer; min-height:32px; font-weight:650; }
.rfq-optional-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding-top:16px; }
.rfq-privacy { font-size:14px; line-height:1.55; }
.rfq-privacy p { margin:8px 0; }
.rfq-form .rfq-disabled { display:flex; align-items:center; gap:8px; color:#56666e; font-size:13px; }
.rfq-form .rfq-disabled input { width:auto; }
.rfq-form button:disabled { opacity:.65; cursor:wait; }
.jafu-preferences { padding:12px 0 18px; color:inherit; font-size:13px; line-height:1.6; }
.jafu-preferences summary { cursor:pointer; min-height:28px; }
.jafu-preferences p { max-width:80ch; }
.jafu-preferences button { padding:10px 14px; margin:4px 8px 4px 0; border:1px solid #9cb5ba; border-radius:8px; background:#fff; color:#16343e; cursor:pointer; min-height:44px; }
@media(max-width:640px){.rfq-optional-grid{grid-template-columns:1fr}.jafu-preferences button{display:block;width:100%;margin:8px 0}}

/* HOME_HERO_FACTORY_LOCAL_20261102: image positioning only. */
.home #hero > img, .home #hero > .jafu-p05-picture > img { object-position:50% 0%; }
@media (max-width:800px) {
  .home #hero > img, .home #hero > .jafu-p05-picture > img { object-position:22% 0%; }
}

/* REAL_PRODUCT_IMAGES_20261102: preserve complete37/38 contours under existing zoom. */
.home .product-card[data-product-id="37"] .product-visual,
.home .product-card[data-product-id="38"] .product-visual {
  box-sizing:border-box;
  padding:clamp(6px,3%,10px);
}
.home .product-card[data-product-id="37"] .product-visual > img,
.home .product-card[data-product-id="38"] .product-visual > img {
  min-width:0;
  min-height:0;
}

/* REAL_PRODUCT_IMAGES_20261102_FIX1: contain the existing S120D homepage image. */
.home .product-card[data-product-id="39"] .product-visual {
  box-sizing: border-box;
  padding: clamp(6px, 3%, 10px);
}
.home .product-card[data-product-id="39"] .product-visual > img {
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

/* REV10_20261105: approved scoped presentation; unrelated views retain baseline. */
@media (max-width:480px) {
 body.single-jafu_product .product-detail-layout > div:first-child {width:100%;max-width:340px;margin-inline:auto;padding:12px;box-sizing:border-box;}
 body.single-jafu_product .product-detail-layout > div:first-child > img {width:100%;height:auto;max-height:none;object-fit:contain;}
}
body.tax-jafu_family:is(.term-mowers,.term-sprayers) .catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:900px;margin-inline:auto;}
body.tax-jafu_family:is(.term-mowers,.term-sprayers) .catalog-card > a:first-child {display:block;aspect-ratio:4/3;padding:12px;box-sizing:border-box;background:#f7f9f8;}
body.tax-jafu_family:is(.term-mowers,.term-sprayers) .catalog-card > a:first-child > img {width:100%;height:100%;object-fit:contain;}
@media (max-width:800px) {body.tax-jafu_family:is(.term-mowers,.term-sprayers) .catalog-grid {gap:20px;}}
@media (max-width:480px) {body.tax-jafu_family:is(.term-mowers,.term-sprayers) .catalog-grid {grid-template-columns:1fr;max-width:420px;}}
body.page-id-19 .editor-content figure {margin:12px 0 24px;}
body.page-id-19 .editor-content figure img {max-width:100%;height:auto;}
body.page-id-19 .editor-content figure img[src$="/orchard-catalog-scene.png"] {width:600px;}
body.page-id-19 .editor-content figure img[src$="/slope-catalog-p4.png"] {width:550px;}
body.page-id-19 .editor-content figure img[src$="/mowing-catalog-p9.png"] {width:695px;}
body.page-id-19 .editor-content figure img[src$="/transport-catalog-p11.png"] {width:550px;}
.home #manufacturing .gallery-card {border-radius:16px;}
.home #manufacturing .gallery-copy {padding:16px;}
.home #manufacturing .gallery-copy strong {font-size:16px;}
.home #manufacturing .gallery-copy > span {font-size:14px;line-height:1.45;}
.home #manufacturing .gallery-copy a {min-height:44px;}
.home #manufacturing .gallery-information {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:16px;box-sizing:border-box;}
.home #manufacturing .gallery-information-icon svg {display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;}
.home #manufacturing .gallery-information-topic {font-size:16px;line-height:1.35;color:#254b3e;}
@media (max-width:480px) {.home #manufacturing .gallery-copy,.home #manufacturing .gallery-information {padding:12px;}.home #manufacturing .gallery-information-topic {font-size:13px;}}

/* Keep existing image boxes and caption flow when using picture. */
.jafu-p05-picture { display:contents; }
