/*
Theme Name: JP Industry
Theme URI: https://www.jpindustry.cz/
Author: Filip Kolář
Description: Custom dark-industrial theme for JP INDUSTRY s.r.o. Palette, metal
  gradients and background grain are sampled directly from the company logo
  (ground #0a0a0a, pure neutral greyscale artwork). Self-hosted fonts, no
  external requests.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: jpindustry
*/


/* ============================================================
   JP INDUSTRY — design tokens
   Every value below is sampled from JPIndustry_logo.png:
   the ground is #0a0a0a, the artwork is pure neutral greyscale
   (mean channel spread 1.43), highlights peak at #e0e0e0/#fff.
   ============================================================ */
:root {
  /* ground */
  --ink:        #0a0a0a;   /* exact logo background */
  --ink-2:      #0e0e0f;
  --surface:    #141416;
  --surface-2:  #1b1b1e;
  --hairline:   #2a2a2e;
  --hairline-2: #3a3a40;

  /* steel — the logo's metal ramp */
  --steel-hi:   #ffffff;
  --steel:      #dcdcde;
  --steel-mid:  #9a9a9f;
  --steel-lo:   #5c5c62;
  --steel-dk:   #2e2e33;

  /* type */
  --text:       #ececee;
  --text-dim:   #9295 9c;
  --text-dim:   #92959c;
  --text-mute:  #6c6f76;

  /* accent — kept cold and near-neutral so the logo stays the only focal point.
     Swap these two for an amber pair (#ff7a1a / #ffa459) to warm the whole site. */
  --accent:     #c3d2dc;
  --accent-dim: #7f8f9b;

  /* the brushed-metal fill used for display type and CTAs */
  --metal: linear-gradient(177deg,
      #ffffff 0%, #e8e9ea 11%, #b9bbbe 26%, #85878c 42%,
      #5d5f64 53%, #8d9095 64%, #cbcdd0 79%, #f2f3f4 92%, #a9abb0 100%);
  --metal-soft: linear-gradient(180deg, #f4f4f5 0%, #c7c8cb 40%, #8e9095 70%, #d5d6d9 100%);

  /* headroom above a .metal-text line box so tall diacritics stay paintable —
     see the .metal-text rule. .0927em is the measured minimum (Ů); .14em spares. */
  --metal-lift: .14em;

  --shell:  1240px;
  --gut:    clamp(20px, 5vw, 56px);

  /* the logo's angular cut — reused on cards, buttons, inputs */
  --cut:    14px;
  --cut-sm: 8px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 Barlow, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the woven grain from the logo's ground, over everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  background: url("assets/img/grain.png") repeat;
  background-size: 256px 256px;
  opacity: .5;
  pointer-events: none;
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

section { padding: clamp(66px, 7.2vw, 104px) 0; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: Archivo, Impact, sans-serif;
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -.005em;
  margin: 0;
}

/* brushed steel text — mirrors the logo's fill + bevel.
   The ramp is re-tiled every line box (repeat-y) so a heading that wraps to
   three lines gets three full highlight→shadow passes instead of one line
   landing in the dark band.

   background-clip: text paints nothing outside the element's box, and Archivo's
   ascent (.878em) is shorter than its tallest accents — Ů reaches .9367em — so at
   line-height 1.02 the first line's box top lands at .844em and the ring above Ů
   was sliced in half. Pad the box up by --metal-lift and pull it back with an
   equal negative margin: the paint area grows, the text does not move.
   background-origin must stay content-box, so the ramp is still registered to the
   text box; with padding-box the whole gradient shifts down and the caps darken. */
.metal-text {
  padding-top: var(--metal-lift);
  margin-top: calc(-1 * var(--metal-lift));
  background-image: var(--metal);
  background-size: 100% 1.04em;
  background-repeat: repeat-y;
  background-origin: content-box;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.85)) drop-shadow(0 3px 10px rgba(0,0,0,.6));
}
/* single-line contexts want the ramp stretched, not tiled */
.metal-text.oneline { background-size: 100% 100%; }

/* wide-tracked label, exactly the logo's tagline treatment */
.eyebrow {
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline-2), transparent);
  max-width: 180px;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before {
  content: "";
  flex: 1; height: 1px; max-width: 180px;
  background: linear-gradient(270deg, var(--hairline-2), transparent);
}

