/* =========================
   1) Fonts (OTF)
   ========================= */

/* Kenyan Coffee (nadpisy) */
@font-face {
  font-family: "Kenyan Coffee";
  src: url("../fonts/Kenyan_coffee/kenyan_coffee_rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kenyan Coffee";
  src: url("../fonts/Kenyan_coffee/kenyan_coffee_rg_it.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Kenyan Coffee";
  src: url("../fonts/Kenyan_coffee/kenyan_coffee_bd.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kenyan Coffee";
  src: url("../fonts/Kenyan_coffee/kenyan_coffee_bd_it.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* DINPro (texty) */
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro/DINPRO-LIGHT.OTF") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro/DINPRO-REGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro/DINPRO-MEDIUM.OTF") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro/DINPRO-BOLD.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro/DINPRO-BLACK.OTF") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =========================
   2) Brand + Global
   ========================= */

:root{
  /* Brand colors */
  --c-black: #060e19;
  --c-bluegray: #02394d;
  --c-blue: #074785;
  --c-gray: #dfe1e9;
  --c-turq: #87cfe7;
  --c-yellow: #eee39e;

  /* UI */
  --text: var(--c-black);
  --muted: rgba(6, 14, 25, 0.72);
  --line: rgba(6, 14, 25, 0.14);
  --line-strong: rgba(6, 14, 25, 0.22);
}

html, body{
  height: 100%;
}

body{
  font-family: "DINPro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  position: relative;

  background-image: url("../img/DSC_Pattern_A.jpg");
  background-repeat: repeat;
  background-size: 2000px 2000px; /* zoom patternu */
  background-position: 50% 50%;
  background-attachment: fixed;
}

.container{
    max-width: 1140px;
}
@media (max-width: 1200px){
  .container{
    max-width: 960px;
  }
}
@media (max-width: 992px){
  .container{
    max-width: 720px;
  }
}
@media (max-width: 768px){
  .container{
    max-width: 540px;
  }
}

/* Jemné zesvětlení přes pattern pro čitelnost */
.bg-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.58);
  pointer-events: none;
  z-index: 0;
}

/* Obsah nad overlay */
header, main, footer{
  position: relative;
  z-index: 1;
}

/* Nadpisy = Kenyan */
h1, h2, h3, h4, h5, h6,
.footer-slogan{
  font-family: "Kenyan Coffee", "DINPro", system-ui, sans-serif;
  letter-spacing: 0.6px;
  color: var(--c-black);
}

p, li{
  color: var(--muted);
  margin-bottom: .3rem;
}

/* Blokové zarovnání textu (justify) */
.text-justify{
  text-align: justify;
  text-justify: inter-word;
}

/* Lepší vzhled při justify – zalamování slov (CZ/SK) */
.text-justify{
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Když nechceš dělit slova, ale chceš hezké řádky */
.text-balance{
  text-wrap: balance; /* moderní prohlížeče */
}


/* =========================
   3) Header / Nav
   ========================= */

.site-logo{
  max-height: 170px;
}

.site-header .navbar{
  margin-top: .25rem;
}

.site-header .nav-link{
  font-family: "DINPro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12px;
  color: var(--c-bluegray);
  padding: .5rem .9rem;
  text-decoration: none;
}

/* animované podtržení */
.site-header .nav-link{
  position: relative;
  background: none !important;
}

.site-header .nav-link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background-color: var(--c-bluegray);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}

.site-header .nav-link:hover::after,
.site-header .nav-link:focus-visible::after{
  transform: scaleX(1);
}

.site-header .nav-link.active{
  color: var(--c-blue);
}
.site-header .nav-link.active::after{
  transform: scaleX(1);
}

/* =========================
   4) Hero (bez boxu)
   ========================= */

.hero{
  text-align: center;
}

.hero-media{
  aspect-ratio: 16/7;
  background: rgba(0,0,0,0.04);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 37%;
}

.hero-content{
  max-width: 1120px;
  margin: 1.2rem auto 0;
}

.hero-content h1{
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--c-black);
}

.hero-content p{
  margin-top: .25rem;
  color: var(--muted);
}

