/*
Theme Name: Den Artritidy 2025
Author: Daniel Korkes
Version: 1.0
*/

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/gilroy/Gilroy-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/gilroy/Gilroy-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/gilroy/Gilroy-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/gilroy/Gilroy-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/gilroy/Gilroy-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/gilroy/Gilroy-Heavy.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: optional;
}


:root {
  --zelena: #71bf44;
  --tmave-zelena: #078848;
  --oranzova: #f99d1d;
  --magenta: #ec008d;
  --svetle-seda: linear-gradient(180deg,rgba(209, 209, 209, 1) 0%, rgba(240, 240, 240, 1) 4%, rgba(235, 235, 235, 1) 100%);
  --tmave-seda: linear-gradient(180deg,rgba(209, 209, 209, 1) 0%, rgba(237, 237, 237, 1) 4%, rgba(224, 224, 224, 1) 100%);
  --cerna: #222;

  --btn-fg:  #ffffff;
  --btn-radius: .5rem;          /* pěkně „pilulka“ */
  --btn-pad-y: 1rem;
  --btn-pad-x: 2rem;
  --btn-shadow: 0 4px 12px rgba(0,0,0,.12);
  --btn-shadow-hover: 0 6px 16px rgba(0,0,0,.18);
  --btn-transition: .25s ease;
}

/* Globálně zapne smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Offset pro fixní/sticky header */
section[id] {
  scroll-margin-top: 10vh; /* výška tvého headeru */
}

/* Respektuje uživatele s omezenými animacemi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  scroll-behavior: smooth;
  color: var(--cerna);
}


h1, h2, h3, h4, h5, h6, p, img {
  margin: 0;
  margin-bottom: 1.5vmax;
}
h1,h2,h3,h4,h5,h6 {
  font-family: "Gilroy", sans-serif;
  font-weight: 800;
  font-style: normal;
  color: var(--zelena);
}
h1 { font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem) }
h2 { font-size: clamp(1.8rem, 2.5vw + 0.8rem, 2.8rem) }
h3 { font-size: clamp(1.5rem, 2vw + 0.6rem, 2.2rem) }
h4 { font-size: clamp(1.3rem, 1.5vw + 0.5rem, 1.8rem) }
h5 { font-size: clamp(1.1rem, 1.2vw + 0.4rem, 1.4rem) }
h6 { font-size: clamp(1rem, 1vw + 0.3rem, 1.2rem) }

a {
  color: var(--tmave-zelena);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

p { font-size: clamp(16px, 1.2vw + 0.5rem, 20px) }
p.justified { text-align: justify }
.zelena { color: var(--zelena) }
.oranzova { color: var(--oranzova) }
.magenta { color: var(--magenta) }
.text-kontura {
  text-shadow:
    -0.5px -0.5px 0 #fff,  
     0.5px -0.5px 0 #fff,
    -0.5px  0.5px 0 #fff,
     0.5px  0.5px 0 #fff;
}
.text-light-bck { background: rgba(255,255,255,.33) }
.text-condensed { letter-spacing: -.5px !important }

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

header {
  position: sticky;
  top: 0;
  height: 10vh;
  background: white;
  z-index: 999;
  display: flex;
  align-items: center; 
  transition: all 0.5s ease;
}

header.scrolled {
  height: 8vh;                       /* zmenšení výšky */
  background: rgba(255, 255, 255, 0.9); /* změna pozadí */
  border-bottom: solid 1px white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.site-header {
  width: 90vw;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 4vw; 
}

.site-header .logo {
  height: 7.5vh;
  width: 320px;
  max-width: 50vw;
  text-align: left;
  transition: all 0.5s ease;
}
header.scrolled .site-header .logo {
  height: 6.5vh;
}

.site-header .logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: left center; /* ⬅️ důležité */
  display: block;  
}

.main-nav ul {
  list-style: none;
  display: flex; 
  justify-content: right; 
  gap: 2.5vw;
  align-items: center; 
  margin: 0; 
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #222;
  font-family: "Gilroy", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1rem,1.1vmax,1.5rem);
  display: inline-block; 
  transition: all 0.3s ease;
}
.main-nav a:hover {
  transform: scale(1.15);
}

