/*
Theme Name: TREE Industrial Production
Theme URI: https://www.tree.hr/
Author: Tree d.o.o.
Description: Production multilingual theme for Tree Industrial Safety Solutions.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: tree-industrial-production
*/

:root {
  --ink: #132329;
  --forest: #163f38;
  --forest-deep: #0d2b29;
  --steel: #315d70;
  --signal: #d4ef72;
  --paper: #f4f6f3;
  --white: #ffffff;
  --muted: #506168;
  --line: #d7dfdc;
  --danger: #9a2f2f;
  --max: 1240px;
  --header: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--forest); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }
button, summary { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #0b63ce; outline-offset: 3px; box-shadow: 0 0 0 6px #ffffff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; background: var(--white); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.section-inner { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header); background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.header-inner { width: min(calc(100% - 40px), 1480px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 30px; }
.site-brand { display: flex; align-items: center; width: 128px; height: 68px; flex: none; }
.site-brand img { width: 128px; height: 68px; object-fit: contain; }
.primary-panel { margin-left: auto; display: flex; align-items: center; gap: 21px; }
.primary-nav ul { display: flex; align-items: center; gap: 19px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--forest); text-decoration: underline; text-decoration-color: #9abb42; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 21px; border: 0; border-radius: 3px; background: var(--signal); color: #173127; font-weight: 800; line-height: 1.25; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.button:hover { background: #e2f69a; transform: translateY(-1px); }
.header-cta { min-height: 44px; padding: 10px 17px; font-size: 14px; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); align-items: center; gap: 9px; font-weight: 750; cursor: pointer; }
.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon i { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.language-switcher { position: relative; }
.language-switcher summary { min-width: 52px; padding: 9px 7px; cursor: pointer; font-size: 13px; font-weight: 800; list-style: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher ul { position: absolute; top: calc(100% + 12px); right: 0; min-width: 170px; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 35px rgba(13,43,41,.12); list-style: none; }
.language-switcher a { display: block; padding: 9px 10px; color: var(--ink); text-decoration: none; }
.language-switcher a:hover, .language-switcher a[aria-current="page"] { background: var(--paper); color: var(--forest); }

.home-hero { position: relative; height: calc(100svh - 140px); min-height: 520px; max-height: 740px; overflow: hidden; background: var(--forest-deep); color: var(--white); }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.01); }
.tree-slide { opacity: 0; visibility: hidden; transform: scale(1.01); transition: opacity .9s ease, visibility 0s linear .9s, transform 7s ease; }
.tree-slide.is-active { opacity: 1; visibility: visible; transform: scale(1.035); transition-delay: 0s; }
.slideshow-controls { position: absolute; z-index: 3; right: max(24px,calc((100% - var(--max))/2)); bottom: 25px; display: none; align-items: center; gap: 9px; }
.js .slideshow-controls { display: flex; }
.slideshow-controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.62); border-radius: 2px; background: rgba(6,26,26,.72); color: var(--white); cursor: pointer; }
.slideshow-controls button:hover { background: var(--white); color: var(--forest-deep); }
.slide-dots { display: flex; gap: 7px; padding: 0 5px; }
.slide-dots button { width: 10px; height: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); }
.slide-dots button[aria-current="true"] { background: var(--signal); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.home-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,26,.72) 0%, rgba(6,26,26,.58) 46%, rgba(6,26,26,.28) 100%); }
.home-hero-content { position: relative; z-index: 1; width: min(calc(100% - 48px), var(--max)); height: 100%; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 24px; }
.hero-kicker, .section-kicker { margin: 0 0 15px; color: var(--signal); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.home-hero h1 { margin: 0; font-size: 76px; line-height: 1; letter-spacing: 0; }
.hero-statement { max-width: 740px; margin: 24px 0 29px; color: #e6efeb; font-size: 21px; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.text-action { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 750; }
@keyframes hero-image { from { opacity: .35; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }

.service-index { padding: 74px 0 82px; background: var(--paper); }
.service-index .section-kicker { color: var(--forest); }
.service-index h2 { max-width: 680px; margin: 0 0 41px; font-size: 38px; line-height: 1.16; letter-spacing: 0; }
.service-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.service-card { display: flex; min-width: 0; min-height: 310px; flex-direction: column; padding: 27px 25px 25px; border: 1px solid #bac7c2; border-top: 4px solid var(--forest); background: var(--white); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: var(--forest); box-shadow: 0 14px 30px rgba(13,43,41,.09); }
.service-card>span { color: var(--forest); font-size: 12px; font-weight: 850; }
.service-card h3 { margin: 24px 0 15px; font-size: 23px; line-height: 1.18; }
.service-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.58; }
.service-card a { margin-top: auto; color: var(--forest); font-weight: 850; }
.service-list { margin: 0; padding: 0; border-top: 1px solid #bac7c2; list-style: none; }
.service-list li { border-bottom: 1px solid #bac7c2; }
.service-list a { display: grid; grid-template-columns: 52px minmax(220px,.75fr) minmax(300px,1fr) 26px; align-items: center; gap: 24px; min-height: 118px; padding: 20px 5px; color: var(--ink); text-decoration: none; transition: color .2s ease, padding .2s ease, background-color .2s ease; }
.service-list a:hover { padding-inline: 15px; background: var(--white); color: var(--forest); }
.service-list span { color: var(--steel); font-size: 13px; font-weight: 850; }
.service-list strong { font-size: 24px; line-height: 1.2; }
.service-list small { color: var(--muted); font-size: 15px; line-height: 1.5; }
.service-list b { font-size: 22px; }

.breadcrumbs { display: flex; align-items: center; gap: 9px; min-height: 48px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.page-hero { padding: 72px 0 76px; background: var(--forest); color: var(--white); }
.page-hero h1 { max-width: 930px; margin: 0; font-size: 58px; line-height: 1.05; letter-spacing: 0; }
.page-hero p:not(.hero-kicker) { max-width: 840px; margin: 21px 0 27px; color: #e0ebe6; font-size: 19px; line-height: 1.55; }
.page-content { padding-block: 68px 84px; }
.tree-content-block { display: grid; grid-template-columns: minmax(0, 800px); padding: 52px 0; border-bottom: 1px solid var(--line); }
.tree-content-block:first-child { padding-top: 0; }
.tree-content-block.has-media { grid-template-columns: minmax(0,.85fr) minmax(360px,1.15fr); align-items: center; gap: 70px; }
.tree-content-block.has-media:nth-child(even) .tree-content-copy { order: 2; }
.tree-content-block.has-media:nth-child(even) .tree-project-media { order: 1; }
.tree-content-copy h2, .tree-faq h2 { margin: 0 0 22px; font-size: 36px; line-height: 1.15; letter-spacing: 0; }
.tree-content-copy p { margin: 0 0 18px; color: #30454d; font-size: 17px; }
.tree-project-media { margin: 0; overflow: hidden; background: #dbe2df; }
.tree-project-media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .55s ease; }
.tree-project-media:hover img { transform: scale(1.025); }
.tree-check-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 30px; margin: 27px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.tree-check-list li { position: relative; min-height: 56px; padding: 15px 0 13px 25px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tree-check-list li::before { content: ''; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; background: var(--signal); border: 2px solid var(--forest); }
.tree-text-link { font-weight: 800; }
.tree-faq { max-width: 900px; padding: 64px 0 10px; }
.tree-faq-list { border-top: 1px solid var(--line); }
.tree-faq details { border-bottom: 1px solid var(--line); }
.tree-faq summary { position: relative; padding: 20px 42px 20px 0; cursor: pointer; font-size: 18px; font-weight: 800; list-style: none; }
.tree-faq summary::-webkit-details-marker { display: none; }
.tree-faq summary::after { content: '+'; position: absolute; right: 4px; top: 15px; font-size: 27px; font-weight: 400; }
.tree-faq details[open] summary::after { content: '−'; }
.tree-faq details p { max-width: 760px; margin: 0; padding: 0 40px 22px 0; color: var(--muted); }
.related-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.related-links a { color: var(--forest); font-weight: 800; }
.legacy-content>section, .legacy-content>.tree-protection-layout { padding: 48px 0; border-bottom: 1px solid var(--line); }
.legacy-content h2 { margin: 0 0 20px; font-size: 34px; line-height: 1.18; }
.legacy-content h3 { margin: 0 0 13px; font-size: 21px; line-height: 1.25; }
.legacy-content p { margin: 0 0 17px; color: #30454d; font-size: 17px; line-height: 1.68; }
.legacy-content p:last-child { margin-bottom: 0; }
.tree-passive-grid, .tree-mount-grid, .tree-insulation-material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-top: 28px; }
.tree-insulation-grid, .tree-about-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px; }
.tree-passive-card, .tree-mount-card, .tree-insulation-card { min-width: 0; padding: 27px; border: 1px solid var(--line); border-top: 3px solid var(--forest); background: var(--paper); }
.tree-passive-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; background: #e4ece8; }
.tree-passive-icon img { width: 50px; height: 50px; }
.tree-passive-hilti, .tree-about-partners { margin-inline: -30px; padding-inline: 30px !important; background: #edf3ee; }
.tree-passive-inquiry, .tree-mount-inquiry, .tree-insulation-inquiry, .tree-about-inquiry { margin-inline: -30px; padding-inline: 30px !important; background: var(--forest); color: var(--white); }
.tree-passive-inquiry p, .tree-mount-inquiry p, .tree-insulation-inquiry p, .tree-about-inquiry p { color: #e2ece7; }
.tree-mount-split { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.8fr); gap: 45px; }
.tree-mount-note { padding: 26px; border-left: 4px solid var(--signal); background: var(--paper); }
.tree-mount-kicker, .tree-partner-label, .tree-about-kicker { color: var(--forest) !important; font-size: 12px !important; font-weight: 850; letter-spacing: .12em; }
.tree-protection-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.65fr); gap: 48px; }
.tree-protection-copy>h2 { margin-top: 42px; }
.tree-protection-sidebar { align-self: start; padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.tree-protection-sidebar .tree-tb-logo { width: 100%; height: auto; margin-bottom: 25px; }
.tree-protection-links { margin: 0; padding: 0; list-style: none; }
.tree-protection-links li { padding: 11px 0; border-top: 1px solid var(--line); }
.tree-protection-contact { margin-top: 40px; padding: 28px; border-left: 4px solid var(--signal); background: var(--forest); color: var(--white); }
.tree-protection-contact p, .tree-protection-contact a { color: #e8f0ec; }
.tree-partner-row { display: grid; grid-template-columns: minmax(230px,.7fr) minmax(0,1.5fr); gap: 44px; align-items: start; }
.tree-partner-brand { display: grid; min-height: 180px; place-items: center; padding: 25px; border: 1px solid var(--line); background: var(--paper); }
.tree-partner-brand img { max-width: 100%; height: auto; }
.tree-partner-name { color: var(--forest); font-size: 30px; font-weight: 850; }
.tree-partner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.tree-about-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 30px; }
.tree-about-facts>div { display: flex; min-height: 120px; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.tree-about-facts strong { color: var(--forest); font-size: 24px; }
.tree-about-facts span { margin-top: 7px; color: var(--muted); }


/* Home introduction: copy above, larger connected project imagery below */
.tree-home-intro {
  display: block;
  margin: 0 0 64px;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--white);
  box-shadow: 0 18px 46px rgba(13,43,41,.10);
}
.tree-home-intro-copy {
  padding: 48px 56px 44px;
}
.tree-home-intro-copy .section-kicker { color: var(--signal); margin-bottom: 13px; }
.tree-home-intro-copy h2 {
  max-width: 860px;
  margin: 0 0 20px;
  color: var(--white);
  font-size: 42px;
  line-height: 1.1;
}
.tree-home-intro-copy p {
  max-width: 900px;
  margin: 0 0 14px;
  color: #dce8e4;
  font-size: 17px;
  line-height: 1.67;
}
.tree-home-intro-copy p:last-child { margin-bottom: 0; }
.tree-home-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  min-height: 355px;
  overflow: hidden;
  background: #102d2c;
}
.tree-home-collage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}
.tree-home-collage figure {
  position: relative;
  min-width: 0;
  min-height: 355px;
  margin: 0;
  overflow: hidden;
  border-right: 3px solid rgba(255,255,255,.92);
}
.tree-home-collage figure:last-child { border-right: 0; }
.tree-home-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  filter: saturate(1.04) contrast(1.03);
}
.tree-home-collage figure:nth-child(1) img { object-position: 50% center; }
.tree-home-collage figure:nth-child(2) img { object-position: 50% center; }
.tree-home-collage figure:nth-child(3) img { object-position: 52% center; }

.home-content { padding-top: 80px; }
.home-content .tree-content-block { min-height: 520px; }
.home-content .tree-faq { margin-bottom: 70px; }
.tree-contact-page { max-width: 1040px; padding-top: 44px; padding-bottom: 52px; }
.contact-people { margin: 0; padding: 0; border: 0; }
.contact-people-heading { max-width: 760px; margin-bottom: 18px; }
.contact-people-heading .section-kicker { display: none; }
.contact-people-heading h2 { margin: 0 0 6px; font-size: 30px; }
.contact-people-heading p:last-child { margin: 0; color: var(--muted); }
.contact-person-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-person { display: flex; min-height: 0; flex-direction: column; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--forest); background: var(--paper); }
.contact-person .contact-role { margin: 0 0 5px; color: var(--forest); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.contact-person h3 { margin: 0 0 10px; font-size: 22px; }
.contact-details { display: grid; gap: 4px; margin-top: auto; }
.contact-detail { display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: baseline; column-gap: 10px; min-height: 24px; }
.contact-detail span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.contact-detail a { width: fit-content; color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.45; }
.tree-contact-form-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.tree-contact-form-heading { margin-bottom: 14px; }
.tree-contact-form-heading h2 { margin: 0 0 5px; font-size: 27px; }
.tree-contact-form-heading p { margin: 0; color: var(--muted); }
.tree-contact-form { max-width: 820px; margin: 0; padding: 0; border: 0; }
.tree-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.tree-contact-form p { margin: 0 0 11px; }
.tree-contact-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 750; }
.tree-contact-form input[type="text"], .tree-contact-form input[type="email"], .tree-contact-form input[type="tel"], .tree-contact-form textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #aab9b4; border-radius: 2px; background: var(--white); color: var(--ink); font-size: 14px; }
.tree-contact-form textarea { min-height: 86px; resize: vertical; }
.tree-consent label { grid-template-columns: 18px 1fr; align-items: start; font-size: 12px; font-weight: 500; line-height: 1.45; }
.tree-consent input { width: 16px; height: 16px; margin-top: 2px; }
.tree-contact-form .button { min-height: 38px; padding: 9px 16px; }
.tree-honeypot { position: absolute; left: -9999px; }
.tree-form-status { max-width: 820px; margin: 0 0 16px; padding: 12px 15px; border-left: 4px solid var(--forest); background: #e8f2ed; }
.tree-form-status.error { border-color: var(--danger); background: #f8eaea; }

.final-cta { padding: 48px 0; background: var(--signal); color: #173127; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.final-cta .section-kicker { color: var(--forest); margin-bottom: 8px; }
.final-cta h2 { margin: 0 0 8px; font-size: 31px; line-height: 1.2; }
.final-cta p:last-child { max-width: 760px; margin: 0; }
.button-light { flex: none; background: var(--forest-deep); color: var(--white); }
.button-light:hover { background: var(--steel); }
.site-footer { padding: 58px 0 24px; background: var(--forest-deep); color: #dbe8e3; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 70px; }
.footer-brand>a { color: var(--white); font-size: 28px; font-weight: 850; text-decoration: none; }
.footer-brand p { margin: 4px 0 24px; color: var(--signal); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-brand address { color: #b9cbc4; font-style: normal; }
.site-footer h2 { margin: 0 0 14px; color: var(--white); font-size: 15px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #dbe8e3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 21px; border-top: 1px solid #3d5955; color: #9fb5ae; font-size: 13px; }
.error-page, .fallback-content { min-height: 55vh; padding-block: 90px; }
.error-page h1 { margin: 0 0 15px; font-size: 52px; }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1380px) {
  .js .menu-toggle { display: inline-flex; margin-left: auto; }
  .js .primary-panel { position: fixed; top: var(--header); left: 0; right: 0; display: none; max-height: calc(100svh - var(--header)); overflow-y: auto; margin: 0; padding: 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 35px rgba(13,43,41,.12); }
  .js .primary-panel.is-open { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: start; }
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .header-inner { min-height: var(--header); height: auto; flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .primary-panel { width: 100%; margin: 0; padding-bottom: 12px; flex-wrap: wrap; }
  html:not(.js) .primary-nav ul { flex-wrap: wrap; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 12px 0; font-size: 16px; }
  .language-switcher ul { left: 0; right: auto; }
}

@media (max-width: 820px) {
  :root { --header: 78px; }
  .section-inner { width: min(calc(100% - 34px), var(--max)); }
  .header-inner { width: calc(100% - 28px); }
  .site-brand, .site-brand img { width: 112px; height: 60px; }
  .js .primary-panel.is-open { grid-template-columns: 1fr; gap: 16px; }
  .header-cta { justify-self: start; }
  .language-switcher { justify-self: start; }
  .home-hero { height: calc(100svh - 124px); min-height: 440px; max-height: 680px; }
  .home-hero-content { width: calc(100% - 34px); }
  .home-hero-overlay { background: linear-gradient(90deg, rgba(6,26,26,.72) 0%, rgba(6,26,26,.58) 72%, rgba(6,26,26,.46) 100%); }
  .home-hero h1 { font-size: 52px; }
  .hero-statement { font-size: 18px; }
  .service-index { padding: 54px 0 60px; }
  .service-index h2 { font-size: 31px; }
  .service-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-list a { grid-template-columns: 40px 1fr 24px; min-height: 112px; gap: 12px; }
  .service-list strong { font-size: 20px; }
  .service-list small { grid-column: 2/4; }
  .page-hero { padding: 52px 0 57px; }
  .page-hero h1 { font-size: 42px; }
  .page-hero p:not(.hero-kicker) { font-size: 17px; }
  .page-content { padding-block: 48px 62px; }
  .tree-content-block, .tree-content-block.has-media { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .tree-content-block.has-media:nth-child(even) .tree-content-copy, .tree-content-block.has-media:nth-child(even) .tree-project-media { order: initial; }
  .tree-content-copy h2, .tree-faq h2 { font-size: 30px; }
  .tree-check-list { grid-template-columns: 1fr; }
  .tree-home-intro { margin-bottom: 46px; }
  .tree-home-intro-copy { padding: 38px 32px 36px; }
  .tree-home-intro-copy h2 { font-size: 34px; }
  .tree-home-collage { grid-template-columns: 1fr 1fr 1fr; min-height: 300px; }
  .tree-home-collage figure { min-height: 300px; }
  .home-content { padding-top: 52px; }
  .home-content .tree-content-block { min-height: 0; }
  .tree-form-grid { grid-template-columns: 1fr; }
  .contact-person-grid { grid-template-columns: 1fr; }
  .tree-passive-grid, .tree-mount-grid, .tree-insulation-material-grid, .tree-insulation-grid, .tree-about-columns, .tree-protection-layout, .tree-partner-row, .tree-mount-split, .tree-about-facts { grid-template-columns: 1fr; }
  .tree-passive-hilti, .tree-about-partners, .tree-passive-inquiry, .tree-mount-inquiry, .tree-insulation-inquiry, .tree-about-inquiry { margin-inline: -17px; padding-inline: 17px !important; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 480px) {
  .tree-home-intro-copy { padding: 30px 24px 30px; }
  .tree-home-intro-copy h2 { font-size: 29px; }
  .tree-home-intro-copy p { font-size: 16px; }
  .tree-home-collage { grid-template-columns: 1fr 1fr; min-height: 0; }
  .tree-home-collage figure { min-height: 220px; border-right: 2px solid rgba(255,255,255,.92); }
  .tree-home-collage figure:nth-child(2) { border-right: 0; }
  .tree-home-collage figure:nth-child(3) { grid-column: 1 / -1; min-height: 230px; border-top: 2px solid rgba(255,255,255,.92); border-right: 0; }
  .menu-toggle>span:last-child { display: none; }
  .home-hero { min-height: 430px; }
  .home-hero h1 { font-size: 43px; }
  .hero-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .hero-actions .button { width: 100%; }
  .service-list a { grid-template-columns: 32px 1fr 20px; }
  .service-list small { font-size: 14px; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .slideshow-controls { right: 17px; bottom: 15px; }
  .slide-dots { display: none; }
  .page-hero h1 { font-size: 36px; overflow-wrap: anywhere; }
  .tree-content-copy h2, .tree-faq h2 { font-size: 27px; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .tree-contact-page { padding-top: 32px; padding-bottom: 40px; }
  .contact-person-grid, .tree-form-grid { grid-template-columns: 1fr; }
  .tree-contact-form { max-width: none; }
}

/* Service-page project photography */
.tree-service-gallery {
  display: grid;
  gap: 18px;
  margin: 8px 0 50px;
}
.tree-service-gallery--two { grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); }
.tree-service-gallery--feature { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tree-service-gallery--feature .tree-service-photo:first-child { grid-column: 1 / -1; }
.tree-service-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dbe2df;
  box-shadow: 0 12px 28px rgba(13,43,41,.07);
}
.tree-service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}
.tree-service-photo:hover img { transform: scale(1.018); }
.tree-service-gallery--active .tree-service-photo:first-child img { aspect-ratio: 16 / 9; object-position: center; }
.tree-service-gallery--active .tree-service-photo:last-child img { aspect-ratio: 16 / 9; object-position: center 55%; }
.tree-service-gallery--passive .tree-service-photo img { aspect-ratio: 16 / 10; object-position: center; }
.tree-service-gallery--feature .tree-service-photo:first-child img { aspect-ratio: 16 / 7; object-position: center 52%; min-height: 360px; }
.tree-service-gallery--feature .tree-service-photo:nth-child(2) img { aspect-ratio: 4 / 3; object-position: center 45%; }
.tree-service-gallery--feature .tree-service-photo:nth-child(3) img { aspect-ratio: 4 / 3; object-position: center; }
.tree-service-gallery--insulation { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); }
.tree-service-gallery--insulation .tree-service-photo:first-child img { aspect-ratio: 4 / 3; object-position: center; }
.tree-service-gallery--insulation .tree-service-photo:last-child img { aspect-ratio: 4 / 3; object-position: center; }

/* Active-protection gallery lives inside the copy column, so keep it visually compact. */
.tree-protection-copy .tree-service-gallery { margin-top: 30px; margin-bottom: 42px; }

@media (max-width: 800px) {
  .tree-service-gallery--two,
  .tree-service-gallery--feature,
  .tree-service-gallery--insulation { grid-template-columns: 1fr; }
  .tree-service-gallery--feature .tree-service-photo:first-child { grid-column: auto; }
  .tree-service-photo img,
  .tree-service-gallery--active .tree-service-photo:first-child img,
  .tree-service-gallery--active .tree-service-photo:last-child img,
  .tree-service-gallery--passive .tree-service-photo img,
  .tree-service-gallery--feature .tree-service-photo:first-child img,
  .tree-service-gallery--feature .tree-service-photo:nth-child(2) img,
  .tree-service-gallery--feature .tree-service-photo:nth-child(3) img,
  .tree-service-gallery--insulation .tree-service-photo:first-child img,
  .tree-service-gallery--insulation .tree-service-photo:last-child img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}
