
/*
Theme Name: jakubWP
Theme URI: https://stacilo.cz
Author: Jakub Kašpar team
Description: Jednoduché téma pro osobní web kandidáta. Důraz na čitelnost, červenou a bílou barevnost a snadné kontakty.
Version: 1.0.0
Text Domain: jakubwp
*/
:root{
  --primary:#C2191E; /* kampaňová červená */
  --primary-dark:#8F1418;
  --bg:#fff;
  --text:#111;
  --muted:#666;
  --radius:16px;
  --shadow:0 8px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans","Liberation Sans",sans-serif;line-height:1.6}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.header{position:sticky;top:0;background:#fff;border-bottom:1px solid #eee;z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:20px}
.brand .badge{background:var(--primary);color:#fff;padding:2px 10px;border-radius:999px;font-size:12px;box-shadow:var(--shadow)}
.menu{display:flex;gap:18px;font-weight:600}
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center;padding:48px 0}
.hero .title{font-size:48px;line-height:1.1;margin:0 0 12px;font-weight:900}
.hero .subtitle{font-size:20px;color:var(--muted);margin:0 0 24px}
.btn{display:inline-block;background:var(--primary);color:#fff;padding:14px 22px;border-radius:999px;font-weight:800;box-shadow:var(--shadow)}
.btn:hover{background:var(--primary-dark);text-decoration:none}
.card{background:#fff;border:1px solid #eee;border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}
.grid{display:grid;gap:22px;grid-template-columns:repeat(3,1fr)}
.section{padding:40px 0}
.footer{margin-top:40px;background:#111;color:#fff}
.footer a{color:#fff}
.footer .columns{display:grid;gap:16px;grid-template-columns:2fr 1fr}
img{max-width:100%;height:auto;border-radius:12px}
figure{margin:0}
@media(max-width:900px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
}


/* --- Úpravy finální verze --- */
.hero .card{padding:30px}
.hero figure{justify-self:end}
.hero{display:grid;grid-template-columns:1.3fr 0.9fr;gap:32px;align-items:center}
.hero img{border-radius:16px;box-shadow:var(--shadow)}

/* Priority v jednom sloupci */
.priorities .grid{grid-template-columns:1fr}
.priorities .card{padding:18px}
.priorities h3{margin:0}

/* Moderní kontaktní formulář */
.contact-card{padding:24px;border-radius:22px;box-shadow:var(--shadow);border:1px solid #eee;background:#fff}
.contact-form input,.contact-form textarea{
  width:100%;
  display:block;
  border:1px solid #ddd;
  border-radius:12px;
  padding:12px 14px;
  margin-top:6px;
  outline:none;
}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--primary)}
.contact-form button.btn{width:auto;padding:12px 20px;border-radius:999px}


/* Úprava hero sekce - fotka blíž k textu a centrovaná */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero figure {
  display: flex;
  justify-content: center;
}
.hero img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
}

/* Priority popisky */
.priority-desc {
  color: var(--muted);
  font-size: 16px;
  margin-top: 6px;
}
.priorities .grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.priorities .card {
  padding: 18px;
}


/* Hero with centered content and posters */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 20px;
}
.hero figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
}

/* Posters in hero */
.hero .poster {
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 100%;
}

/* Style for "Proč kandiduji" to match priorities */
.program-card {
  padding: 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.program-card h2 {
  margin-top: 0;
}
.program-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}


/* Posters section below hero */
.posters-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.posters-section img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
@media(max-width:768px){
  .posters-section .grid {
    grid-template-columns: 1fr;
  }
}


/* Posters section styled */
.posters-section {
  background: #f8f8f8;
  padding: 30px 20px;
}
.posters-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  justify-items: center;
}
.posters-section .card {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}
.posters-section img {
  width: 70%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.posters-section img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.poster-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
@media(max-width:768px){
  .posters-section .grid {
    grid-template-columns: 1fr;
  }
  .posters-section img {
    width: 90%;
  }
}


/* === Portrait badge + mobile order === */
.hero-figure{position:relative}



@media (max-width: 768px){
  .section.hero.card{display:flex; flex-direction:column; align-items:center}
  .section.hero.card figure{order:1; margin-bottom:1rem}
  .section.hero.card > div{order:2}
}





/* === Modern red badge === */




/* === Modernize contact section on mobile === */
.section.kontakt, .section.contact{
  text-align:center;
  padding:2rem 1rem;
}
.section.kontakt .container, .section.contact .container{
  margin:0 auto;
  max-width:600px;
}
.section.kontakt a.btn, .section.contact a.btn{
  border-radius:999px;
  padding:.9rem 1.5rem;
  font-size:1.1rem;
}



/* === Modern badge with gradient + glow === */



/* === Hero mobile order with breaks === */
@media (max-width:768px){
  .section.hero.card{display:flex; flex-direction:column; align-items:center; text-align:center}
  .section.hero.card h1.title{order:1; margin-bottom:.5rem}
  .section.hero.card .subtitle{order:2; margin-bottom:1rem}
  .section.hero.card figure{order:3; margin-top:1rem}
}

/* === Footer contact modernize on mobile === */
@media (max-width:768px){
  .site-footer{ text-align:center; padding:2rem 1rem }
  .site-footer .container{ margin:0 auto; max-width:600px }
  .site-footer a.btn{ display:block; margin:.5rem auto; border-radius:999px; padding:.9rem 1.5rem; font-size:1.1rem }
}





@media (max-width: 768px){
  .section.hero.card{display:flex; flex-direction:column}
  
  .mobile-hero-name{margin:0 0 .2rem 0}
  .mobile-hero-line{margin:.2rem 0 1rem 0; font-weight:700}
  .section.hero.card > div{order:2}
  .section.hero.card figure{order:3}
  /* Hide original headline/sub on mobile to avoid duplication */
  
}

/* === Modern gradient badge with glow === */
.hero-figure{position:relative}


@media (max-width: 768px){
  
  
}

/* === Footer/contact centering on mobile === */
@media (max-width: 768px){
  .site-footer{ text-align:center; }
  .site-footer .container{ max-width:640px; margin:0 auto; padding:1rem; }
  .site-footer a.btn{ display:inline-block; border-radius:999px; padding:.9rem 1.4rem; }
}



/* === Modern gradient badge with glow === */
.hero-figure{position:relative}
.badge-2{
  position:absolute; right:6%; bottom:6%;
  width:72px; height:72px; border-radius:50%;
  background: radial-gradient(80% 80% at 70% 30%, rgba(255,120,120,.95) 0%, rgba(255,0,0,.95) 60%, rgba(200,0,0,.95) 100%);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,.3), 0 0 18px rgba(255,0,0,.35);
}
.badge-2 span{
  font-weight:900; font-size:2rem; color:#fff; line-height:1;
}
@media (max-width: 768px){
  .badge-2{width:68px; height:68px}
  .badge-2 span{font-size:1.9rem}
}

