/*
Theme Name: Lundeks 2026
Description: Lundeks OÜ WordPressi teema.
Version: 1.2.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: lundeks-2026
*/

:root {
  --ink: #192027;
  --muted: #505b64;
  --paper: #fff;
  --light: #f4f5f3;
  --line: #e0e3df;
  --orange: #ff642c;
  --accent-text: #a9330a;
  --dark: #151a1f;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .65em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.85rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.ldx-wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.ldx-skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-220%); background: white; padding: .5rem 1rem; z-index: 10; }
.ldx-skip:focus { transform: translateY(0); }
.ldx-header { background: var(--dark); color: white; border-bottom: 1px solid #363c43; }
.ldx-header-inner { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.ldx-header img { width: clamp(7rem, 13vw, 10.5rem); height: auto; }
.ldx-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.35rem; }
.ldx-header a, .ldx-card a { color: inherit; text-decoration: none; font-weight: 700; }
.ldx-header a:hover { color: #ff9b73; text-decoration: underline; }
.ldx-card a:hover { color: var(--accent-text); text-decoration: underline; }
.ldx-header .ldx-header-phone {
  color: var(--orange);
  font-weight: 850;
  white-space: nowrap;
}
.ldx-hero { background: var(--dark); color: white; }
.ldx-hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; min-height: 34rem; }
.ldx-intro { padding: 0 clamp(1.35rem, 3vw, 3rem) clamp(3rem, 5vw, 5rem) 0; }
.ldx-location { font-weight: 750; letter-spacing: .055em; color: #ff9b73; }
.ldx-intro > p:not(.ldx-location) { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 35rem; color: #e2e7eb; }

.ldx-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.65rem; }
.ldx-button, .ldx-button:visited {
  display: inline-flex; justify-content: center; align-items: center; padding: .74rem 1.05rem;
  border: 2px solid var(--orange); background: var(--orange); color: #161b1e;
  border-radius: .3rem; font-weight: 775; text-decoration: none; line-height: 1.3;
}
.ldx-button:hover { background: #ff915f; border-color: #ff915f; }
.ldx-button-secondary, .ldx-button-secondary:visited { background: transparent; border-color: #899199; color: white; }
.ldx-button-secondary:hover { background: #323942; border-color: #a5adb4; }
.ldx-section { padding-block: clamp(2.75rem, 6vw, 6rem); }
.ldx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ldx-card { padding: clamp(1.1rem, 2vw, 1.65rem); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: .3rem; }
.ldx-card h2 { font-size: 1.4rem; }
.ldx-card p:last-child, .ldx-callout p:last-child { margin-bottom: 0; }
.ldx-card p { color: var(--muted); }
.ldx-callout { background: var(--light); padding-block: 2.5rem; }
.ldx-callout-inner { display: flex; gap: 1rem 3rem; justify-content: space-between; align-items: center; }
.ldx-callout-inner p { max-width: 43rem; }
.ldx-callout-inner .ldx-button { flex-shrink: 0; }
.ldx-faq { max-width: 55rem; border-top: 1px solid var(--line); }
.ldx-faq details { border-bottom: 1px solid var(--line); }
.ldx-faq summary { padding: .85rem .3rem; cursor: pointer; font-weight: 700; }
.ldx-faq summary::marker { color: var(--accent-text); }
.ldx-faq details > div { padding: .05rem 1.3rem .6rem; color: var(--muted); }
.ldx-body > article { max-width: 56rem; margin-inline: auto; }
.ldx-body > article > h1 { font-size: clamp(2rem, 4vw, 3.75rem); }
.ldx-content { overflow-wrap: anywhere; }
.ldx-content h2, .ldx-content h3 { margin-top: 1.35em; }
.ldx-content .ldx-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.ldx-content iframe { max-width: 100%; }
.ldx-content figure { margin-inline: 0; }
.ldx-content .alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.ldx-content .alignright { float: right; margin: 0 0 1rem 1.25rem; }
.ldx-content .aligncenter { margin-inline: auto; }
.ldx-content::after { content: ""; display: block; clear: both; }
.ldx-article-figure { margin: 0 0 1.5rem; }
.ldx-comments { max-width: 56rem; margin: 3rem auto 0; }
.ldx-comments input, .ldx-comments textarea { font: inherit; max-width: 100%; }
.ldx-comments label { display: block; }
.pagination { margin-top: 1.5rem; }
.page-numbers { display: inline-block; padding: .3rem .5rem; }
.ldx-footer { background: var(--dark); color: #e2e7eb; padding: 2rem 0; }
.ldx-footer a { color: inherit; }
.ldx-footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; }
@media (max-width: 900px) {
  .ldx-header-inner { flex-wrap: wrap; padding-block: .65rem; }
  .ldx-header nav { order: 1; width: 100%; }
  .ldx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .ldx-hero-inner, .ldx-grid { grid-template-columns: 1fr; }
  .ldx-intro { padding: 0 0 1.8rem; }
  .ldx-callout-inner { align-items: flex-start; flex-direction: column; }
  .ldx-header nav { gap: .35rem .8rem; }
}
.ldx-body > article > .ldx-grid { margin-bottom: 2rem; }

.ldx-service-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 100%;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.ldx-service-card h3 { margin-bottom: .35rem; }
.ldx-service-card p { margin-bottom: .7rem; }
.ldx-service-card:is(:hover, :focus-visible) {
  background: #fff0e8;
  border-color: var(--orange);
  box-shadow: 0 9px 20px #26303814;
  transform: translateY(-3px);
}
.ldx-service-card:active { background: #ffdac9; transform: translateY(0); }
.ldx-card-action { margin-top: auto; color: var(--accent-text); font-weight: 720; }
.ldx-related { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.ldx-related h2 { font-size: 1.45rem; }
.ldx-suction {
  position: relative;
  height: clamp(6.5rem, 10vw, 8.5rem);
  width: min(100%, 26rem);
  margin-left: -.8rem;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 41% 47%, #75401c6b, #43302325 38%, transparent 73%);
}
.ldx-nozzle { position: absolute; left: 36%; top: 46%; transform: scaleX(-1); }
.ldx-hose {
  position: absolute;
  z-index: 1;
  top: -24px;
  left: 7px;
  width: 18rem;
  height: 48px;
  border: 1px solid #697781;
  border-radius: 50% 8px 8px 48% / 24% 8px 8px 24%;
  box-shadow: 0 6px 13px #13171baa, inset 0 2px 4px #a4b1b360;
  background:
    linear-gradient(180deg, #ffffff24 0, transparent 35%, #000000a3 84%),
    repeating-linear-gradient(91deg, #263038 0 3px, #45515b 4px 6px, #20282e 7px 10px);
  transform-origin: left center;
  transform: rotate(-19deg);
}
.ldx-hose-mouth {
  position: absolute;
  z-index: 3;
  top: -24px;
  left: 0;
  width: 24px;
  height: 48px;
  border: 4px solid #8a9398;
  border-left-color: #d8dde0;
  border-right-color: #454d53;
  border-radius: 50%;
  background: radial-gradient(ellipse at 75% 40%, #20292f, #0c1014 70%);
  box-shadow: 2px 2px 5px #070a0d, -4px 0 12px #ff985665;
  transform: rotate(-18deg);
}
.ldx-particles { position: absolute; z-index: 4; }
.ldx-particles span {
  position: absolute;
  left: 8px;
  top: -2px;
  width: var(--size);
  height: var(--size);
  border-radius: 35% 57% 31% 68%;
  background: #ffd4ad;
  box-shadow: 0 0 6px #ff9e57a0;
  animation: ldx-suction-track var(--speed) linear var(--delay) infinite both;
}
.ldx-particles span:nth-child(3n) { background: #f5e4c9; }
.ldx-particles span:nth-child(4n) { background: #ff9c59; }
@keyframes ldx-suction-track {
  0% { transform: translate(var(--dx), var(--dy)) scale(.75); opacity: 0; }
  23% { opacity: .92; }
  54% { transform: translate(calc(var(--dx) * .56), calc(var(--dy) * .62)) scale(1); }
  88% { opacity: .96; }
  100% { transform: translate(5px, 0) scale(1.9, .22); opacity: 0; }
}
@media (max-width: 480px) {
  .ldx-nozzle { left: 35%; transform: scale(-.74, .74); }
}
@media (prefers-reduced-motion: reduce) {
  .ldx-particles span { animation: none; opacity: .7; transform: translate(var(--dx), var(--dy)); }
  .ldx-service-card { transition: none; }
  .ldx-service-card:is(:hover, :focus-visible) { transform: none; }
}

.ldx-airflow i {
  position: absolute;
  z-index: 2;
  left: -155px;
  top: -19px;
  width: 160px;
  height: 34px;
  border-radius: 50%;
  border-top: 1px solid #ffb55d;
  opacity: .14;
  transform-origin: right center;
  animation: ldx-air-current 1.4s ease-in -0.5s infinite both;
}
.ldx-airflow i:nth-child(2) { rotate: 12deg; animation-delay: -.95s; }
.ldx-airflow i:nth-child(3) { rotate: -16deg; animation-delay: -1.25s; }
@keyframes ldx-air-current {
  0% { transform: translateX(-20px) scaleX(1); opacity: 0; }
  34% { opacity: .55; }
  100% { transform: translateX(5px) scaleX(.16); opacity: 0; }
}

.ldx-fleet {
  position: relative;
  min-width: 0;
  min-height: 25rem;
  overflow: hidden;
  isolation: isolate;
  background: #ff8a54;
}
.ldx-fleet-link {
  position: absolute;
  inset: 0;
  display: block;
  color: white;
  text-decoration: none;
  overflow: hidden;
}
.ldx-fleet-white { clip-path: polygon(0 0, 57.2% 0, 42.2% 100%, 0 100%); }
.ldx-fleet-red { clip-path: polygon(57.9% 0, 100% 0, 100% 100%, 42.9% 100%); }
.ldx-fleet-link img {
  position: absolute;
  top: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.9);
  transition: filter .23s ease, transform .32s ease;
}
.ldx-fleet-white img { left: 0; object-position: 56% 50%; }
.ldx-fleet-red img { right: 0; object-position: 63% 50%; }
.ldx-fleet-link::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent 25%, #11171ac2 78%, #11171af2);
}
.ldx-fleet-label {
  position: absolute;
  z-index: 1;
  left: clamp(.8rem, 2vw, 1.55rem);
  bottom: clamp(.85rem, 3vw, 1.65rem);
  display: grid;
  gap: .15rem;
  max-width: 39%;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--orange);
  color: white;
  line-height: 1.17;
}
.ldx-fleet-red .ldx-fleet-label { left: auto; right: clamp(.8rem, 2vw, 1.55rem); text-align: right; max-width: 50%; }
.ldx-fleet-label strong { font-size: clamp(.97rem, 2.05vw, 1.7rem); overflow-wrap: anywhere; }
.ldx-fleet-link:is(:hover, :focus-visible) img { filter: brightness(1.12); transform: scale(1.035); }
.ldx-fleet-link:focus-visible .ldx-fleet-label { outline: 2px solid white; outline-offset: 5px; }
.ldx-fleet-link:active img { filter: brightness(1.2); }
@media (max-width: 650px) {
  .ldx-fleet { min-height: clamp(15rem, 64vw, 24rem); margin-bottom: 1.25rem; }
  .ldx-fleet-label strong { font-size: clamp(.78rem, 3.1vw, 1.1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .ldx-airflow i { animation: none; }
  .ldx-fleet-link img { transition: none; }
  .ldx-fleet-link:is(:hover, :focus-visible) img { transform: none; }
}
