/*
Theme Name: ODS Jindřichův Hradec 2026
Theme URI: https://odsjindrichuvhradec.cz
Description: Child theme of Divi for ODS JH 2026 campaign.
Author: Tomáš Vaněk
Author URI: https://odsjindrichuvhradec.cz
Template: Divi
Version: 4.0.0
License: GNU General Public License v2 or later
Text Domain: divi-jh-2026
*/

/* =========================================================
   ODS BRAND PROMĚNNÉ
   ========================================================= */
:root {
  --ods-blue:   #034EA2;
  --ods-dark:   #1E398D;
  --ods-navy:   #0D1B35;
  --ods-red:    #C0392B;
  --ods-orange: #E07B31;
  --ods-green:  #1A8A5A;
  --ods-gray:   #4A4A4A;
  --ods-light:  #F4F6FA;
  --ods-border: #E2E6EE;
}

/* =========================================================
   DIVI HEADER — ODS modrá
   ========================================================= */
#main-header,
#main-header.et-fixed-header {
  background-color: #034EA2 !important;
  border-bottom: 3px solid #1E398D !important;
}
#main-header .et_pb_menu nav ul li a,
#main-header .et-menu > li > a,
.et_header_style_centered #main-header .et-menu > li > a,
.et_header_style_split   #main-header .et-menu > li > a {
  color: rgba(255,255,255,.88) !important;
}
#main-header .et-menu > li > a:hover { color: #fff !important; opacity: 1; }
#main-header .mobile_menu_bar::before,
#main-header .mobile_menu_bar::after { background: #fff !important; }
#et-top-navigation .et-cart-info { color: #fff !important; }
.et-fixed-header#main-header { background: #034EA2 !important; }
#main-header .logo_container img,
#main-header #logo { filter: brightness(10); }

/* Skrýt Divi footer — máme vlastní */
#main-footer { display: none !important; }

/* =========================================================
   LAYOUT — kontejner, sekce
   ========================================================= */
* { box-sizing: border-box; }

