/*
Theme Name: TimberMech Industrial
Theme URI: https://www.accio-ai.com/work/doc
Author: Accio Work
Description: Industrial forestry machinery catalog and inquiry theme for WordPress / Hostinger.
Version: 1.2.2
Text Domain: timbermech-industrial
*/

:root {
  --tm-orange: #d62828;
  --tm-orange-dark: #a61e1e;
  --tm-yellow: #f4b51b;
  --tm-ink: #17191a;
  --tm-charcoal: #252829;
  --tm-muted: #687075;
  --tm-line: #dfe3e4;
  --tm-paper: #f4f5f3;
  --tm-white: #fff;
  --tm-green: #315a3a;
  --tm-container: 1240px;
  --tm-radius: 3px;
  --tm-shadow: 0 14px 35px rgba(19, 25, 27, .12);
  --tm-display: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Microsoft YaHei', sans-serif;
  --tm-body: 'Segoe UI', Arial, 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--tm-ink); background: var(--tm-white); font-family: var(--tm-body); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(var(--tm-container), calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.topbar { background: var(--tm-ink); color: #d9ddde; font-size: 12px; letter-spacing: .04em; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--tm-line); box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.header__inner { min-height: 82px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 220px; }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--tm-orange); font-family: var(--tm-display); font-size: 20px; line-height: 1; transform: skew(-7deg); }
.brand__logo { width: 54px; height: 44px; border-radius: 2px; object-fit: contain; background: #fff; }
.brand__name { font-family: var(--tm-display); font-size: 25px; letter-spacing: .04em; line-height: 1; }
.brand__tag { display: block; margin-top: 4px; color: var(--tm-muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.nav { flex: 1; }
.nav ul { display: flex; justify-content: flex-end; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav a:hover, .nav .current-menu-item > a { color: var(--tm-orange); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--tm-ink); font-size: 28px; padding: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 25px; border: 1px solid transparent; border-radius: var(--tm-radius); background: var(--tm-orange); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: .25s ease; }
.button:hover { background: var(--tm-orange-dark); transform: translateY(-2px); box-shadow: 0 9px 18px rgba(217,86,16,.22); }
.button--outline { border-color: rgba(255,255,255,.55); background: transparent; }
.button--outline:hover { border-color: var(--tm-orange); background: var(--tm-orange); }
.button--dark { background: var(--tm-ink); }

.hero { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; background: var(--tm-ink); }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .82; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,15,15,.92) 0%, rgba(12,15,15,.66) 43%, rgba(12,15,15,.14) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 720px; padding: 88px 0; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 21px; color: var(--tm-orange); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow:before { content: ''; display: block; width: 32px; height: 3px; background: currentColor; }
.hero h1 { max-width: 750px; margin: 0 0 22px; font-family: var(--tm-display); font-size: clamp(52px, 7vw, 88px); font-weight: 900; line-height: .94; letter-spacing: .01em; text-transform: uppercase; }
.hero h1 span { color: var(--tm-orange); }
.hero p { max-width: 610px; margin: 0 0 34px; color: #e4e8e8; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 58px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.2); }
.hero__stat strong { display: block; color: #fff; font-family: var(--tm-display); font-size: 30px; line-height: 1; }
.hero__stat small { display: block; margin-top: 8px; color: #aeb8b9; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.trustbar { background: var(--tm-orange); color: #fff; }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar__item { min-height: 105px; display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-right: 1px solid rgba(255,255,255,.25); }
.trustbar__item:last-child { border-right: 0; }
.trustbar__number { font-family: var(--tm-display); font-size: 35px; line-height: 1; }
.trustbar__label { font-size: 10px; font-weight: 800; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }

.section { padding: 94px 0; }
.section--paper { background: var(--tm-paper); }
.section__heading { max-width: 720px; margin-bottom: 40px; }
.section__heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.section__heading h2 { margin: 0 0 12px; font-family: var(--tm-display); font-size: clamp(36px, 4vw, 56px); font-weight: 900; line-height: .98; text-transform: uppercase; }
.section__heading p { max-width: 620px; margin: 0; color: var(--tm-muted); }
.section__heading--dark h2, .section__heading--dark p { color: #fff; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.new-product { background: #eef0ed; }
.new-product__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.new-product__poster { position: relative; overflow: hidden; background: #e2e5e2; }
.new-product__poster img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.new-product__poster .badge { top: 18px; left: 18px; }
.new-product__content h2 { max-width: 540px; margin: 0 0 20px; font-family: var(--tm-display); font-size: clamp(42px, 5vw, 68px); line-height: .95; text-transform: uppercase; }
.new-product__content .check-list { margin-top: 20px; }
.category-card { position: relative; min-height: 385px; overflow: hidden; background: var(--tm-ink); }
.category-card img { width: 100%; height: 100%; min-height: 385px; object-fit: cover; transition: transform .55s ease; }
.category-card:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,13,13,.93), rgba(10,13,13,.02) 68%); }
.category-card:hover img { transform: scale(1.07); }
.category-card__content { position: absolute; z-index: 1; right: 24px; bottom: 24px; left: 24px; color: #fff; }
.category-card__content:before { content: ''; display: block; width: 38px; height: 3px; margin-bottom: 15px; background: var(--tm-orange); transition: width .25s ease; }
.category-card:hover .category-card__content:before { width: 72px; }
.category-card h3 { margin: 0 0 8px; font-family: var(--tm-display); font-size: 28px; line-height: .98; text-transform: uppercase; }
.category-card a { color: var(--tm-orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { position: relative; overflow: hidden; border: 1px solid var(--tm-line); background: #fff; transition: .25s ease; }
.product-card:hover { border-color: var(--tm-orange); box-shadow: var(--tm-shadow); transform: translateY(-4px); }
.product-card__image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #eceeed; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card__image img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 8px; background: var(--tm-orange); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-card__body { padding: 18px; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--tm-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cert { color: #1875b9; }
.product-card h3 { min-height: 52px; margin: 0 0 11px; font-size: 17px; line-height: 1.35; }
.product-card__link { display: inline-block; margin-top: 14px; color: var(--tm-orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.feature-band { position: relative; overflow: hidden; background: var(--tm-ink); color: #fff; }
.feature-band__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.feature-band__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,25,26,.98), rgba(23,25,26,.55), rgba(23,25,26,.2)); }
.feature-band__inner { position: relative; z-index: 1; min-height: 410px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.feature-band h2 { max-width: 520px; margin: 0 0 18px; font-family: var(--tm-display); font-size: clamp(40px, 5vw, 68px); line-height: .95; text-transform: uppercase; }
.feature-band p { max-width: 530px; margin: 0; color: #dbe1e1; }
.feature-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-point { padding: 19px; border-left: 3px solid var(--tm-orange); background: rgba(0,0,0,.26); }
.feature-point strong { display: block; margin-bottom: 7px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.feature-point span { color: #b8c0c0; font-size: 12px; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.about-grid__image { position: relative; }
.about-grid__image img { width: 100%; aspect-ratio: 1.15 / 1; object-fit: cover; }
.about-grid__image:after { content: none; }
.check-list { margin: 25px 0 30px; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 13px 0; padding-left: 28px; color: var(--tm-charcoal); font-weight: 600; }
.check-list li:before { content: '✓'; position: absolute; left: 0; color: var(--tm-orange); font-weight: 900; }

.inquiry { background: var(--tm-orange); color: #fff; }
.inquiry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.inquiry h2 { margin: 0 0 14px; font-family: var(--tm-display); font-size: clamp(38px, 5vw, 65px); line-height: .95; text-transform: uppercase; }
.inquiry p { max-width: 540px; color: #fff1e9; }
.inquiry__form { padding: 26px; background: #fff; color: var(--tm-ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--tm-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--tm-line); border-radius: 2px; background: #fff; color: var(--tm-ink); }
.form-field textarea { min-height: 110px; resize: vertical; }
.inquiry__form .button { margin-top: 16px; }
.notice { margin-bottom: 15px; padding: 10px 12px; background: #eaf5ea; color: #246128; font-size: 13px; }
.notice--error { background: #fff0ed; color: #9e2c1c; }

.footer { padding: 65px 0 25px; background: var(--tm-ink); color: #c3cacc; }
.footer__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 45px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer .brand { color: #fff; }
.footer h3 { margin: 0 0 16px; color: #fff; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.footer p, .footer li, .footer a { color: #9ea8aa; font-size: 13px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin: 9px 0; }
.footer a:hover { color: var(--tm-orange); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; color: #768083; font-size: 11px; }

.page-hero { padding: 95px 0; background: var(--tm-charcoal); color: #fff; }
.page-hero h1 { margin: 0; font-family: var(--tm-display); font-size: clamp(48px, 7vw, 80px); line-height: .95; text-transform: uppercase; }
.content-area { padding: 80px 0; }
.content-area h2, .content-area h3 { font-family: var(--tm-display); text-transform: uppercase; }
.content-area a { color: var(--tm-orange-dark); text-decoration: underline; }

@media (max-width: 1024px) {
  .header__inner { gap: 20px; }
  .brand { min-width: 190px; }
  .nav ul { gap: 16px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-band__inner, .about-grid, .inquiry__grid { gap: 38px; }
}
@media (max-width: 760px) {
  .container { width: min(var(--tm-container), calc(100% - 30px)); }
  .topbar__inner { min-height: 32px; }
  .topbar__right { display: none; }
  .header__inner { min-height: 68px; justify-content: space-between; }
  .brand { min-width: 0; }
  .brand__name { font-size: 22px; }
  .brand__tag { display: block; max-width: 150px; font-size: 8px; letter-spacing: .05em; line-height: 1.2; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; right: 0; left: 0; padding: 15px; border-bottom: 1px solid var(--tm-line); background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav.is-open { display: block; }
  .nav ul { display: block; }
  .nav li { border-bottom: 1px solid var(--tm-line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: 12px 4px; }
  .header .button { display: none; }
  .hero { min-height: 620px; }
  .hero__content { padding: 65px 0; }
  .hero h1 { font-size: clamp(47px, 14vw, 68px); }
  .hero p { font-size: 16px; }
  .hero__stats { gap: 18px; margin-top: 40px; }
  .hero__stat strong { font-size: 25px; }
  .trustbar__grid { grid-template-columns: 1fr 1fr; }
  .trustbar__item { min-height: 90px; padding: 15px; }
  .trustbar__item:nth-child(2) { border-right: 0; }
  .trustbar__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .trustbar__number { font-size: 28px; }
  .section { padding: 65px 0; }
  .section__heading--split { display: block; }
  .section__heading--split .button { margin-top: 18px; }
  .category-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .new-product__grid { grid-template-columns: 1fr; gap: 30px; }
  .category-card, .category-card img { min-height: 265px; }
  .category-card__content { right: 15px; bottom: 15px; left: 15px; }
  .category-card h3 { font-size: 22px; }
  .product-card__body { padding: 13px; }
  .product-card h3 { min-height: 0; font-size: 14px; }
  .product-card__meta { display: block; line-height: 1.6; }
  .feature-band__inner, .about-grid, .inquiry__grid { grid-template-columns: 1fr; }
  .feature-band__inner { min-height: auto; padding: 65px 0; }
  .feature-points { gap: 12px; }
  .feature-point { padding: 14px; }
  .about-grid__image:after { right: 8px; bottom: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .footer__bottom { display: block; }
  .footer__bottom > * { margin: 6px 0; }
}
@media (max-width: 430px) {
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .category-card, .category-card img { min-height: 330px; }
  .new-product__content h2 { font-size: 44px; }
  .hero__actions .button { width: 100%; }
  .feature-points { grid-template-columns: 1fr; }
}

/* ===== TimberMech Products dropdown ===== */
.nav li { position: relative; }
.nav li.has-dropdown > .dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 250px; padding: 8px 0; margin: 0; background: #fff; border: 1px solid var(--tm-line); box-shadow: var(--tm-shadow); z-index: 60; }
.nav li.has-dropdown:hover > .dropdown, .nav li.has-dropdown:focus-within > .dropdown { display: block; }
.nav .dropdown li { border-bottom: 1px solid var(--tm-line); }
.nav .dropdown li:last-child { border-bottom: 0; }
.nav .dropdown a { display: block; padding: 11px 20px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav .dropdown a:hover { color: var(--tm-orange); }
.nav-caret { margin-left: 5px; font-size: 9px; color: var(--tm-muted); }
@media (max-width: 760px) {
  .nav li.has-dropdown > .dropdown { display: block; position: static; transform: none; min-width: 0; padding: 0 0 6px 14px; margin: 0; border: 0; box-shadow: none; }
  .nav li.has-dropdown > a { pointer-events: none; cursor: default; }
}

/* Contact page: responsive full-width inquiry image */
.page-id-88 .content-area .wp-block-image img { width: 100%; height: auto; }