.hero-content ul{
  margin: .75rem 0 0;
  padding-left: 1.1rem;
  text-align: left;
  display: inline-block; /* opticky vycentruje blok, ale text zůstane čitelně vlevo */
}

/* =========================
   5) Content sections (1 řádek = 1 sekce)
   ========================= */

.content-sections{
  border-top: 1px solid var(--line-strong);
}

.content-section{
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.content-section:last-child{
  border-bottom: none;
}

.section-head{
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .6rem;
}

.section-icon{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* decentní brandový akcent */
  background: rgba(135, 207, 231, 0.22); /* turq */
  border: 1px solid rgba(2, 57, 77, 0.14); /* bluegray */
}

.section-head h2{
  color: var(--c-black);
}

.section-body ul{
  margin: 0;
  padding-left: 1.1rem;
}

.section-media{
  overflow: hidden;
  aspect-ratio: 1/1;
  margin-top: -40px;
}
.section-media img,
.section-media video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 576px){
  .section-media{
    margin-top: 10px;
    
  }
  .section-media img,
  .section-media video{
    margin: 0 auto;
    display: block;
    max-width: 65%;
  }
}

/* =========================
   6) Kontakt + Footer
   ========================= */

.contact{
  text-align: center;
  padding-top: .75rem;
  border-top: 1px solid var(--line-strong);
}

.contact p{
  color: var(--muted);
}

.site-footer{
  border-top: 1px solid var(--line-strong);
  background: rgba(223, 225, 233, 0.35); /* šedivá */
  backdrop-filter: blur(6px);
}

.footer-slogan{
  color: var(--c-blue);
  letter-spacing: 1px;
}

/* =========================
   7) Mobile tweaks
   ========================= */

@media (max-width: 768px){
  .hero-media{
    aspect-ratio: 16/10;
  }

  .hero-content ul{
    display: block;
    text-align: left;
  }
}

/* iOS fallback: fixed background může být problematický */
@media (hover: none){
  body{
    background-attachment: scroll;
  }
}


/* =========================
   Services accordion
   ========================= */

.services-accordion{
  counter-reset: service;
  margin-top: 1.55rem;
  margin-bottom: 2.40rem;
}

/* jeden řádek služby */
.service-item{
  border-bottom: 1px solid var(--line);
  padding: .15rem 0;
}
.service-item:last-child{
  border-bottom: none;
}

/* tlačítko vypadá jako nadpis/link, ne jako button */
.service-toggle{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;

  padding: .95rem 0;
  border: 0;
  background: transparent;
  text-align: left;

  /* text */
  font-family: "Kenyan Coffee", "DINPro", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  color: var(--c-black);
}

/* číslo služby (generované, bez HTML) 
.service-toggle::before{
  counter-increment: service;
  content: counter(service) ".";
  font-family: "DINPro", system-ui, sans-serif;
  font-weight: 800;
  color: var(--c-bluegray);
  width: 2.2ch;
}*/

/* ikonka šipky */
.service-chevron{
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-bluegray);
  border-bottom: 2px solid var(--c-bluegray);
  transform: rotate(45deg);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
  justify-self: end;
}

/* když je otevřeno, bootstrap odebere .collapsed */
.service-toggle:not(.collapsed) .service-chevron{
  transform: rotate(-135deg);
}

/* hover/keyboard */
.service-toggle:hover{
  color: var(--c-blue);
}

.service-toggle:focus-visible{
  outline: 2px solid rgba(135, 207, 231, 0.8); /* turq */
  outline-offset: 6px;
}

/* vnitřek rozbalené části */
.service-body{
  padding: 0 0 1rem;
  margin-left: calc(2.2ch + .9rem); /* zarovná body pod text, ne pod číslo */
  color: var(--muted);
  font-family: "DINPro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.service-body ul{
  margin: .25rem 0 0;
  padding-left: 1.1rem;
}

.service-body li{
  margin: .25rem 0;
}

/* jemný akcent pro otevřený item */
.service-toggle:not(.collapsed){
  color: var(--c-blue);
}

/* responzivní jemné zhuštění */
@media (max-width: 576px){
  .service-toggle{
    gap: .7rem;
    padding: .85rem 0;
  }
  .service-body{
    margin-left: calc(2.2ch + .7rem);
  }
}