.jh-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.jh-section { padding: 80px 0; }
.jh-section--white { background: #fff; }
.jh-section--light { background: #F4F6FA; }

.jh-section-head { margin-bottom: 52px; }

/* Overline */
.jh-overline {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: #034EA2;
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.jh-overline-bar {
  display: inline-block; width: 20px; height: 2px;
  background: #E07B31; border-radius: 2px; flex-shrink: 0;
}

/* Tag (pilíře) */
.jh-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.jh-tag--orange { background: #FFF0E5; color: #B65A0F; }
.jh-tag--red    { background: #FFEBEA; color: #9B2B20; }
.jh-tag--green  { background: #E8F7EE; color: #145E3E; }

/* Nadpis sekce */
.jh-section-title {
  font-size: clamp(26px,3.5vw,38px);
  font-weight: 800; color: #1E398D;
  letter-spacing: -.6px; line-height: 1.12; margin-bottom: 16px;
}

/* Barevná čára pod nadpisem */
.jh-title-bar {
  width: 48px; height: 4px;
  background: #E07B31; border-radius: 2px; margin-bottom: 20px;
}
.jh-title-bar--orange { background: #E07B31; }
.jh-title-bar--red    { background: #C0392B; }
.jh-title-bar--green  { background: #1A8A5A; }

/* Podnadpis sekce */
.jh-section-sub {
  font-size: 17px; color: #4A4A4A;
  max-width: 680px; line-height: 1.6;
}

/* =========================================================
   HERO SEKCE
   ========================================================= */
.jh-hero {
  background: linear-gradient(130deg, #0D1B35 0%, #1E398D 45%, #034EA2 100%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.jh-bubble-tr {
  position: absolute; top: -120px; right: -120px;
  width: 460px; height: 460px;
  border: 4px solid rgba(255,255,255,.07);
  border-radius: 50%; pointer-events: none;
}
.jh-bubble-bl {
  position: absolute; left: -80px; bottom: -160px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.jh-hero .jh-container { position: relative; z-index: 2; }

.jh-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; opacity: .75;
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.jh-eyebrow-bar {
  display: inline-block; width: 24px; height: 2px;
  background: #E07B31; border-radius: 2px; flex-shrink: 0;
}

.jh-hero-h1 {
  font-size: clamp(38px,5.5vw,62px);
  font-weight: 900; line-height: 1.04;
  letter-spacing: -1.5px; max-width: 860px;
  margin-bottom: 28px; color: #fff;
}
.jh-hero-h1 em { font-style: normal; color: #E07B31; }

.jh-hero-lead {
  font-size: clamp(17px,2vw,21px);
  opacity: .92; max-width: 700px;
  line-height: 1.5; margin-bottom: 36px;
}

.jh-hero-tagline {
  display: inline-block;
  background: rgba(255,255,255,.13);
  border-left: 4px solid #fff;
  padding: 13px 22px;
  font-size: 18px; font-weight: 600;
  margin-bottom: 36px;
}

.jh-hero-nav {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px;
}
.jh-hero-btn {
  display: inline-block; background: #E07B31; color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 13px 28px; border-radius: 4px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.jh-hero-btn:hover { background: #c96a24; transform: translateY(-2px); color: #fff; }
.jh-hero-btn--ghost {
  background: rgba(255,255,255,.13);
  border: 1.5px solid rgba(255,255,255,.5);
}
.jh-hero-btn--ghost:hover { background: rgba(255,255,255,.22); }

.jh-hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; max-width: 920px;
}
.jh-stat-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 22px 20px; border-radius: 8px;
}
.jh-stat-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.jh-stat-desc  { font-size: 13.5px; opacity: .85; line-height: 1.45; }

/* =========================================================
   PROČ ODS — hodnoty
   ========================================================= */
.jh-values-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.jh-value-card {
  background: #fff; border: 1px solid var(--ods-border);
  border-radius: 8px; padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(3,78,162,.07);
  transition: transform .2s, box-shadow .2s;
}
.jh-value-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(3,78,162,.12); }
.jh-value-icon  { font-size: 26px; margin-bottom: 14px; }
.jh-value-card h3 { font-size: 16px; font-weight: 700; color: #1E398D; margin-bottom: 10px; }
.jh-value-card p  { font-size: 13.5px; color: #4A4A4A; line-height: 1.5; }

/* =========================================================
   TŘI PILÍŘE — karty s gradient hlavičkami
   ========================================================= */
.jh-pillars {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.jh-pillar {
  background: #fff; border: 1px solid var(--ods-border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.jh-pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(3,78,162,.12); }

.jh-pillar-head {
  padding: 28px 24px; color: #fff;
  position: relative; overflow: hidden;
}
.jh-pillar--orange .jh-pillar-head { background: linear-gradient(135deg,#0D1B35 0%,#1E398D 55%,#E07B31 100%); }
.jh-pillar--red    .jh-pillar-head { background: linear-gradient(135deg,#0D1B35 0%,#1E398D 55%,#C0392B 100%); }
.jh-pillar--green  .jh-pillar-head { background: linear-gradient(135deg,#0D1B35 0%,#1E398D 55%,#1A8A5A 100%); }

.jh-pillar-bubble-tr {
  position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.jh-pillar-bubble-bl {
  position: absolute; bottom: -50px; left: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.jh-pillar-head > :not(.jh-pillar-bubble-tr):not(.jh-pillar-bubble-bl) {
  position: relative; z-index: 2;
}

.jh-pill-num {
  font-size: 12px; opacity: .85;
  letter-spacing: 1.3px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 6px;
}
.jh-pillar-head h3 {
  font-family: Georgia, serif; font-weight: 900;
  font-size: 30px; line-height: 1.05;
  letter-spacing: -.5px; color: #fff;
}

.jh-pillar-body {
  padding: 24px; flex: 1;
  display: flex; flex-direction: column;
}
.jh-pillar-oneliner {
  font-weight: 700; font-size: 15px;
  color: #1E398D; margin-bottom: 12px; line-height: 1.35;
}
.jh-pillar-body > p { font-size: 14px; color: #4A4A4A; line-height: 1.5; margin-bottom: 16px; }

.jh-pillar-steps { list-style: none; padding: 0; margin-top: auto; margin-bottom: 16px; }
.jh-pillar-steps li {
  font-size: 13px; padding: 8px 0;
  border-top: 1px solid var(--ods-border);
  display: flex; align-items: center; gap: 8px;
}
.jh-pillar-steps li:first-child { border-top: none; }
.jh-pillar-steps li::before { content: '→'; color: #034EA2; font-weight: 700; flex-shrink: 0; }
.jh-pillar-link { font-size: 13px; font-weight: 700; color: #034EA2; text-decoration: none; }
.jh-pillar-link:hover { text-decoration: underline; }

/* =========================================================
   DETAIL SEKCE (téma deep)
   ========================================================= */
.jh-theme-deep {
  background: #fff; border: 1px solid var(--ods-border);
  border-radius: 10px; padding: 40px;
  border-top: 4px solid #E07B31;
}
.jh-theme-deep--orange { border-top-color: #E07B31; }
.jh-theme-deep--red    { border-top-color: #C0392B; }
.jh-theme-deep--green  { border-top-color: #1A8A5A; }

.jh-theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.jh-theme-col h3 {
  font-size: 22px; font-weight: 800; color: #1E398D;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 3px solid var(--ods-border);
}
.jh-theme-deep--orange .jh-theme-col h3 { border-bottom-color: #E07B31; color: #B65A0F; }
.jh-theme-deep--red    .jh-theme-col h3 { border-bottom-color: #C0392B; color: #9B2B20; }
.jh-theme-deep--green  .jh-theme-col h3 { border-bottom-color: #1A8A5A; color: #145E3E; }

.jh-bullets { padding-left: 18px; margin: 14px 0; }
.jh-bullets li { font-size: 14px; margin: 9px 0; line-height: 1.5; }
.jh-bullets li::marker { color: #034EA2; font-weight: 900; }

/* =========================================================
   VLASTNÍ FOOTER
   ========================================================= */
#jh2026-footer {
  background: #0D1B35;
  color: rgba(255,255,255,.75);
  padding: 52px 0 36px;
  text-align: center;
}
.jh-footer-logo {
  display: flex; align-items: center;
  justify-content: center; gap: 14px; margin-bottom: 28px;
}
.jh-footer-ods-box {
  background: #fff; color: #034EA2;
  font-weight: 900; font-size: 26px;
  padding: 6px 14px; border-radius: 2px; letter-spacing: -1px;
}
.jh-footer-ods-text { text-align: left; font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.85); }
.jh-footer-ods-text strong { display: block; font-size: 15px; color: #fff; }
.jh-footer-slogan { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 24px; }
.jh-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 24px; }
.jh-footer-nav a { font-size: 14px; color: rgba(255,255,255,.6); text-decoration: none; }
.jh-footer-nav a:hover { color: #fff; }
.jh-footer-copy { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.jh-footer-contact { font-size: 13px; color: rgba(255,255,255,.45); }
.jh-footer-contact a { color: rgba(255,255,255,.55); text-decoration: none; }
.jh-footer-contact a:hover { color: #fff; }

/* =========================================================
   KANDIDÁTI GRID
   ========================================================= */
.kandidati-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px,1fr));
  gap: 18px;
}
.kandidat-card {
  background: #fff; border: 1px solid var(--ods-border);
  border-radius: 8px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.kandidat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(3,78,162,.14); }

.kandidat-card.lidra { grid-column: span 2; display: flex; }
.kandidat-card.lidra .k-photo { width: 160px; flex-shrink: 0; min-height: 200px; aspect-ratio: auto; }
.kandidat-card.lidra .k-body  { padding: 24px; display: flex; flex-direction: column; justify-content: center; }

.k-photo {
  background: linear-gradient(135deg, #0D1B35 0%, #034EA2 100%);
  aspect-ratio: 4/5; position: relative; overflow: hidden;
}
.k-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.k-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.k-initials {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
}
.k-number {
  position: absolute; top: 10px; left: 10px;
  background: var(--ods-blue); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 3px; line-height: 1;
}
.kandidat-card.lidra .k-number { background: var(--ods-orange); }
.k-body { padding: 14px 12px; }
.k-name { font-size: 14px; font-weight: 800; color: #1E398D; line-height: 1.25; margin-bottom: 4px; }
.kandidat-card.lidra .k-name { font-size: 22px; margin-bottom: 6px; }
.k-meta { font-size: 12px; color: #4A4A4A; line-height: 1.35; }
.kandidat-card.lidra .k-meta { font-size: 14px; }
.k-age {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: #F4F6FA; color: #1E398D;
  padding: 2px 7px; border-radius: 3px; margin-top: 6px;
}
.lidra-bio { font-size: 14px; color: #4A4A4A; line-height: 1.55; margin-top: 10px; }

/* =========================================================
   GLOBÁLNÍ UTILITY
   ========================================================= */
.ods-key-fact {
  background: #F4F6FA; padding: 16px 20px;
  border-radius: 0 4px 4px 0; margin: 16px 0;
  border-left: 4px solid #034EA2;
}
.ods-key-fact.orange { border-left-color: #E07B31; }
.ods-key-fact.red    { border-left-color: #C0392B; }
.ods-key-fact.green  { border-left-color: #1A8A5A; }
.ods-key-fact .kf-big  { font-size: 26px; font-weight: 900; color: #1E398D; line-height: 1; }
.ods-key-fact .kf-desc { font-size: 13px; color: #4A4A4A; margin-top: 5px; line-height: 1.45; }

.ods-spec-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(3,78,162,.08); border: 1px solid #E2E6EE;
}
.ods-spec-table th, .ods-spec-table td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid #E2E6EE;
}
.ods-spec-table th { background: #F4F6FA; color: #1E398D; font-weight: 700; font-size: 12px; }
.ods-spec-table tr:last-child td { border-bottom: none; }
.ods-spec-table td.val { font-weight: 700; color: #1E398D; }

.ods-city-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ods-city-list li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 10px 14px;
  background: #fff; border-radius: 4px; border: 1px solid #E2E6EE;
}
.city-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.city-badge.ma   { background: #E8F7EE; color: #145E3E; }
.city-badge.nema { background: #FFEBEA; color: #C0392B; }

.ods-parking-item {
  display: flex; gap: 14px; background: #fff;
  border-radius: 8px; padding: 16px 18px;
  border: 1px solid #E2E6EE; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(3,78,162,.06);
}
.ods-parking-item .p-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: #C0392B; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.ods-parking-item strong { display: block; font-size: 14px; color: #1E398D; margin-bottom: 3px; }
.ods-parking-item p { font-size: 13px; color: #4A4A4A; line-height: 1.45; margin: 0; }

.ods-milestone-list { list-style: none; padding: 0; position: relative; }
.ods-milestone-list::before {
  content: ''; position: absolute;
  left: 15px; top: 16px; bottom: 16px;
  width: 2px; background: #E2E6EE;
}
.ods-milestone-list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; position: relative;
}
.ods-milestone-list .m-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid #E2E6EE;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #4A4A4A;
  flex-shrink: 0; position: relative; z-index: 1;
}
.ods-milestone-list .active .m-dot { background: #034EA2; border-color: #034EA2; color: #fff; }
.ods-milestone-list .done   .m-dot { background: #1A8A5A; border-color: #1A8A5A; color: #fff; }
.m-label { font-weight: 700; font-size: 14px; color: #1E398D; display: block; }
.m-note  { font-size: 13px; color: #4A4A4A; margin-top: 2px; }

.ods-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ods-stat { background: #F4F6FA; border-radius: 8px; padding: 18px; text-align: center; }
.ods-stat .val { font-size: 24px; font-weight: 900; color: #1E398D; line-height: 1; }
.ods-stat .lbl { font-size: 12px; color: #4A4A4A; margin-top: 5px; line-height: 1.35; }

.ods-finance-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.ods-finance-item { background: #F4F6FA; border-radius: 8px; padding: 18px; text-align: center; }
.ods-finance-item .val { font-size: 22px; font-weight: 900; color: #1E398D; line-height: 1; }
.ods-finance-item .lbl { font-size: 11px; color: #4A4A4A; margin-top: 5px; line-height: 1.35; }

.ods-img-wrap { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.ods-img-wrap img { display: block; width: 100%; height: auto; }
.ods-img-cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 40px 18px 16px; color: #fff;
}
.ods-img-cap .cap-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.8px; opacity: .75; margin-bottom: 4px; }
.ods-img-cap .cap-text  { font-size: 14px; font-weight: 600; line-height: 1.4; }
.ods-img-cap .cap-note  { font-size: 11px; opacity: .55; margin-top: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .jh-values-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 767px) {
  .jh-hero { padding: 60px 0 72px; }
  .jh-hero-stats { grid-template-columns: 1fr; }
  .jh-pillars { grid-template-columns: 1fr; }
  .jh-values-grid { grid-template-columns: 1fr; }
  .jh-theme-grid { grid-template-columns: 1fr; gap: 28px; }
  .jh-theme-deep { padding: 24px; }
  .ods-stats-grid { grid-template-columns: repeat(2,1fr); }
  .ods-finance-grid { grid-template-columns: 1fr; }
  .kandidati-grid { grid-template-columns: repeat(2,1fr); }
  .kandidat-card.lidra { grid-column: span 2; flex-direction: column; }
  .kandidat-card.lidra .k-photo { width: 100%; min-height: 200px; }
  .jh-footer-logo { flex-direction: column; }
  .jh-section { padding: 52px 0; }
}
