/* Manure To Fertilizer Machine — Shunxin
   Design system: soil-to-crop. Leaf green for the product, soil amber for the raw material. */

:root {
  --ink: #161c0f;
  --ink-2: #26301a;
  --brand: #2f6b33;
  --brand-dark: #24512a;
  --brand-soft: #ecf3e4;
  --accent: #d98324;
  --accent-dark: #b36a16;
  --paper: #ffffff;
  --mist: #f6f7f1;
  --line: #e3e6da;
  --muted: #5f6753;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 4px rgba(22, 28, 15, .04), 0 12px 32px rgba(22, 28, 15, .07);
  --shadow-lg: 0 24px 60px rgba(22, 28, 15, .14);
  --wrap: 1280px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Archivo", "Inter", "Segoe UI", system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .55rem;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(1.95rem, 1.2rem + 2.4vw, 3.05rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1rem + 1.35vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.03rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .45rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.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;
}

/* ---------- utility bar ---------- */
.topbar {
  background: var(--ink);
  color: #d3dcc2;
  font-size: .82rem;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; min-height: 38px; }
.topbar a { color: #eef3e2; }
.topbar .spacer { flex: 1 1 auto; }
.topbar strong { color: #fff; font-weight: 600; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(8px);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.12rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-text b { font-family: var(--font-head); font-size: 1.06rem; color: var(--ink); font-weight: 800; }
.brand-text span { font-size: .74rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; flex: 0 0 auto; }
.brand-divider { width: 1px; height: 34px; background: var(--line); margin: 0 .15rem 0 .1rem; }
.site-footer .brand-logo { height: 52px; }

/* language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .7rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink);
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.lang-btn .globe { font-size: .95rem; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  width: 232px; max-height: 330px; overflow-y: auto; margin: 0; padding: .35rem;
  list-style: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { margin: 0; }
.lang-menu a { display: flex; align-items: center; gap: .5rem; padding: .42rem .55rem; border-radius: 8px; font-size: .9rem; color: var(--ink-2); }
.lang-menu a:hover { background: var(--mist); text-decoration: none; }
.lang-menu .flag { font-size: 1rem; line-height: 1; }

nav.main { margin-left: auto; }
nav.main > ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; }
nav.main > ul > li { position: relative; }
nav.main > ul > li > a {
  display: block; padding: .6rem .78rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .93rem; white-space: nowrap;
}
nav.main > ul > li > a:hover,
nav.main > ul > li.active > a { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
nav.main .sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 292px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
nav.main li:hover > .sub, nav.main li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
nav.main .sub li { margin: 0; }
nav.main .sub a {
  display: block; padding: .5rem .65rem; border-radius: 8px;
  font-size: .9rem; color: var(--ink-2); font-weight: 500;
}
nav.main .sub a:hover { background: var(--mist); color: var(--brand-dark); text-decoration: none; }

/* Seven top-level topics with long labels: keep the last panels and the
   header actions inside the viewport instead of overflowing to the right. */
nav.main .sub { max-width: calc(100vw - 44px); }
nav.main > ul > li:nth-last-child(-n+2) .sub { left: auto; right: 0; }

.header-cta { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  padding: .48rem .6rem; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; font-family: var(--font-head);
  cursor: pointer; transition: .16s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #35240a; }
.btn-accent:hover { background: var(--accent-dark); color: #241705; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-lg { padding: .88rem 1.55rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #f0f4e6;
  background: radial-gradient(120% 140% at 12% 0%, #1b7a58 0%, #24512a 42%, #161c0f 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(22, 28, 15, .86) 0%, rgba(22, 28, 15, .58) 52%, rgba(22, 28, 15, .28) 100%);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(2.4rem, 1rem + 4vw, 4.2rem); padding-bottom: clamp(2.4rem, 1rem + 4vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.4rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .8rem; }
.hero .kicker {
  display: inline-block; margin-bottom: .9rem; padding: .32rem .78rem; border-radius: 999px;
  background: rgba(217, 131, 36, .18); border: 1px solid rgba(217, 131, 36, .5);
  color: #f8d5a2; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.hero .lead { font-size: 1.06rem; color: #dde6cd; margin-bottom: 1.1rem; }
.hero ul.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.hero ul.checks li { position: relative; padding-left: 1.65rem; margin-bottom: .5rem; color: #e2e9d3; }
.hero ul.checks li::before {
  content: ""; position: absolute; left: .18rem; top: .52rem; width: .5rem; height: .5rem;
  border-radius: 3px; background: var(--accent); transform: rotate(45deg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.hero-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; font-size: .9rem; }
.hero-card dt { color: #9fc3b1; }
.hero-card dd { margin: 0; color: #f4f7ec; font-weight: 600; }

/* ---------- trust strip ---------- */
.trust { background: var(--mist); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.trust .item { text-align: center; }
.trust .item b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--brand-dark); }
.trust .item span { font-size: .84rem; color: var(--muted); }

/* ---------- breadcrumb ---------- */
.crumbs { background: var(--mist); border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.crumbs .wrap { padding-top: .7rem; padding-bottom: .7rem; }
.crumbs a { color: var(--muted); }
.crumbs span.sep { margin: 0 .45rem; opacity: .55; }
.crumbs strong { color: var(--ink-2); font-weight: 600; }

/* ---------- generic section ---------- */
section.block { padding: clamp(2.1rem, 1rem + 3vw, 3.4rem) 0; }
section.block.alt { background: var(--mist); }
section.block.tight { padding-top: 1.5rem; }
.sec-head { max-width: 780px; margin-bottom: 1.6rem; }
.sec-head .eyebrow {
  display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .4rem;
}
.sec-head p { color: var(--muted); margin-bottom: 0; }
.prose { max-width: 900px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- spec chips ---------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 0 0 1.6rem; }
.specs .chip {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: .75rem .9rem;
}
.specs .chip span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.specs .chip b { font-family: var(--font-head); font-size: .98rem; color: var(--ink); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d6e0c4; }
.card .thumb { aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card h3 { font-size: 1.04rem; margin-bottom: .4rem; }
.card h3 a { color: var(--ink); }
.card p { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.card .more { margin-top: auto; font-weight: 650; font-size: .88rem; color: var(--brand); font-family: var(--font-head); }
.card.flat { padding: 1.1rem 1.15rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.15rem 1.05rem; counter-increment: step;
}
.step::before {
  content: counter(step); position: absolute; top: -14px; left: 1.1rem;
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .92rem;
}
.step h3 { font-size: 1rem; margin: 1rem 0 .35rem; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.data caption { text-align: left; padding: .9rem 1rem 0; color: var(--muted); font-size: .85rem; }
table.data th, table.data td { padding: .68rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th {
  background: var(--ink); color: #eef3e2; font-family: var(--font-head);
  font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; position: sticky; top: 0;
}
table.data tbody tr:nth-child(even) { background: #fafbf5; }
table.data tbody tr:hover { background: var(--brand-soft); }

/* ---------- lists ---------- */
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; }
ul.ticks li::before {
  content: ""; position: absolute; left: .15rem; top: .45rem; width: 10px; height: 10px;
  border-radius: 3px; background: var(--brand-soft); border: 2px solid var(--brand);
}

/* ---------- source body ---------- */
.source-body h2 { margin-top: 2rem; }
.source-body h3 { margin-top: 1.5rem; font-size: 1.08rem; }
.source-body figure { margin: 1.4rem 0; }
.source-body figure img, .source-body > img { border-radius: var(--radius); border: 1px solid var(--line); }
.source-body .figcap { font-size: .84rem; color: var(--muted); margin-top: .5rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.8rem; align-items: start; }
.split.flip > *:first-child { order: 2; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.gallery img { border-radius: var(--radius-sm); border: 1px solid var(--line); width: 100%; height: 210px; object-fit: cover; background: #ebeedd; }
.gallery-block figure.shot {
  margin: 0; overflow: hidden; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff;
}
.gallery-block figure.shot img { border: 0; border-radius: 0; height: 230px; transition: transform .35s ease; }
.gallery-block figure.shot:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .65rem; }
details.qa {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .1rem .2rem;
}
details.qa[open] { border-color: #c9dfd3; box-shadow: var(--shadow); }
details.qa summary {
  cursor: pointer; list-style: none; padding: .85rem 1rem; font-weight: 650;
  font-family: var(--font-head); color: var(--ink); font-size: .98rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; color: var(--brand); font-weight: 700; font-size: 1.2rem; line-height: 1;
  flex: 0 0 auto;
}
details.qa[open] summary::after { content: "–"; }
details.qa .answer { padding: 0 1rem 1rem; color: var(--muted); font-size: .94rem; }
details.qa .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, #1f3d1c 55%, var(--brand-dark) 100%);
  color: #eef3e2; border-radius: var(--radius); padding: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.4rem; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9e0d4; margin-bottom: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- inquiry form ---------- */
.inquiry { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 1rem + 1.5vw, 2rem); }
.inquiry-grid { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; text-align: center;
}
.qr-card h3 { font-size: 1rem; margin-bottom: .7rem; }
.qr-card img { width: 180px; height: 180px; margin: 0 auto .6rem; border-radius: 8px; }
.qr-card p { font-size: .84rem; color: var(--muted); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .85rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); font-family: var(--font-head); }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .94rem; padding: .62rem .7rem; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(47, 107, 51, .25); border-color: var(--brand);
}
.form-note { font-size: .8rem; color: var(--muted); margin: .7rem 0 0; }

/* ---------- related ---------- */
.related .cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.contact-card span { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); display: block; margin-bottom: .25rem; }
.contact-card b, .contact-card a { font-family: var(--font-head); font-size: 1rem; color: var(--ink); word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b0c29a; padding: 3rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #c9d8b8; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .9rem; color: #a5b88e; }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text span { color: #9aae82; }
.footer-bottom {
  margin-top: 2.2rem; border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1rem 0 1.4rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
}

/* ---------- footer: rebuilt ---------- */
.footer-cta {
  display: grid; grid-template-columns: minmax(0, 1.7fr) auto; gap: 1.2rem; align-items: center;
  padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.footer-cta h2 { color: #fff; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); margin-bottom: .3rem; }
.footer-cta p { color: #b0c29a; font-size: .93rem; margin: 0; }
.footer-cta .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.1fr 1.25fr; gap: 1.6rem; padding-top: 2rem;
}
.f-brand > p { color: #a5b88e; font-size: .9rem; margin: .9rem 0 .5rem; }
.f-brand .f-company { color: #d3dcc2; font-weight: 600; font-size: .88rem; }
.f-stats { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .8rem; }
.f-stats li b { display: block; font-family: var(--font-head); color: #fff; font-size: 1.02rem; line-height: 1.2; }
.f-stats li span { font-size: .74rem; color: #9aae82; }
.f-contact-list { list-style: none; padding: 0; margin: 0 0 .95rem; }
.f-contact-list li { display: flex; gap: .5rem; margin-bottom: .55rem; font-size: .88rem; color: #c9d8b8; line-height: 1.45; }
.f-contact-list .ico { flex: 0 0 auto; opacity: .85; }
.f-contact .btn { margin-top: .2rem; }
.footer-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; }
.footer-badges li { font-size: .77rem; color: #c9d8b8; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: .3rem .72rem; }
.footer-bottom b { color: #fff; font-weight: 700; }
.f-links { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.f-lang select, .lang-select {
  background: rgba(255, 255, 255, .08); color: #eef3e2; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px; padding: .38rem .6rem; font: inherit; font-size: .82rem; cursor: pointer;
}
.f-lang select option { color: #26301a; background: #fff; }

/* ---------- site search ---------- */
.search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 1rem; cursor: pointer; color: var(--ink);
}
.search-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
body.search-open { overflow: hidden; }
.search-overlay {
  position: fixed; inset: 0; z-index: 210; display: flex;
  align-items: flex-start; justify-content: center; padding: 7vh 1.1rem 1.1rem;
}
.search-overlay[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(22, 28, 15, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s ease; }
.search-overlay.is-open .search-backdrop { opacity: 1; }
.search-panel {
  position: relative; z-index: 2; width: min(780px, 100%); background: #fff;
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1rem 1.1rem 1.1rem;
  opacity: 0; transform: translateY(-12px); transition: .2s ease;
}
.search-overlay.is-open .search-panel { opacity: 1; transform: none; }
.search-form, .search-page-form {
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid var(--line); border-radius: 12px; padding: .42rem .62rem; background: #fff;
}
.search-page-form { max-width: 760px; }
.search-form input, .search-page-form input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; font: inherit;
  font-size: 1.02rem; padding: .5rem .2rem; color: var(--ink); background: transparent;
}
.search-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--muted);
}
.search-close:hover { color: var(--ink); border-color: var(--brand); }
.search-hint { font-size: .82rem; color: var(--muted); margin: .75rem 0 .2rem; }
.search-hint a { margin-right: .7rem; white-space: nowrap; }
.search-count { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }
.search-results { max-height: 54vh; overflow-y: auto; margin-top: .5rem; }
.search-results a.res { display: flex; gap: .8rem; padding: .65rem .6rem; border-radius: 10px; align-items: flex-start; }
.search-results a.res:hover { background: var(--mist); text-decoration: none; }
.search-results .res-thumb { width: 78px; height: 56px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #ebeedd; }
.search-results .res-c { font-size: .71rem; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.search-results .res-t { font-family: var(--font-head); font-weight: 650; color: var(--ink); font-size: .96rem; }
.search-results .res-d { font-size: .85rem; color: var(--muted); }
.search-results.wide a.res { background: #fff; border: 1px solid var(--line); margin-bottom: .6rem; }
.search-results.wide .res-thumb { width: 132px; height: 92px; }
.search-empty { padding: 1rem .6rem; color: var(--muted); font-size: .93rem; }

/* ---------- floats ---------- */
.fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 70;
  display: flex; flex-direction: column; gap: .6rem; align-items: flex-end;
}
.fab a, .fab button {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25d366; color: #1c3a14; border: 0; border-radius: 999px;
  padding: .62rem 1rem; font-weight: 700; font-size: .88rem; font-family: var(--font-head);
  box-shadow: var(--shadow-lg); cursor: pointer; text-decoration: none;
}
.fab a:hover { text-decoration: none; transform: translateY(-1px); }
.fab .totop { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: .55rem .8rem; }
.fab .wa-float { background: #25d366; color: #1c3a14; }
.fab .wa-icon { font-size: 1.05rem; }
/* keep our buttons clear of the Tawk.to bubble in the bottom-right corner */
body.tawk-online .fab { bottom: 92px; }

/* ---------------------------------------------------------------- modal */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22, 28, 15, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s ease; }
.modal-panel {
  position: relative; z-index: 2; width: min(760px, 100%); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(14px) scale(.985); transition: .2s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-close {
  position: absolute; top: .55rem; right: .7rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 1.35rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); border-color: var(--brand); }
.modal-body { padding: 1.4rem 1.5rem 1.6rem; }
.modal-head { margin-bottom: 1rem; padding-right: 2.2rem; }
.modal-head h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.modal-head p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .9rem 0 0; }
.modal-success { text-align: center; padding: 1.2rem .5rem .6rem; }
.modal-success h3 { margin: .7rem 0 .5rem; }
.modal-success p { color: var(--muted); }
.ok-badge {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 1.6rem;
  display: grid; place-items: center; border: 2px solid var(--brand);
}
.inline-success { text-align: center; padding: 1rem; }
.inline-success b { display: block; margin-top: .6rem; }

.mobile-cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  nav.main > ul > li > a { padding: .55rem .55rem; font-size: .88rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-cta { grid-template-columns: 1fr; }
}

@media (min-width: 1101px) and (max-width: 1440px) {
  nav.main > ul > li > a { padding: .55rem .5rem; font-size: .86rem; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; margin-left: auto; }
  .search-btn { order: 3; }
  .brand-divider, .brand-text { display: none; }
  .brand-logo { height: 38px; }
  .lang-switch { margin-left: auto; }
  nav.main {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  nav.main.open { max-height: 78vh; overflow-y: auto; }
  nav.main > ul { flex-direction: column; padding: .5rem .8rem 1rem; }
  nav.main > ul > li > a { padding: .7rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  nav.main .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--brand-soft);
    padding: 0 0 .4rem .6rem; min-width: 0; display: none;
  }
  nav.main li.open > .sub { display: block; }
  .header-cta .btn { display: none; }
  .search-overlay { padding: 3vh .8rem 1rem; }
  .search-form { flex-wrap: wrap; }
  .search-form .btn { order: 3; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .split, .cta-band { grid-template-columns: 1fr; }
  .split.flip > *:first-child { order: 0; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .f-stats { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .fab { bottom: 84px; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    background: rgba(22, 28, 15, .97); padding: .55rem .7rem; gap: .5rem;
  }
  .mobile-cta a { flex: 1 1 0; padding: .7rem .5rem; font-size: .9rem; }
  body { padding-bottom: 62px; }
}

@media print {
  .site-header, .topbar, .fab, .mobile-cta, .inquiry, .cta-band { display: none !important; }
}
