/*
Theme Name: Jiří Rigó – Kadence Child
Description: Firemní child theme pro lokální kopii webu Jiří Rigó, s.r.o.
Author: Jiří Rigó, s.r.o.
Template: kadence
Version: 1.0.2
Text Domain: jiririgo
*/

:root {
  --jr-green: #18a95b;
  --jr-green-dark: #0d7f43;
  --jr-ink: #111820;
  --jr-slate: #495767;
  --jr-mist: #f1f6f3;
  --jr-line: #dce7e0;
  --jr-white: #ffffff;
  --jr-shadow: 0 18px 50px rgba(17, 24, 32, 0.1);
}

body {
  color: var(--jr-ink);
}

.site-header {
  border-bottom: 1px solid rgba(17, 24, 32, 0.08);
  box-shadow: 0 5px 25px rgba(17, 24, 32, 0.05);
}

.site-branding .custom-logo {
  max-height: 56px;
  width: auto;
}

.site-branding.has-logo-image .site-title-wrap,
.site-branding .brand.has-logo-image .site-title-wrap {
  display: none;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a {
  font-size: 15px;
  font-weight: 600;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  color: var(--jr-green-dark);
}

body.home .entry-hero,
body.home .entry-header {
  display: none;
}

body.home .content-area,
body.home .content-container,
body.home .content-wrap,
body.home .site-main,
body.home .content-bg,
body.home .entry-content-wrap,
body.home .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home .content-container.site-container {
  max-width: none;
  padding-inline: 0;
}

body.home .content-bg {
  background: transparent;
}

.jr-home,
.jr-home * {
  box-sizing: border-box;
}

.jr-home {
  overflow: hidden;
  background: var(--jr-white);
}

.jr-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.jr-hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  isolation: isolate;
  color: var(--jr-white);
  background: var(--jr-ink) var(--jr-hero-image) center / cover no-repeat;
}

.jr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 17, 23, 0.94) 0%, rgba(10, 17, 23, 0.76) 48%, rgba(10, 17, 23, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 17, 23, 0.55), transparent 45%);
}

.jr-hero__content {
  max-width: 760px;
  padding: 96px 0 128px;
}

.jr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #94e5b6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jr-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--jr-green);
}

.jr-home h1,
.jr-home h2,
.jr-home h3 {
  color: inherit;
  letter-spacing: -0.025em;
}

.jr-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--jr-white);
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
}

.jr-hero__lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.jr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.jr-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 2px solid var(--jr-green);
  border-radius: 6px;
  background: var(--jr-green);
  color: var(--jr-white) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.jr-button:hover {
  transform: translateY(-2px);
  border-color: var(--jr-green-dark);
  background: var(--jr-green-dark);
}

.jr-button--ghost {
  border-color: rgba(255, 255, 255, 0.58);
  background: transparent;
}

.jr-button--ghost:hover {
  border-color: var(--jr-white);
  background: rgba(255, 255, 255, 0.1);
}

.jr-stats {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1040px, calc(100% - 48px));
  grid-template-columns: repeat(3, 1fr);
  margin: -64px auto 0;
  border-radius: 10px;
  background: var(--jr-white);
  box-shadow: var(--jr-shadow);
}

.jr-stat {
  padding: 30px 36px;
  border-right: 1px solid var(--jr-line);
}

.jr-stat:last-child {
  border-right: 0;
}

.jr-stat strong {
  display: block;
  color: var(--jr-green-dark);
  font-family: Outfit, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.jr-stat span {
  display: block;
  margin-top: 9px;
  color: var(--jr-slate);
  font-size: 14px;
  font-weight: 600;
}

.jr-section {
  padding: 104px 0;
}

.jr-section--mist {
  background: var(--jr-mist);
}

.jr-section--dark {
  background: var(--jr-ink);
  color: var(--jr-white);
}

.jr-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.jr-section__head > div {
  max-width: 730px;
}

.jr-kicker {
  margin: 0 0 12px;
  color: var(--jr-green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jr-section--dark .jr-kicker {
  color: #83dda8;
}

.jr-section h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
}

.jr-section__intro {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--jr-slate);
  font-size: 18px;
  line-height: 1.7;
}

.jr-section--dark .jr-section__intro {
  color: rgba(255, 255, 255, 0.68);
}

.jr-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.jr-card {
  overflow: hidden;
  border: 1px solid var(--jr-line);
  border-radius: 10px;
  background: var(--jr-white);
  box-shadow: 0 10px 30px rgba(17, 24, 32, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.jr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--jr-shadow);
}

.jr-card img {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
}

.jr-card__body {
  padding: 28px;
}

.jr-card h3 {
  margin: 0;
  color: var(--jr-ink);
  font-size: 25px;
}

.jr-card p {
  min-height: 82px;
  margin: 14px 0 22px;
  color: var(--jr-slate);
  line-height: 1.65;
}

.jr-link {
  color: var(--jr-green-dark) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.jr-link::after {
  content: "  →";
}

.jr-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 72px;
}

.jr-split__image {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--jr-shadow);
}

.jr-split__image img {
  display: block;
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.jr-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.jr-checks li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 30px;
  color: rgba(255, 255, 255, 0.82);
}

.jr-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #83dda8;
  font-weight: 800;
}

.jr-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 42px;
  padding: 58px 64px;
  border-radius: 12px;
  background: var(--jr-green-dark);
  color: var(--jr-white);
}

.jr-cta h2 {
  margin: 0;
  color: var(--jr-white);
  font-size: clamp(32px, 4vw, 48px);
}

.jr-cta p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.jr-cta__contact {
  min-width: 250px;
}

.jr-cta__contact a {
  display: block;
  color: var(--jr-white) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none !important;
}

.jr-basic-page {
  max-width: 920px;
  margin: 0 auto;
}

.jr-basic-page .jr-lead {
  color: var(--jr-slate);
  font-size: 20px;
  line-height: 1.7;
}

.jr-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.jr-basic-box {
  padding: 26px;
  border: 1px solid var(--jr-line);
  border-radius: 8px;
  background: var(--jr-mist);
}

.jr-basic-box h3 {
  margin-top: 0;
  font-size: 22px;
}

.jr-basic-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .jr-hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .jr-cards,
  .jr-split {
    grid-template-columns: 1fr;
  }

  .jr-card p {
    min-height: 0;
  }

  .jr-split__image {
    order: -1;
  }

  .jr-split__image img {
    min-height: 420px;
  }

  .jr-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .jr-shell,
  .jr-stats {
    width: min(100% - 32px, 1180px);
  }

  .jr-hero {
    min-height: 650px;
    background-position: 66% center;
  }

  .jr-hero::before {
    background: rgba(10, 17, 23, 0.82);
  }

  .jr-hero__content {
    padding: 80px 0 112px;
  }

  .jr-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .jr-actions,
  .jr-actions .jr-button {
    width: 100%;
  }

  .jr-stats {
    grid-template-columns: 1fr;
    margin-top: -52px;
  }

  .jr-stat {
    padding: 22px 26px;
    border-right: 0;
    border-bottom: 1px solid var(--jr-line);
  }

  .jr-stat:last-child {
    border-bottom: 0;
  }

  .jr-section {
    padding: 72px 0;
  }

  .jr-section__head {
    display: block;
  }

  .jr-card img {
    height: 220px;
  }

  .jr-split {
    gap: 40px;
  }

  .jr-split__image img {
    min-height: 300px;
  }

  .jr-checks,
  .jr-basic-grid {
    grid-template-columns: 1fr;
  }

  .jr-cta {
    padding: 40px 28px;
  }
}
