/*
Theme Name: Leo Metal
Description: Responsive native WordPress theme for Leo Metal’s manufacturing and export website.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: leo-metal
License: GNU General Public License v2 or later
*/
:root {
  --lm-ink: #171e27;
  --lm-text: #45515f;
  --lm-light: #f3f5f7;
  --lm-white: #fff;
  --lm-line: #d9dfe5;
  --lm-accent: #b84720;
  --lm-accent-light: #f6ad8c;
  --lm-width: 1200px;
  --lm-gutter: clamp(20px, 5vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--lm-white); color: var(--lm-ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; }
a { color: var(--lm-accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #227bbc; outline-offset: 4px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.041em; margin: 0 0 .32em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.1vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 3.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.023em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lm-wrap { width: min(var(--lm-width), calc(100% - var(--lm-gutter) * 2)); margin-inline: auto; }
.lm-section { padding-block: clamp(50px, 6vw, 92px); }
.lm-entry > :not(.wp-block-group) { width: min(var(--lm-width), calc(100% - var(--lm-gutter) * 2)); margin-inline: auto; }
.lm-entry figure { margin: 0; }
.lm-lead { color: var(--lm-text); font-size: clamp(1.03rem, 1.55vw, 1.22rem); }
.lm-kicker { display: flex; align-items: center; gap: .65em; margin: 0 0 14px; color: var(--lm-accent); font-size: .81rem; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; }
.lm-kicker::before { content: ""; width: 20px; height: 2px; background: currentColor; }
.lm-section-heading { margin-bottom: 30px; }
.lm-section-heading h2 { margin-bottom: 0; }
.screen-reader-text { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
.lm-skip:focus { z-index: 4; left: 10px; top: 10px; width: auto; height: auto; clip-path: none; padding: 10px; background: white; }
.lm-header { border-bottom: 1px solid var(--lm-line); background: #fff; }
.lm-header-inner { display: grid; min-height: 76px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.lm-brand-slot { justify-self: start; }
.lm-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: inherit; font-weight: 780; letter-spacing: -.045em; font-size: 1.47rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.lm-brand-emblem { display: grid; gap: 3px; align-content: center; justify-items: start; flex: 0 0 34px; height: 34px; padding-left: 8px; background: var(--lm-accent); border-radius: 2px; }
.lm-brand-emblem span { width: 16px; height: 3px; transform: skewX(-25deg); background: #fff; }
.lm-brand-emblem span:nth-child(2) { width: 12px; }
.lm-brand-emblem span:nth-child(3) { width: 8px; }
.custom-logo { display: block; max-width: min(195px, 36vw); max-height: 51px; object-fit: contain; }
.lm-nav-list, .lm-footer-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3vw, 43px); margin: 0; padding: 0; list-style: none; }
.lm-nav-list a { display: block; width: fit-content; padding-block: 22px 19px; border-bottom: 3px solid transparent; color: var(--lm-text); text-decoration: none; font-size: .96rem; font-weight: 650; }
.lm-nav-list a:hover, .lm-nav-list [aria-current="page"] { color: var(--lm-ink); border-color: var(--lm-accent); }
.lm-header-quote { justify-self: end; }
.lm-action, .lm-entry .wp-block-button__link {
  display: inline-flex; justify-content: center; align-items: center; min-height: 46px; max-width: 100%; padding: 11px 19px;
  background: var(--lm-accent); border: 1px solid var(--lm-accent); border-radius: 3px; color: #fff;
  font: inherit; font-size: .94rem; font-weight: 720; text-align: center; text-decoration: none; cursor: pointer;
}
.lm-action:hover, .lm-entry .wp-block-button__link:hover { background: #913618; border-color: #913618; color: #fff; }
.lm-entry .is-style-outline > .wp-block-button__link { border-color: #9ca7b3; background: transparent; color: var(--lm-ink); }
.lm-entry .is-style-outline > .wp-block-button__link:hover { border-color: var(--lm-ink); background: var(--lm-ink); color: #fff; }
.lm-entry .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.lm-entry .wp-block-buttons > .wp-block-button { margin: 0; }
.lm-home-hero { background: #1b1f26; }
.lm-entry .lm-banner { width: 100%; }
.lm-banner img { display: block; width: 100%; height: auto; }
.lm-intro-grid, .lm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); align-items: center; gap: clamp(28px, 5vw, 78px); }
.lm-intro-grid h2, .lm-cta h2 { margin-bottom: 0; }
.lm-products, .lm-case-gallery, .lm-capabilities { background: var(--lm-light); }
.lm-product-grid, .lm-info-grid, .lm-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.lm-product-card, .lm-info-card, .lm-gallery-item { background: #fff; border: 1px solid var(--lm-line); }
.lm-card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.lm-card-content, .lm-info-card { padding: clamp(19px, 2.4vw, 30px); }
.lm-card-content p, .lm-info-card p, .lm-feature-copy p, .lm-feature-copy li { color: var(--lm-text); }
.lm-feature-copy .lm-kicker { color: var(--lm-accent); }
.lm-feature-image { overflow: hidden; border: 1px solid var(--lm-line); border-radius: 4px; background: #fff; }
.lm-feature-image img { width: 100%; }
.lm-feature-copy > .wp-block-list, .lm-quote-aside > .wp-block-list { padding-left: 1.27em; margin-block: 16px 0; }
.lm-feature-copy li, .lm-quote-aside li { padding-left: .15em; margin-bottom: .55em; }
.lm-feature-copy li::marker, .lm-quote-aside li::marker { color: var(--lm-accent); }
.lm-cta { background: #25313e; color: #fff; }
.lm-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lm-cta-row .wp-block-buttons { flex-shrink: 0; margin: 0; }
.lm-cta h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.lm-cta p { color: #d8e0e8; margin-top: 11px; }
.lm-page-intro { padding-block: clamp(42px, 7vw, 93px); background: var(--lm-light); border-bottom: 1px solid var(--lm-line); }
.lm-page-intro h1 { max-width: 15ch; }
.lm-page-intro .lm-lead { max-width: 57ch; margin-top: 16px; }
.lm-about-image img { width: 100%; aspect-ratio: 1.36; object-fit: cover; object-position: center 46%; border-radius: 4px; }
.lm-contact-block:not(:has(.lm-company-contact)) { display: none; }
.lm-company-contact dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem 1.1rem; margin: 0; }
.lm-company-contact dt { font-weight: 650; }
.lm-company-contact dd { margin: 0; overflow-wrap: anywhere; }
.lm-case-specs { border-top: 1px solid var(--lm-line); }
.lm-case-specs .lm-split { align-items: start; }
.lm-entry .lm-spec-table table { border: 1px solid var(--lm-line); width: 100%; text-align: left; }
.lm-entry .lm-spec-table th, .lm-entry .lm-spec-table td { padding: .62rem .95rem; border: 0; border-bottom: 1px solid var(--lm-line); }
.lm-entry .lm-spec-table th { color: #fff; background: #25313e; }
.lm-entry .lm-spec-table tbody tr:nth-child(even) { background: var(--lm-light); }
.lm-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lm-gallery-item h3 { margin: 0; padding: 15px; font-size: 1.02rem; }
.lm-gallery-item .wp-block-image img { width: 100%; aspect-ratio: 1.12; object-fit: contain; background: #fff; }
.lm-catalog-photo img { aspect-ratio: 5/4; object-fit: contain; background: #f3f5f7; }
.lm-case-main .wp-block-image a, .lm-gallery-image a { display: block; cursor: zoom-in; }
.lm-image-dialog { border: 0; padding: 12px; background: #fff; border-radius: 5px; max-width: min(92vw, 940px); max-height: calc(100dvh - 30px); }
.lm-image-dialog::backdrop { background: #121923d9; }
.lm-image-dialog button { display: block; margin: 0 0 9px auto; padding: 6px 13px; background: #1b2633; color: #fff; border: none; border-radius: 3px; font: inherit; cursor: pointer; }
.lm-image-dialog img { display: block; max-height: calc(100dvh - 96px); object-fit: contain; }
.lm-quote-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: start; gap: clamp(22px, 4vw, 52px); }
.lm-form-panel { border: 1px solid var(--lm-line); padding: clamp(18px, 3vw, 36px); border-radius: 5px; }
.lm-form-panel h2 { margin-bottom: .7em; font-size: clamp(1.55rem, 3vw, 2.16rem); }
.lm-quote-aside { padding: clamp(23px, 3vw, 33px); color: #fff; background: #25313e; border-radius: 4px; }
.lm-quote-aside p { margin-top: 21px; color: #d8e0e8; }
.lm-quote-aside li::marker { color: var(--lm-accent-light); }
.lm-quote-form { display: grid; gap: 17px; }
.lm-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.lm-form-field { display: grid; gap: 5px; align-content: start; }
.lm-form-field > label { font-size: .93rem; font-weight: 690; }
.lm-required { color: var(--lm-accent); }
.lm-quote-form input:not([type=file]), .lm-quote-form textarea { width: 100%; padding: 10px 11px; min-height: 44px; border: 1px solid #b9c3cd; border-radius: 3px; background: #fff; color: var(--lm-ink); font: inherit; }
.lm-quote-form input[type=file] { width: 100%; max-width: 100%; overflow: clip; padding: 7px; border: 1px dashed #a6b4c1; border-radius: 3px; background: var(--lm-light); color: var(--lm-ink); font: inherit; font-size: .9rem; cursor: pointer; }
.lm-quote-form input[type=file]::file-selector-button { margin-right: .6em; border: 0; padding: .5em .65em; border-radius: 2px; background: #e1e7ed; color: var(--lm-ink); font: inherit; font-weight: 680; cursor: pointer; }
.lm-quote-form textarea { resize: vertical; }
.lm-field-guide { font-size: .87rem; color: var(--lm-text); }
.lm-quote-form button { justify-self: start; }
.lm-form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lm-form-notice { margin: 0 0 19px; padding: 12px 14px; background: #fff3ed; border-left: 4px solid var(--lm-accent); }
.lm-form-notice.is-success { background: #eaf7ef; border-color: #277545; }
.lm-form-notice.is-demo { background: var(--lm-light); border-color: #5d6c7a; }
.lm-footer { padding: 41px 0 19px; background: #171e27; color: #fff; }
.lm-footer-grid { display: grid; grid-template-columns: 1.35fr auto minmax(0, .8fr); gap: 24px; align-items: start; }
.lm-footer-brand p { margin-top: 11px; color: #b9c4ce; font-size: .92rem; }
.lm-footer-nav ul { gap: 12px 21px; }
.lm-footer-nav a, .lm-footer-contact a { color: #e0e8f0; text-decoration: none; font-size: .94rem; overflow-wrap: anywhere; }
.lm-footer-nav a:hover, .lm-footer-nav a[aria-current="page"], .lm-footer-contact a:hover { text-decoration: underline; }
.lm-footer-contact { display: grid; gap: 7px; }
.lm-footer-bottom { margin-top: 28px; padding-top: 13px; border-top: 1px solid #43505e; color: #b9c4ce; }

@media (max-width: 760px) {
  .lm-header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; gap: 0 12px; padding-top: 11px; }
  .lm-header-quote { grid-column: 2; grid-row: 1; min-height: 39px; padding: 7px 11px; font-size: .88rem; }
  .lm-nav { grid-column: 1 / -1; }
  .lm-nav-list { gap: 0 clamp(12px, 4vw, 24px); }
  .lm-nav-list a { padding-block: 8px; }
  .lm-intro-grid, .lm-split, .lm-quote-grid { grid-template-columns: minmax(0, 1fr); }
  .lm-product-grid, .lm-info-grid, .lm-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lm-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
}
@media (max-width: 450px) {
  .lm-brand { font-size: 1.29rem; }
  .lm-brand-emblem { width: 30px; height: 30px; flex-basis: 30px; }
  .lm-intro-grid { gap: 16px; }
  .lm-product-grid, .lm-info-grid, .lm-form-row { grid-template-columns: minmax(0, 1fr); }
  .lm-cta-row { flex-direction: column; align-items: start; }
}