.social-icons {
  display: flex; 
  gap: 0.5rem;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2vmax;
  height: 2vmax;
  background: gray; /* šedé kolečko */
  border-radius: 50%;
  color: white !important;
  text-decoration: none;
  font-size: 1.1vmax;
  transition: background-color 0.3s ease;
}
.social-icons a:hover {
  background: var(--zelena);/* zelená na hover */
}
#kdo-jsme .social-icons {
  gap: 1rem;
}
#kdo-jsme .social-icons a {
  width: 3vmax;
  height: 3vmax;
  font-size: 1.6vmax;
}
.hamburger, .social-mobile {
  display: none;              /* zobrazíme až pod 992px */
}
/* základní vzhled tlačítka */
.hamburger {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

/* tři čárky */
.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--cerna);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease, bottom .25s ease;
}

/* rozmístění čárek */
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }

/* stav otevřeno → křížek */
.hamburger.is-active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Mobilní layout do 992px */
@media (max-width: 991px) {
  /* horní (desktopová) sada ikon mimo nav je na mobilu skrytá */
  .main-nav, .social-icons:not(.social-mobile) { 
    display: none; 
  }
  .hamburger { 
    display: inline-block; 
  }
  .main-nav.open .social-mobile {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;          /* odtlač dolů */
    padding: 1rem;
  }
  .main-nav.open .social-mobile a {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    background-color: var(--zelena);
  }
}

/* Styl pro rozbalené menu */
.main-nav.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 10vh; /* pod header */
  left: 0;
  width: 100%;
  background: white;
  padding: 1rem 0;
}

.main-nav.open ul {
  flex-direction: column;
  gap: 1rem;
}

.main-nav.open a {
  font-size: 1.5rem;
}

section {
  padding: 7vh 5vw;
  border-bottom: solid 1px rgba(255, 255, 255, .5)
}
section.light {
  background: var(--svetle-seda);
}
section.dark {
  background: var(--tmave-seda);
}
section.green {
  background: var(--zelena);
}
section.hero {
  min-height: unset;
  height: 80vh;
  padding: 0;
}
/* vertikální display do 992px */
@media (max-width: 991px) {
  section.hero {
    height: 60vh;
  }
}
/* mobilní display do 600px */
@media (max-width: 600px) {
  section.hero p {
    max-width: 300px;
  }
}

.container {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.grid {
  display: grid;
  gap: 5vw; 
  align-items: start; 
}
.col3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.col2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .col3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .col3 > div:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;      /* roztáhni přes oba sloupce */
    justify-self: center;     /* zarovnej do středu */
    width: 50%;                /* libovolná šířka pro efekt */
  }
}
/* Tablet – jeden sloupec */
@media (max-width: 991px) {
  .col2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
/* Mobil – jeden sloupec */
@media (max-width: 600px) {
  .col3 {
    grid-template-columns: 1fr;
  }
  .col3 > div:nth-last-child(1):nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

/* HERO BANNER */
.hero-slides {
  height: 100%;
  width: 100%;
}
.slide {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: 40%;
  background-repeat: no-repeat;
  transition: opacity .5s ease, visibility .5s ease, background-image .5s ease-in-out;
}
.hero .slide:nth-child(1) {
  background-image: url("https://www.denartritidy.cz/2025/wp-content/uploads/2025/08/web-bones-2048x802.jpg");
}
.hero .slide:nth-child(2) {
  background-image: url("https://www.denartritidy.cz/2025/wp-content/uploads/2025/08/web-skin-2048x802.jpg");
}
.hero .slide:nth-child(3) {
  background-image: url("https://www.denartritidy.cz/2025/wp-content/uploads/2025/08/web-joints-2048x802.jpg");
}
.slide > div {
  width: 90vw;
  max-width: 1200px;
  margin: 5vh auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.slide h1 { 
  max-width: 600px;
}
.slide p { 
  font-size: 2rem; 
  max-width: 650px;
  margin: 0;
}

/* Základ tlačítka */
.btn {
  --btn-bg: #333;               /* výchozí, přepíše varianta níže */

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: var(--btn-pad-y) var(--btn-pad-x);
  margin: 2vh 0;
  border: 0;
  border-radius: var(--btn-radius);
  color: var(--btn-fg);
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(0,0,0,.0)) , var(--btn-bg);
  box-shadow: var(--btn-shadow);

  font-weight: 600;                
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.8rem);
  line-height: 1;
  font-family: "PT Sans", sans-serif;
  letter-spacing: .2px;
  cursor: pointer;
  text-decoration: none;

  /* „lesk“ při hoveru – jemná šikmá záře přejede přes tlačítko */
  position: relative;
  overflow: hidden;

  transition: transform var(--btn-transition),
              box-shadow var(--btn-transition),
              filter var(--btn-transition),
              background-position var(--btn-transition);
}

/* Šikmý highlight */
.btn::after {
  content: "";
  position: absolute;
  inset: -150%;
  background: linear-gradient(60deg,
              rgba(255,255,255,0) 30%,
              rgba(255,255,255,.35) 50%,
              rgba(255,255,255,0) 70%);
  transform: translateX(-60%);
}

/* Hover/active */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}