.lead {
  font-size: clamp(17px, 1.35vw, 19.5px);
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  --pad: 17px 34px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: var(--pad);
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 104;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  transition: transform .18s ease, filter .18s ease, background-position .4s ease;
}

/* primary = a milled steel plate */
.btn-metal {
  color: #17181a;
  background: var(--metal-soft);
  background-size: 100% 260%;
  background-position: 0 18%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -2px 3px rgba(0,0,0,.32),
    0 8px 26px rgba(0,0,0,.55);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.btn-metal:hover { background-position: 0 82%; transform: translateY(-2px); }
.btn-metal:active { transform: translateY(0); filter: brightness(.94); }

/* secondary = engraved outline */
.btn-ghost {
  color: var(--steel);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: inset 0 0 0 1px var(--hairline-2), inset 0 1px 0 rgba(255,255,255,.07);
}
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--steel-lo), inset 0 1px 0 rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center;
  height: 84px;
  transition: height .3s ease, background-color .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 18%, var(--hairline-2) 50%, var(--hairline) 82%, transparent);
  opacity: 0; transition: opacity .3s ease;
}
.site-header.is-stuck {
  height: 68px;
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.site-header.is-stuck::after { opacity: 1; }

.header-inner { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand picture { display: block; }
.brand img { height: 30px; width: auto; transition: height .3s ease; }
.site-header.is-stuck .brand picture { display: block; }
.brand img { height: 25px; }
.brand-word {
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 118;
  font-weight: 800; font-size: 17px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--metal-soft);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 15px;
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 100;
  font-weight: 600; font-size: 12.5px;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 1px; background: var(--steel); transform: scaleX(0);
  transform-origin: left; transition: transform .26s ease;
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-tel {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 104;
  font-weight: 700; font-size: 14px; letter-spacing: .05em;
  color: var(--steel);
  padding: 9px 17px;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  transition: color .2s ease, box-shadow .2s ease;
}
.header-tel:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--steel-lo); }
.header-tel svg { width: 14px; height: 14px; fill: currentColor; opacity: .8; }

.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 128px 0 132px;   /* bottom clears the scroll cue */
  text-align: center;
  overflow: hidden;
}
/* machined light pooling in from above, like the logo's studio lighting */
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto; height: 120%;
  background:
    radial-gradient(120% 78% at 50% -8%, rgba(190,200,210,.13), transparent 62%),
    radial-gradient(70% 50% at 50% 42%, rgba(255,255,255,.045), transparent 70%);
  pointer-events: none;
}
/* faint milled grid — industrial drawing paper */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(76% 64% at 50% 46%, #000 20%, transparent 74%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 2; }

.hero-logo {
  width: min(580px, 82vw);
  margin: 0 auto clamp(28px, 3.4vw, 40px);
  filter: drop-shadow(0 22px 60px rgba(0,0,0,.85));
  animation: rise .9s cubic-bezier(.2,.7,.25,1) both;
}

.hero h1 {
  font-size: clamp(30px, 4.35vw, 60px);
  max-width: 20ch;
  /* top margin keeps .metal-text's diacritic lift — do not reset it to 0 */
  margin: calc(-1 * var(--metal-lift)) auto clamp(22px, 2.4vw, 30px);
  animation: rise .9s .1s cubic-bezier(.2,.7,.25,1) both;
}
.hero .lead { margin: 0 auto; max-width: 56ch; animation: rise .9s .2s cubic-bezier(.2,.7,.25,1) both; }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: clamp(32px, 3.4vw, 44px);
  animation: rise .9s .3s cubic-bezier(.2,.7,.25,1) both;
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* the bare hairline — the English "Scroll" label was dropped on a Czech-only site */
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0;
  display: grid; justify-items: center;
  z-index: 2;
}
.scroll-cue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--steel-lo), transparent); }
/* short viewports: the cue would collide with the CTAs */
@media (max-height: 780px) { .scroll-cue { display: none; } }

