/*
Theme Name: Manas Kopnes Landing
Theme URI: https://www.manaskopnes.lv
Author: Manus
Description: Trīsvalodu, responsīva landing page tēma koka jumta kopņu uzņēmumam.
Version: 1.4.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: manas-kopnes
*/

:root {
  --ink: #111816;
  --ink-soft: #33413b;
  --green: #008271;
  --green-strong: #008271;
  --green-soft: #f3f3f1;
  --paper: #f4f2ec;
  --panel: #ffffff;
  --timber: #008271;
  --line: rgba(17, 24, 22, .14);
  --muted: #66726d;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(17, 24, 22, .12);
  --header-bg: rgba(244, 242, 236, .94);
  --hero-overlay: rgba(6, 27, 18, .72);
  --max: 1200px;
  --ease: 220ms cubic-bezier(.2,.7,.2,1);
}

html[data-theme="xtm"] {
  --ink: #272b31;
  --ink-soft: #484e55;
  --green: #008271;
  --green-strong: #008271;
  --green-soft: #f3f3f1;
  --paper: #ffffff;
  --panel: #ffffff;
  --timber: #008271;
  --line: rgba(39, 43, 49, .15);
  --muted: #666d74;
  --radius: 0;
  --shadow: 0 16px 32px rgba(31, 38, 47, .12);
  --header-bg: transparent;
  --hero-overlay: rgba(29, 39, 51, .4);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 104px) + var(--header-offset, 0px) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background var(--ease), color var(--ease);
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--timber); outline-offset: 4px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 124px) 0; position: relative; }
.section--tight { padding: 38px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--green { background: var(--green); color: #fff; }
.section--panel { background: var(--panel); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: var(--header-offset, 0px); z-index: 60; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 208px 1fr auto; align-items: center; gap: 28px; }
.brand { width: 200px; display: inline-flex; align-items: center; }
.brand img { width: 188px; height: 64px; padding: 0; background: transparent; object-fit: contain; object-position: center; }
.brand img.brand-logo--provided { filter: brightness(0); }
html[data-theme="xtm"] .brand img.brand-logo--provided { filter: none; }
.primary-nav { justify-self: center; display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.primary-nav a { position: relative; padding: 30px 0 26px; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 21px; height: 2px; background: var(--green); transition: right var(--ease); }
.primary-nav a:hover::after { right: 0; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; border: 1px solid var(--line); background: var(--panel); }
.lang-switch a { min-width: 37px; height: 36px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 800; }
.lang-switch a[aria-current="page"] { background: var(--green); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 40px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform var(--ease), opacity var(--ease); }

.hero { min-height: 760px; display: flex; align-items: stretch; position: relative; overflow: hidden; background: #0c2418; color: #fff; }
.hero-media { position: absolute; inset: 0; background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--hero-image); background-size: cover; background-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, #000, transparent 75%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 690px) 1fr; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.hero-copy { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--timber); font-size: 13px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .cta-band h2 { margin: 0; font-weight: 850; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.hero h1 { max-width: 760px; font-size: clamp(50px, 7vw, 92px); }
.hero-lead { max-width: 650px; margin: 26px 0 0; color: rgba(255,255,255,.78); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; background: var(--green); color: #fff; cursor: pointer; font-weight: 800; transition: transform var(--ease), background var(--ease), color var(--ease); }
.button:hover { transform: translateY(-2px); background: var(--green-strong); }
.button--light { background: #fff; color: #13211a; }
.button--ghost { border-color: rgba(255,255,255,.4); background: transparent; color: #fff; }
.button--ghost:hover { background: #fff; color: #13211a; }
.button svg { width: 18px; height: 18px; }
.hero-proof { position: absolute; right: 0; bottom: 0; z-index: 3; width: min(520px, 42vw); padding: 22px 28px; background: var(--timber); color: #162019; font-weight: 850; letter-spacing: -.01em; }
.hero-proof strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .13em; opacity: .65; }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--panel); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { min-height: 130px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 24px 34px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); }
.trust-icon svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: 17px; line-height: 1.25; }
.trust-item span { color: var(--muted); font-size: 13px; }

.section-heading { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { max-width: 620px; font-size: clamp(38px, 5vw, 64px); }
.section-heading p { max-width: 580px; margin: 0; color: var(--muted); font-size: 18px; }
.section--dark .section-heading p { color: rgba(244,242,236,.65); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { min-height: 300px; padding: 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); transition: transform var(--ease), background var(--ease); }
.service:hover { transform: translateY(-4px); background: var(--green-soft); }
.service-number { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.service h3 { margin: 72px 0 14px; font-size: 28px; letter-spacing: -.03em; }
.service p { margin: 0; max-width: 520px; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 640px; }
.why-visual { position: relative; min-height: 500px; background: var(--green); overflow: hidden; }
.why-visual::before, .why-visual::after { content: ""; position: absolute; background: var(--timber); transform-origin: left center; }
.why-visual::before { width: 105%; height: 28px; left: -2%; top: 46%; transform: rotate(-35deg); }
.why-visual::after { width: 105%; height: 28px; left: 10%; top: 46%; transform: rotate(35deg); }
.truss-lines { position: absolute; inset: 11%; border-left: 24px solid rgba(255,255,255,.18); border-right: 24px solid rgba(255,255,255,.18); border-bottom: 24px solid rgba(255,255,255,.18); clip-path: polygon(50% 0, 100% 78%, 100% 100%, 0 100%, 0 78%); }
.why-copy { padding: clamp(46px, 7vw, 90px); background: var(--ink); color: var(--paper); }
.why-copy .eyebrow { color: var(--timber); }
.why-copy h2 { margin: 0 0 34px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.045em; line-height: 1; }
.benefit { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); }
.benefit:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.benefit-index { color: var(--timber); font-weight: 900; }
.benefit h3 { margin: 0 0 6px; font-size: 21px; }
.benefit p { margin: 0; color: rgba(244,242,236,.62); }

.process { counter-reset: step; }
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.process-step { counter-increment: step; min-height: 300px; padding: 30px 26px; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; }
.process-step::before { content: "0" counter(step); display: block; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.process-step h3 { margin: 90px 0 12px; font-size: 24px; line-height: 1.1; }
.process-step p { margin: 0; color: var(--muted); }

.solutions-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(2, 280px); gap: 16px; }
.solution { position: relative; overflow: hidden; padding: 32px; background: var(--panel); border: 1px solid var(--line); }
.solution:first-child { grid-row: 1 / 3; background: var(--green); color: #fff; }
.solution::after { content: ""; position: absolute; right: -15%; bottom: -30%; width: 76%; aspect-ratio: 1; border: 28px solid currentColor; opacity: .08; transform: rotate(45deg); }
.solution h3 { position: relative; z-index: 2; max-width: 370px; margin: 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.04em; line-height: 1; }
.solution p { position: absolute; z-index: 2; left: 32px; right: 32px; bottom: 30px; margin: 0; max-width: 460px; color: var(--muted); }
.solution:first-child p { color: rgba(255,255,255,.7); }

.quality-band { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 60px; }
.quality-band h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); letter-spacing: -.045em; line-height: 1; }
.quality-copy { color: rgba(255,255,255,.72); }
.quality-list { margin: 24px 0 0; padding: 0; list-style: none; }
.quality-list li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.22); font-weight: 700; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 25px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font-size: 20px; font-weight: 800; }
.faq-question span:last-child { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); transition: transform var(--ease); }
.faq-question[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.faq-answer { max-width: 760px; padding: 0 52px 24px 0; color: var(--muted); }
.faq-answer[hidden] { display: none; }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: start; }
.contact-copy h2 { margin: 0 0 24px; font-size: clamp(44px, 6vw, 76px); letter-spacing: -.05em; line-height: .96; }
.contact-copy > p { color: rgba(244,242,236,.68); font-size: 18px; }
.contact-details { margin-top: 42px; display: grid; gap: 10px; }
.contact-details a { font-size: 20px; font-weight: 800; }
.contact-form { padding: clamp(28px, 5vw, 52px); background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); padding: 14px 15px; }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 13px; }
.consent input { margin-top: 4px; }
.form-status { margin: 0 0 20px; padding: 12px 14px; background: var(--green-soft); border-left: 3px solid var(--green); }
.contact-form .button { width: 100%; margin-top: 4px; }

