/*
Theme Name: MAGNA Websolid
Theme URI: https://magna.cz/
Author: MAGNA
Description: WordPress převod návrhu websolid.cz/magna; editovatelné sekce, služby, reference a funkční poptávkový formulář.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: magna-websolid
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  --s1: clamp(.62rem, .5rem + .3vw, .75rem);
  --s2: clamp(1.25rem, 1.1rem + .5vw, 1.6rem);
  --s3: clamp(1.25rem, .9rem + 1.1vw, 2.1rem);
  --s4: clamp(1.25rem, .4rem + 2.5vw, 3.4rem);
  --s5: clamp(4.5rem, 3.4rem + 3.4vw, 8.5rem);
  --nav-odkaz: #0f1f27;
  --nav-odkaz-aktivni: #07769A;
  --nav-panel-bg: #072230;
  --nav-panel-odkaz: #fff;
  --nav-panel-linka: rgba(255, 255, 255, .12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #0f1f27;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #07769A;
}

h1, h2, h3 {
  font-family: "Lexend", system-ui, sans-serif;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  --hdr-bg: #fff;
  border-bottom: 1px solid transparent;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}
.site-header .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-header .logo img {
  height: 52px;
  width: auto;
}
.site-header.is-stuck {
  background: var(--hdr-bg);
  box-shadow: 0 1px 18px rgba(7, 34, 48, 0.09);
  border-bottom-color: #d3e3ea;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-family: "Lexend", system-ui, sans-serif;
}
.main-nav a {
  color: var(--nav-odkaz);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}
.main-nav a:not(.nav-cta):hover,
.main-nav a:not(.nav-cta)[aria-current] {
  color: var(--nav-odkaz-aktivni);
}
.main-nav .nav-cta {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--nav-odkaz-aktivni);
  color: #fff;
  font-weight: 600;
}
.main-nav .nav-cta i {
  margin-right: 0.35rem;
}
.main-nav .nav-cta:hover {
  color: #fff;
  background: #055a76;
}

.nav-sub {
  background: #fff;
  border: 1px solid #d3e3ea;
  border-radius: 20px;
  padding: 0.6rem;
  box-shadow: 0 18px 40px rgba(7, 34, 48, 0.12);
  min-width: 290px;
}
.nav-sub a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.nav-sub a:hover {
  background: #EDF5F8;
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
    background: var(--nav-panel-bg);
  }
  .main-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.15rem;
    color: var(--nav-panel-odkaz);
    border-bottom: 1px solid var(--nav-panel-linka);
  }
  .main-nav a:not(.nav-cta):hover,
  .main-nav a:not(.nav-cta)[aria-current] {
    color: #3CCBF0;
  }
  .main-nav .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: 0;
  }
  .nav-sub {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
    border-radius: 0;
  }
  .nav-sub a {
    border-radius: 0;
    font-size: 1rem;
  }
  .nav-sub a:hover {
    background: transparent;
  }
  .site-header .header-inner {
    min-height: 66px;
  }
  .site-header .logo img {
    height: 42px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #07769A;
  margin-bottom: 1rem;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3CCBF0;
  box-shadow: 0 0 0 4px rgba(60, 203, 240, 0.2);
  flex: none;
}

.sec-head {
  max-width: 680px;
  margin-bottom: var(--s4);
}
.sec-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  font-weight: 600;
}
.sec-head .perex {
  margin-top: 1.1rem;
  max-width: 60ch;
  color: #4b5f69;
  font-size: 1.1rem;
}
.sec-head--light h2 {
  color: #fff;
}
.sec-head--light .perex {
  color: rgba(255, 255, 255, 0.78);
}
.sec-head--light .eyebrow {
  color: #3CCBF0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: #07769A;
  color: #fff;
}
.btn--primary:hover {
  background: #055a76;
}
.btn--ghost {
  border-color: rgba(7, 118, 154, 0.35);
  color: #07769A;
  background: transparent;
}
.btn--ghost:hover {
  border-color: #07769A;
  background: #fff;
}
.btn--light {
  background: #fff;
  color: #072230;
}
.btn--light:hover {
  background: #3CCBF0;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #07769A;
}
.more i {
  transition: transform 0.2s;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: #EDF5F8;
  color: #055a76;
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.section {
  padding: var(--s5) 0;
  position: relative;
}

.hero {
  background: linear-gradient(180deg, #fff 0%, #EDF5F8 38%);
  padding: clamp(2.5rem, 1rem + 4vw, 5rem) 0 var(--s5);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s4);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 3vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 17ch;
  color: #072230;
}

.hero-perex {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: #4b5f69;
  max-width: 50ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.6rem;
  color: #4b5f69;
  font-size: 0.95rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.hero-note i {
  color: #07769A;
}

.hero-visual {
  position: relative;
}

.rings {
  position: absolute;
  width: 135%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.rings circle {
  fill: none;
  stroke: rgba(7, 118, 154, 0.18);
  stroke-width: 1;
}

.hero-photo {
  position: relative;
  margin: 0;
  border-radius: 36px;
  overflow: hidden;
  background: #e4e9ea;
  box-shadow: 0 30px 60px -20px rgba(7, 34, 48, 0.3);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 880/610;
  object-fit: cover;
  border-radius: 36px;
}

.hero-chip {
  position: absolute;
  left: -1.2rem;
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: #072230;
  color: #fff;
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(7, 34, 48, 0.3);
}
.hero-chip .led {
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.services {
  background: #fff;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}

.svc {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #d3e3ea;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 118, 154, 0.4);
  box-shadow: 0 24px 50px -24px rgba(7, 34, 48, 0.35);
}
.svc:hover .more i {
  transform: translateX(4px);
}
.svc:hover .svc-img img {
  transform: scale(1.04);
}

.svc-img {
  display: block;
  background: #e4e9ea;
  overflow: hidden;
}
.svc-img img {
  width: 100%;
  aspect-ratio: 495/330;
  object-fit: cover;
  object-position: 70% 60%;
  border-radius: 28px 28px 0 0;
  transition: transform 0.5s;
}

.svc-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: var(--s3);
  flex: 1;
}
.svc-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
.svc-body p {
  color: #4b5f69;
  flex: 1;
}

.svc-num {
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #07769A;
  letter-spacing: 0.1em;
}

.why {
  background: #072230;
  color: #fff;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 34, 48, 0.97) 0%, rgba(7, 34, 48, 0.9) 45%, rgba(7, 34, 48, 0.62) 100%), url("assets/why.webp") center 40%/cover no-repeat;
}

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s4);
  align-items: center;
}
.why-grid .sec-head {
  margin-bottom: 0;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
}
.why-list li {
  padding: var(--s3);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.why-list h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.8rem 0 0.5rem;
  color: #fff;
}
.why-list p {
  color: rgba(255, 255, 255, 0.8);
}

.why-num {
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: #3CCBF0;
  line-height: 1;
}

.refs {
  background: #EDF5F8;
}

.refs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.refs-head .sec-head {
  margin-bottom: 0;
}
.refs-head .perex a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
  max-width: 1080px;
}

.ref {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--s3);
  border-radius: 28px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ref:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 118, 154, 0.35);
  box-shadow: 0 22px 44px -26px rgba(7, 34, 48, 0.4);
}
.ref:hover .more i {
  transform: translateX(4px);
}
.ref h3 {
  font-size: 1.45rem;
  font-weight: 600;
  color: #072230;
}
.ref ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  flex: 1;
}
.ref li {
  position: relative;
  padding-left: 1.3rem;
  color: #4b5f69;
}
.ref li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid #07769A;
}

.ref-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ref-place {
  font-size: 0.92rem;
  color: #4b5f69;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.ref-place i {
  color: #07769A;
}

.area {
  background: #fff;
}

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  align-items: center;
}

.area-map .sec-head {
  margin-bottom: var(--s2);
}

.radar {
  width: 100%;
  max-width: 560px;
  height: auto;
  overflow: visible;
}
.radar .radar-rings {
  fill: none;
  stroke: rgba(7, 118, 154, 0.22);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.radar .radar-sweep {
  transform-box: view-box;
  transform-origin: 300px 270px;
  animation: sweep 9s linear infinite;
}
.radar .town circle {
  fill: #fff;
  stroke: #07769A;
  stroke-width: 2.5;
}
.radar .town text {
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 500;
  fill: #0f1f27;
}
.radar .town--home circle {
  fill: #07769A;
  stroke: rgba(60, 203, 240, 0.5);
  stroke-width: 8;
}
.radar .town--home text {
  font-weight: 700;
  fill: #072230;
  font-size: 22px;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .radar .radar-sweep, .hero-chip .led {
    animation: none;
  }
}
.contact-card {
  padding: var(--s4);
  border-radius: 36px;
  background: linear-gradient(150deg, #07769A 0%, #055a76 100%);
  color: #fff;
  box-shadow: 0 30px 60px -28px rgba(7, 34, 48, 0.5);
}
.contact-card h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
  font-weight: 600;
}

.contact-list {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.contact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.contact-list i {
  width: 1.2rem;
  color: #bfeefa;
}
.contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 1.1rem;
}
.contact-list a:hover {
  text-decoration: underline;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.form .field--full {
  grid-column: 1/-1;
}
.form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.form .req {
  color: #bfeefa;
}
.form input, .form textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
}
.form input:focus, .form textarea:focus {
  outline: 2px solid #3CCBF0;
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.form textarea {
  resize: vertical;
}
.form .btn {
  grid-column: 1/-1;
  justify-self: start;
}

.site-footer {
  background: #072230;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--s4) 0;
  font-size: 0.95rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer a:hover {
  color: #3CCBF0;
}
.site-footer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3CCBF0;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s3);
}

.f-logo {
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.f-logo span {
  color: #3CCBF0;
}

.f-brand p:not(.f-logo) {
  max-width: 30ch;
}

@media (max-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .area-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 560px;
  }
  .hero-chip {
    left: 1rem;
    bottom: 1rem;
  }
  .ref-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .why-list {
    grid-template-columns: 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .btn-row .btn {
    width: 100%;
  }
  .radar .town text {
    font-size: 24px;
  }
  .radar .town--home text {
    font-size: 26px;
  }
}