/* ---------- section heads ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 68px); }
.sec-head.centered { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(27px, 3.15vw, 45px); margin-bottom: 20px; }

/* ---------- capability cards ---------- */
.grid-cap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--hairline);
}
.cap {
  position: relative;
  padding: clamp(30px, 3vw, 42px) clamp(26px, 2.4vw, 34px) clamp(34px, 3.2vw, 44px);
  background: linear-gradient(168deg, var(--surface) 0%, var(--ink-2) 100%);
  transition: background .35s ease, transform .35s ease;
}
.cap::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--metal-soft);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.25,1);
}
.cap:hover { background: linear-gradient(168deg, var(--surface-2) 0%, #111113 100%); }
.cap:hover::before { transform: scaleX(1); }

.cap-num {
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 118;
  font-weight: 800; font-size: 13px; letter-spacing: .2em;
  color: var(--steel-dk);
  margin-bottom: 26px;
}
.cap-ico { width: 34px; height: 34px; margin-bottom: 22px; stroke: var(--steel-mid); fill: none; stroke-width: 1.25; transition: stroke .35s ease; }
.cap:hover .cap-ico { stroke: var(--steel); }
.cap h3 { font-size: 16.5px; line-height: 1.22; letter-spacing: .045em; margin-bottom: 13px; min-height: 2.44em; color: var(--text); font-variation-settings: "wdth" 100; }
.cap p { margin: 0; font-size: 15.5px; color: var(--text-dim); line-height: 1.62; }

/* ---------- about + stats ---------- */
.about-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-body p { color: var(--text-dim); margin: 0 0 20px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); font-weight: 600; }

.stats { display: grid; gap: 1px; background: var(--hairline); }
.stat { padding: 26px 28px; background: linear-gradient(150deg, var(--surface), var(--ink-2)); }
.stat dt {
  font-family: Archivo, sans-serif; font-weight: 500;
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 9px;
}
.stat dd {
  margin: calc(-1 * var(--metal-lift)) 0 0;   /* keep .metal-text's diacritic lift */
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 112;
  font-weight: 800; font-size: 25px; letter-spacing: .01em; text-transform: uppercase;
  line-height: 1.14;
  background-size: 100% 1.14em;   /* keep the ramp aligned to this line box */
}

/* ---------- claim band ---------- */
.claim {
  padding: clamp(58px, 6vw, 88px) 0;
  border-block: 1px solid var(--hairline);
  background:
    radial-gradient(80% 140% at 50% 50%, rgba(190,200,210,.07), transparent 68%),
    linear-gradient(180deg, #0c0c0d, var(--ink));
  text-align: center;
}
.claim p {
  margin: calc(-1 * var(--metal-lift)) auto 0;   /* keep .metal-text's diacritic lift */
  max-width: 24ch;
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 108;
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 35px);
  line-height: 1.16;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.claim .rule {
  display: block;
  width: 148px; height: 6px;
  margin: 0 auto 30px;
  background: url("assets/img/brush-rule.png") center/100% 100% no-repeat;
  opacity: .5;
}

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, var(--ink) 0%, #0c0c0d 100%); }
.contact-wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(40px, 5vw, 72px); align-items: start; }

.info-list { display: grid; gap: 2px; margin: 0 0 34px; padding: 0; list-style: none; }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--hairline); }
.info-list svg { width: 18px; height: 18px; margin-top: 4px; stroke: var(--steel-mid); fill: none; stroke-width: 1.35; }
.info-list dfn {
  display: block; font-style: normal;
  font-family: Archivo, sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 5px;
}
.info-list span, .info-list a { font-size: 16.5px; color: var(--text); }
.info-list a { border-bottom: 1px solid var(--hairline-2); transition: border-color .2s ease; }
.info-list a:hover { border-color: var(--steel); }