.btn:hover::after {
  transform: translateX(30%);   /* jemný přejezd lesku */
}

.btn:active {
  transform: translateY(0);
  filter: brightness(.95);
}

/* Focus – přístupnost */
.btn:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.9),
    0 0 0 6px rgba(0,0,0,.2),
    var(--btn-shadow-hover);
}

/* Disabled */
.btn[disabled],
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Barevné varianty */
.btn--zelena  { --btn-bg: var(--zelena); }
.btn--oranzova{ --btn-bg: var(--oranzova); }
.btn--magenta { --btn-bg: var(--magenta); }

.styled {
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow);
  transition: transform var(--btn-transition),
              box-shadow var(--btn-transition),
              filter var(--btn-transition),
              background-position var(--btn-transition);
  overflow: hidden;
}

.event-day {
  background-color: #ddd;
  margin-bottom: 1rem;
  width: 100%;
  padding-bottom: .5rem;
}

.event-day h3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: white;
  padding: .75rem;
  margin-bottom: 0px;
  background-color: #aaa;
  border-top: solid 1px #777;
  border-bottom: solid 1px #777;
}

.event-day ul {
  list-style: none;
  padding-left: 1.5rem;
}

.event-day ul li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}

.event-day ul li::before {
  content: "•";
  color: var(--tmave-zelena, #078848);
  position: absolute;
  left: -1rem;
}
.event-day ul li img {
  margin: 1rem 0px;
}

/* SPONZOŘI */
/* Titulky sekcí */
.sponsor-group { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.group-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: .9rem;
  color: #868e96;
  text-align: center;
  margin-bottom: .75rem;
}

/* Dvě kolony: Hlavní partneři | Partneři */
.sponsor-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2rem);
}
@media (min-width: 992px) {
  .sponsor-columns { grid-template-columns: 1fr 1fr; }
}

/* Grid s logy – responsivní */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  align-items: center;
  justify-items: center;
}

/* 1 logo u generálního partnera */
.sponsor-grid.one {
  grid-template-columns: 1fr;
}

/* Obrázky log */
.sponsor-logo {
  max-width: 67%;
  height: auto;
  display: block;
  max-height: clamp(32px, 4.5vw, 46px);
  object-fit: contain;
  filter: saturate(100%);
  transition: transform .15s ease, filter .15s ease;
}

/* Větší pro generálního partnera */
.sponsor-logo.general { max-height: clamp(42px, 6.5vw, 68px); }

/* Hover efekt */
.sponsor-logo:hover { transform: scale(1.03); }

/* Jemné oddělení sekcí */
.section-partneri .sponsor-group:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}


/* PATIČKA */
footer {
  background: var(--cerna);
  color: white;
  padding: 7vh 5vw;
}
footer h5, footer h6 {
  color: var(--zelena)
}
footer p {
  font-size: 95%
}
footer a {
  color: white;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer .social-icons {
  display: flex !important;
  gap: 1vmax;
}
footer .social-icons a:hover {
  text-decoration: none;
}

/* GDPR PAGE */
#zasady-gdpr {
  padding: 2rem 0;
  line-height: 1.6;
}
#zasady-gdpr h1, 
#zasady-gdpr h2,
#zasady-gdpr h3 {
  margin-top: 1.5rem;
  font-weight: 700;
}
#zasady-gdpr table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
#zasady-gdpr th,
#zasady-gdpr td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
}