/* === Footer/contact centering on mobile === */
@media (max-width: 768px){
  .site-footer{ text-align:center; }
  .site-footer .container{ max-width:640px; margin:0 auto; padding:1.5rem; }
  .site-footer a.btn{ display:inline-block; border-radius:999px; padding:.9rem 1.4rem; margin:.25rem 0; }
}



/* === Mobile hero: photo first, text after === */
@media (max-width: 768px){
  .section.hero.card{display:flex; flex-direction:column; align-items:center}
  .section.hero.card figure{order:1; margin-bottom:1rem}
  .section.hero.card > div{order:2; text-align:center}
}



/* === Mobile: show photo first, then hero text === */
@media (max-width: 768px){
  .section.hero.card{display:flex; flex-direction:column}
  .section.hero.card figure{order:1; margin:0 0 1rem 0}
  .section.hero.card > div{order:2}
}



/* === Footer (black section) mobile cleanup === */
@media (max-width: 768px){
  .footer .container.section.columns{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap: .75rem;
    padding: 1.25rem 1rem;
    max-width: 640px;
    margin: 0 auto;
  }
  .footer .container.section.columns > div{
    width:100%;
  }
  .footer .btn{
    display:inline-block;
    border-radius:999px;
    padding:.9rem 1.4rem;
    margin-top:.25rem;
  }
}



/* === Mobile: photo first, then keep hero text visible === */
@media (max-width: 768px){
  .section.hero.card{display:flex; flex-direction:column}
  .section.hero.card figure{order:1; margin:0 0 1rem 0}
  .section.hero.card > div{order:2}
}



/* === Ensure: Mobile shows photo first, then hero text === */
@media (max-width: 768px){
  .section.hero.card{display:flex; flex-direction:column}
  .section.hero.card figure{order:1; margin:0 0 1rem 0}
  .section.hero.card > div{order:2}
}