/* form — inputs read as machined slots */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; }
.field label {
  font-family: Archivo, sans-serif; font-weight: 600;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 17px;
  font: 400 16px/1.5 Barlow, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #08080a, #101012);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--hairline), inset 0 2px 5px rgba(0,0,0,.75);
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  transition: box-shadow .22s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #4e5158; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--accent-dim), inset 0 2px 5px rgba(0,0,0,.75), 0 0 0 3px rgba(195,210,220,.08);
}

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 13px; align-items: start; font-size: 14px; color: var(--text-dim); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-dim); }
.consent a { border-bottom: 1px solid var(--hairline-2); }

.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 13.5px; color: var(--text-mute); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 46px 0 40px; background: #070708; }
.footer-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; opacity: .8; }
.footer-brand picture { display: block; }
.footer-brand img { height: 24px; width: auto; }
.footer-brand span {
  font-family: Archivo, sans-serif;
  font-variation-settings: "wdth" 118;
  font-weight: 800; font-size: 14px;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--steel-mid);
}
.footer-meta { margin-right: auto; font-size: 13.5px; color: var(--text-mute); }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; }
.footer-links a { color: var(--text-dim); transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.25,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav, .header-tel { display: none; }
  /* absolute bars, not grid rows — the X then lands exactly on centre */
  .burger {
    display: block; position: relative;
    width: 44px; height: 44px; padding: 0; border: 0; cursor: pointer;
    background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-2);
  }
  .burger span {
    position: absolute; left: 50%; width: 19px; height: 1.5px;
    margin-left: -9.5px;
    background: var(--steel);
    transition: transform .28s ease, opacity .2s ease;
  }
  .burger span:nth-child(1) { top: 15px; }
  .burger span:nth-child(2) { top: 21.25px; }
  .burger span:nth-child(3) { top: 27.5px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

  /* absolute, not fixed: the header's backdrop-filter makes it the containing
     block for fixed children, so `inset` would resolve against the 68px bar.
     Opaque background — a translucent one lets the hero bleed through. */
  .nav.is-open {
    display: grid; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 59;
    padding: 10px var(--gut) 26px;
    background: var(--ink);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 26px 50px rgba(0,0,0,.7);
  }
  .nav.is-open a { padding: 15px 0; font-size: 14px; border-bottom: 1px solid var(--hairline); }
  .nav.is-open a::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 118px 0 76px; }
  .scroll-cue { display: none; }               /* collides with the CTAs once stacked */
  .cap h3 { min-height: 0; }                   /* one-line headings on a full-width card */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   WordPress integration
   ============================================================ */

/* admin bar must not hide the fixed header */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ---------- Contact Form 7 ----------
   CF7 wraps every control in .wpcf7-form-control-wrap, which would otherwise
   break the .field grid and the two-column .form-row. */
.wpcf7 { margin: 0; }
.wpcf7-form { display: grid; gap: 18px; }
.field .wpcf7-form-control-wrap { display: block; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field textarea { display: block; }

/* validation */
.wpcf7-not-valid-tip {
  margin-top: 7px;
  font-size: 13px;
  color: #e9a5a5;
  letter-spacing: .01em;
}
.field input.wpcf7-not-valid, .field textarea.wpcf7-not-valid {
  box-shadow: inset 0 0 0 1px #7a4242, inset 0 2px 5px rgba(0,0,0,.75);
}
.wpcf7-response-output {
  margin: 4px 0 0 !important;
  padding: 15px 18px !important;
  border: 0 !important;
  font-size: 14.5px;
  background: linear-gradient(180deg, #121214, #0c0c0e);
  box-shadow: inset 0 0 0 1px var(--hairline);
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  color: var(--text-dim);
}
.wpcf7 form.sent .wpcf7-response-output { box-shadow: inset 0 0 0 1px #3f5f46; color: #bfe0c8; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { box-shadow: inset 0 0 0 1px #6d4444; color: #eab8b8; }

/* CF7 renders the consent box as an acceptance list */
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance .wpcf7-list-item label { display: grid; grid-template-columns: 20px 1fr; gap: 13px; align-items: start; cursor: pointer; }
.wpcf7-acceptance input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-dim); }
.wpcf7-acceptance .wpcf7-list-item-label { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* spinner sits next to the metal button */
.wpcf7-spinner { margin: 0 0 0 16px; background-color: var(--steel-lo); }
.wpcf7 input[type="submit"] { font-family: Archivo, sans-serif; }

/* honour the mockup's submit row */
.form-foot .wpcf7-spinner { align-self: center; }

/* ---------- inner pages (privacy policy, fallbacks) ---------- */
.page-hero { padding: clamp(140px, 15vw, 190px) 0 clamp(34px, 4vw, 52px); }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 48px); }
.page-body { padding: 0 0 clamp(70px, 8vw, 116px); }
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { color: var(--text-dim); }
.prose h2, .prose h3, .prose h4 {
  color: var(--text);
  margin-top: 1.9em;
  letter-spacing: .02em;
  font-variation-settings: "wdth" 104;
}
.prose h2 { font-size: clamp(20px, 2vw, 27px); }
.prose h3 { font-size: clamp(17.5px, 1.6vw, 21px); }
.prose a { color: var(--text); border-bottom: 1px solid var(--hairline-2); transition: border-color .2s ease; }
.prose a:hover { border-color: var(--steel); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose img { margin-block: 1.6em; }
.prose hr { border: 0; height: 1px; background: var(--hairline); margin-block: 2.2em; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 26px;
  border-left: 2px solid var(--hairline-2);
  color: var(--text-dim); font-style: normal;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); text-align: left; }