.site-footer { background: #0b100e; color: #dbe3df; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; align-items: start; }
.footer-brand img { width: 180px; height: 80px; padding: 0; background: transparent; object-fit: contain; object-position: center; filter: none; }
.footer-brand p { max-width: 380px; color: #89958f; }
.footer-links { display: grid; gap: 10px; font-size: 14px; }
.footer-links strong { margin-bottom: 8px; color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: #79857f; font-size: 13px; }

html[data-theme="xtm"] body { background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
html[data-theme="xtm"] .site-header { position: fixed; inset: var(--header-offset, 0px) 0 auto; background: rgba(32,39,48,.97); border: 0; backdrop-filter: none; color: #fff; transition: background var(--ease), box-shadow var(--ease); }
html[data-theme="xtm"].header-ready:not(.header-scrolled) body:not(.menu-open) .site-header { background: transparent; }
html[data-theme="xtm"].header-scrolled .site-header { box-shadow: 0 4px 20px rgba(0,0,0,.14); }
body.admin-bar { --header-offset: 32px; }
@media (max-width: 782px) { body.admin-bar { --header-offset: 46px; } }
@media (max-width: 600px) { body.admin-bar { --header-offset: 0px; } }
html[data-theme="xtm"] .header-inner { min-height: 104px; grid-template-columns: 220px 1fr auto; }
html[data-theme="xtm"] .brand img { filter: none; width: 200px; height: 72px; }
html[data-theme="xtm"] .primary-nav { justify-self: end; gap: 26px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
html[data-theme="xtm"] .primary-nav a { padding: 43px 0 37px; }
html[data-theme="xtm"] .primary-nav a::after { bottom: 31px; background: var(--timber); }
html[data-theme="xtm"] .lang-switch { margin-left: 18px; background: transparent; border-color: rgba(255,255,255,.35); }
html[data-theme="xtm"] .lang-switch a { color: #fff; }
html[data-theme="xtm"] .lang-switch a[aria-current="page"] { background: var(--timber); color: #fff; }
html[data-theme="xtm"] .menu-toggle { border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
html[data-theme="xtm"] .hero { min-height: max(820px, 100svh); background: #27303a; }
html[data-theme="xtm"] .hero-media { filter: none; background-position: center; }
html[data-theme="xtm"] .hero-media::after { display: none; }
html[data-theme="xtm"] .hero-inner { align-items: end; grid-template-columns: minmax(0, 760px) 1fr; padding-top: 180px; padding-bottom: 76px; }
html[data-theme="xtm"] .hero-copy { max-width: 760px; }
html[data-theme="xtm"] .eyebrow { color: var(--green); font-size: 11px; letter-spacing: .16em; }
html[data-theme="xtm"] .hero h1 { max-width: 680px; font-size: clamp(36px, 4vw, 56px); line-height: 1.02; letter-spacing: -.045em; }
html[data-theme="xtm"] .hero-lead { max-width: 590px; color: rgba(255,255,255,.82); font-size: 18px; }
html[data-theme="xtm"] .button { min-height: 54px; padding-inline: 28px; background: var(--timber); color: #fff; border: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
html[data-theme="xtm"] .button:hover { background: #fff; color: #20252b; }
html[data-theme="xtm"] .button--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.65); }
html[data-theme="xtm"] .hero-proof { display: none; }
html[data-theme="xtm"] .trust-strip { background: #f3f3f1; border: 0; }
html[data-theme="xtm"] .trust-item { min-height: 118px; border-color: rgba(39,43,49,.12); }
html[data-theme="xtm"] .trust-icon { border: 0; color: var(--timber); }
html[data-theme="xtm"] .section { padding: clamp(76px, 8vw, 118px) 0; }
html[data-theme="xtm"] .section-heading { grid-template-columns: .78fr 1.22fr; align-items: start; }
html[data-theme="xtm"] .section-heading h2 { font-size: clamp(36px, 4.4vw, 58px); }
html[data-theme="xtm"] .services-grid { gap: 26px; border: 0; }
html[data-theme="xtm"] .service { min-height: 270px; border: 0; border-top: 4px solid var(--timber); background: #f3f3f1; }
html[data-theme="xtm"] .service:hover { transform: translateY(-5px); background: #e9e9e6; }
html[data-theme="xtm"] .service-number { color: #73787d; }
html[data-theme="xtm"] .why-grid { grid-template-columns: 1fr 1fr; min-height: 680px; background: #fff; }
html[data-theme="xtm"] .why-visual { order: 2; min-height: 680px; background-color: #333b45; background-image: var(--detail-image); background-size: cover; background-position: center; filter: grayscale(1); }
html[data-theme="xtm"] .why-visual::before,
html[data-theme="xtm"] .why-visual::after,
html[data-theme="xtm"] .why-visual .truss-lines { display: none; }
html[data-theme="xtm"] .why-copy { order: 1; padding: clamp(50px, 7vw, 100px); background: #fff; color: var(--ink); }
html[data-theme="xtm"] .why-copy h2 { max-width: 580px; font-size: clamp(38px, 4.8vw, 62px); }
html[data-theme="xtm"] .benefit { border-color: var(--line); }
html[data-theme="xtm"] .benefit:last-child { border-color: var(--line); }
html[data-theme="xtm"] .benefit p { color: var(--muted); }
html[data-theme="xtm"] .benefit-index { color: var(--timber); }
html[data-theme="xtm"] .process-grid { border-top: 3px solid var(--timber); }
html[data-theme="xtm"] .process-step { border-color: var(--line); }
html[data-theme="xtm"] .process-step::before { color: #8a8f94; }
html[data-theme="xtm"] .section--panel { background: #f3f3f1; }
html[data-theme="xtm"] .solutions-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 330px); gap: 24px; }
html[data-theme="xtm"] .solution { border: 0; background-color: #2d343d; background-image: linear-gradient(rgba(34,42,52,.36), rgba(34,42,52,.78)), var(--solution-image); background-size: cover; background-position: center; color: #fff; filter: grayscale(1); transition: filter var(--ease), transform var(--ease); }
html[data-theme="xtm"] .solution:first-child { grid-row: 1 / 3; background-color: #2d343d; }
html[data-theme="xtm"] .solution:hover { filter: grayscale(0); transform: translateY(-4px); }
html[data-theme="xtm"] .solution::after { display: none; }
html[data-theme="xtm"] .solution h3 { color: #fff; }
html[data-theme="xtm"] .solution p,
html[data-theme="xtm"] .solution:first-child p { color: rgba(255,255,255,.78); }
html[data-theme="xtm"] .section--green { background: var(--timber); color: #fff; }
html[data-theme="xtm"] .quality-copy { color: rgba(255,255,255,.85); }
html[data-theme="xtm"] .quality-list li { border-color: rgba(255,255,255,.35); }
html[data-theme="xtm"] .faq-list { border-top: 3px solid var(--timber); }
html[data-theme="xtm"] .section--dark { background: #29313b; color: #fff; }
html[data-theme="xtm"] .contact-form { background: #fff; color: var(--ink); box-shadow: 12px 12px 0 var(--timber); }
html[data-theme="xtm"] .contact-form .button { width: 100%; background: var(--timber); }
html[data-theme="xtm"] .site-footer { background: #202730; }

@media (max-width: 1040px) {
  .header-inner { grid-template-columns: 178px 1fr auto; }
  .brand { width: 170px; }
  .brand img { width: 165px; }
  .primary-nav { gap: 14px; font-size: 12px; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-visual { min-height: 380px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step { border-bottom: 1px solid var(--line); }
  .hero-proof { width: 48vw; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 70px; grid-template-columns: 1fr auto; }
  .brand img { height: 54px; }
  .menu-toggle { display: block; }
  .header-tools { justify-self: end; }
  .primary-nav { position: fixed; inset: 70px 0 auto; display: none; padding: 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; }
  body.menu-open .primary-nav { display: flex; }
  .primary-nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .hero { min-height: 720px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 150px; align-items: end; }
  .hero h1 { font-size: clamp(46px, 14vw, 72px); }
  .hero-proof { left: 14px; right: 14px; bottom: 20px; width: auto; }
  .trust-grid, .section-heading, .services-grid, .quality-band, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: auto; padding: 22px 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { gap: 18px; }
  .service { min-height: 260px; }
  .service h3 { margin-top: 48px; }
  .solutions-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 300px); }
  .solution:first-child { grid-row: auto; }
  .contact-grid { gap: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  html[data-theme="xtm"] .site-header { position: fixed; }
  html[data-theme="xtm"] .primary-nav { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-height, 82px) - var(--header-offset, 0px)); overflow-y: auto; background: #29313b; color: #fff; }
  html[data-theme="xtm"] .primary-nav a { padding: 14px 0; }
  html[data-theme="xtm"] .hero { min-height: 100svh; }
  html[data-theme="xtm"] .hero-inner { padding-top: 150px; padding-bottom: 64px; }
  html[data-theme="xtm"] .why-grid { grid-template-columns: 1fr; }
  html[data-theme="xtm"] .why-visual { order: 1; min-height: 420px; }
  html[data-theme="xtm"] .why-copy { order: 2; }
  html[data-theme="xtm"] .solutions-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 330px); }
  html[data-theme="xtm"] .solution:first-child { grid-row: auto; }
}

@media (max-width: 520px) {
  .lang-switch a { min-width: 32px; }
  .hero-actions .button { width: 100%; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 240px; border-right: 0; }
  .process-step h3 { margin-top: 50px; }
  .why-copy { padding: 42px 24px; }
  .contact-form { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Accessible language links and truthful enquiry status, without layout changes. */
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; }
.hero-tagline { margin: 24px 0 0; max-width: 650px; font-size: clamp(18px, 2vw, 23px); font-weight: 700; line-height: 1.35; color: #fff; }
.hero-tagline + .hero-lead { margin-top: 14px; }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.company-detail { display: block; font-size: 15px; line-height: 1.6; }
.contact-form .form-status a { text-decoration: underline; overflow-wrap: anywhere; }
.contact-form button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.form-status[data-state="error"] { color: #a62424; }
.form-status[data-state="success"] { color: var(--green); }

/* Same imagery and overlays, rendered as descriptive HTML images for search. */
.hero-media { background-image: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(var(--hero-overlay), var(--hero-overlay)); }
.hero-media::after { z-index: 2; }
.detail-photo, .solution-photo { display: none; }
html[data-theme="xtm"] .why-visual,
html[data-theme="xtm"] .solution { background-image: none; }
html[data-theme="xtm"] .detail-photo,
html[data-theme="xtm"] .solution-photo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html[data-theme="xtm"] .solution::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(34,42,52,.36), rgba(34,42,52,.78)); }
.image-note { margin: 16px 0 0; max-width: 760px; color: var(--muted); font-size: 13px; }

/* Clear enquiry details; existing brand palette and imagery remain unchanged. */
.installation-note { margin: 24px 0 0; padding-left: 18px; border-left: 3px solid var(--green); color: var(--ink-soft); font-size: 15px; }
.form-help { font-size: 13px; line-height: 1.6; margin: 8px 0 14px; color: var(--muted); }
.form-help a { text-decoration: underline; }
.file-list { margin: 10px 0 0; padding-left: 20px; font-size: 13px; overflow-wrap: anywhere; }
.field input[type="file"] { padding: 10px; font-size: 13px; }
.field input::file-selector-button { border: 0; background: var(--green-soft); color: var(--ink); padding: 8px 10px; margin-right: 10px; cursor: pointer; }
.field-error { color: #9c2323; font-size: 13px; margin: 6px 0 0; }
.field [aria-invalid="true"] { border-color: #9c2323; }
@media (max-width: 520px) { .contact-copy h2 { overflow-wrap: anywhere; } }

@media (max-width: 780px) {
  html[data-theme="xtm"] .header-inner { grid-template-columns: 1fr auto; min-height: 82px; gap: 8px; }
  html[data-theme="xtm"] .brand { width: 150px; }
  html[data-theme="xtm"] .brand img { width: 150px; height: 60px; }
  html[data-theme="xtm"] .lang-switch { margin-left: 0; }
  html[data-theme="xtm"] .primary-nav { top: 100%; }
  html[data-theme="xtm"] .hero-inner { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="xtm"] .hero-copy { max-width: 100%; }
  html[data-theme="xtm"] .hero h1 { font-size: clamp(40px, 11vw, 60px); }
  html[data-theme="xtm"] .section-heading { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html[data-theme="xtm"] .why-copy { padding: 42px 24px; }
}

/* Managed verification and five-step process. User-provided swatch RGB(0,130,113) #008271. */
.process-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.process-step { min-width:0; padding-inline:24px; }
.process-step h3 { font-size:clamp(20px,1.9vw,27px); overflow-wrap:break-word; }
.human-heading { font-weight:600; margin:0 0 12px; }
.human-refresh { font:inherit; font-size:14px; background:transparent; border:1px solid currentColor; color:var(--green); padding:8px 12px; cursor:pointer; }
.human-refresh:disabled { opacity:.55; cursor:wait; }
[data-turnstile-widget] { width:100%; min-width:0; }
html[data-theme="xtm"] .lang-switch a[aria-current="page"],
html[data-theme="xtm"] .button:not(.button--ghost) { color:#fff; }
html[data-theme="xtm"] .benefit-index, html[data-theme="xtm"] .trust-icon { color:var(--green); }
html[data-theme="xtm"] .human-refresh { color:var(--green); }
@media (max-width:1040px) {
 .process-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .process-step:nth-child(2n) { border-right:0; }
 .process-step:last-child { grid-column:1/-1; }
}
@media (max-width:780px) {
 html[data-theme="xtm"] .hero h1 { font-size:clamp(34px,7vw,46px); }
}
@media (max-width:520px) {
 .process-grid { grid-template-columns:1fr; }
 .process-step:last-child { grid-column:auto; }
}

/* One brand green throughout every layout and every green text/accent. */
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }

/* Local image CAPTCHA: readable at desktop and mobile widths. */
.captcha-image { display:block; width:320px; max-width:100%; height:auto; margin:12px 0 18px; border:1px solid var(--line); }
.captcha-image[hidden] { display:none; }
#human-answer { max-width:320px; letter-spacing:.14em; text-transform:uppercase; }
.human-check .human-refresh { margin-top:8px; }