.prose th { color: var(--text); font-weight: 600; }

.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(38px, 4vw, 56px);
  font-family: Archivo, sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim); transition: color .2s ease;
}
.back-link:hover { color: var(--text); }

/* WP core alignment / caption classes */
.alignleft  { float: left;  margin: .4em 1.6em 1.2em 0; }
.alignright { float: right; margin: .4em 0 1.2em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 13.5px; color: var(--text-mute); margin-top: .7em; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; top: 10px; left: 10px; z-index: 100;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 12px 20px; background: var(--ink); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--steel-lo);
}

@media (max-width: 820px) {
  .alignleft, .alignright { float: none; margin: 1.2em 0; }
}

/* the About heading runs a touch smaller than the section heads */
.about-h2 { font-size: clamp(26px, 3vw, 42px); margin-bottom: 26px; }

/* wp_nav_menu output, once flattened to bare anchors, must not inherit list styling */
.nav-list { list-style: none; margin: 0; padding: 0; display: contents; }

/* If a plugin re-introduces autop inside a field, keep the grid intact. */
.field p { margin: 0; display: grid; gap: 9px; }
.field p br { display: none; }

/* ---------- privacy policy / long-form page extras ---------- */
.prose .lead { font-size: clamp(16.5px, 1.3vw, 18.5px); color: var(--text-dim); max-width: none; margin-bottom: 2em; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  padding: .16em .42em;
  color: var(--steel);
  background: #16161a;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.prose table { margin-block: 1.7em; }
.prose thead th {
  font-family: Archivo, sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-mute); border-bottom-color: var(--hairline-2);
}
.prose tbody td { vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tbody tr { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .prose tbody td { border: 0; padding: 3px 0; }
  .prose tbody td:first-child { color: var(--text); font-weight: 600; }
  /* the stacked rows lose the <thead> labels — restore them per column so the
     values stay unambiguous without data-* attributes in the page content */
  .prose tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: inline;
    margin-right: .5em;
    font-family: Archivo, sans-serif; font-weight: 600;
    font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-mute);
  }
  .prose tbody td:nth-of-type(2)::before { content: "Účel: "; }
  .prose tbody td:nth-of-type(3)::before { content: "Nastavuje: "; }
  .prose tbody td:nth-of-type(4)::before { content: "Platnost: "; }
}

/* ---------- Cloudflare Turnstile ----------
   appearance:interaction-only keeps the widget collapsed unless a challenge is
   actually needed, so the wrapper must not reserve space when it's empty. */
.form-turnstile { display: block; }
.form-turnstile:empty { display: none; }
.form-turnstile .cf7-turnstile,
.form-turnstile .cf-turnstile { display: block; }
.form-turnstile iframe { max-width: 100%; }
/* the widget only occupies space once Cloudflare actually renders a challenge */
.form-turnstile:has(iframe) { margin-block: 4px 2px; }
