@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');


/* ZÁKLADNÍ NASTAVENÍ */
:root {
    --color-text-main: #f5f5f5;
    --color-text-muted: #dddddd;
    --color-accent: #c0392b;
    --header-height: 93px;
    --transition-fast: 0.2s ease;
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.45);
}

*,*::before,*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Merriweather";
    background-color: #0f0f0f;
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 80%;
    margin-inline: auto;
}

.section {
    padding: 3rem 0;
    position: relative;
    color: whitesmoke;
}

/* Opakující se fotka na pozadí */
.section-pattern {
    background: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
    url("img/backround.jpg");
    background-repeat: repeat;
    background-size: auto;
    z-index: 100;
}


/* Desing Scrollbar */
::-webkit-scrollbar{
    width: 9px;
}

::-webkit-scrollbar-thumb{
    background-color: #606060c5;
    border-radius: 5px;
}

/* ČERVENÁ LINKA MEZI SEKCEMI */
.section::after {
    content: "";
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 9rem auto 0 auto;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 44, 21, 0.85),
        transparent
    );
}


/* Univerzální titulky a texty */
.section-title {
    font-family: "Cinzel";
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-title--center {
    text-align: center;
}

.section-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 300;
}



/* --------- NAVBAR ---------*/

.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: var(--header-height);
    z-index: 102;
    padding-top: 1px;
    background: transparent;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

/* objevení po scrollu */
.site-header.site-header--scrolled {
    background: rgba(6, 6, 9, 0.79);
    backdrop-filter: blur(13px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;      
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    display: block;
    height: 65px;
    width: auto;
    filter: invert(1); 
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    margin-top: 11px; 
}

.nav-logo-text span {
    color: white;
    font-weight: 700;       
    font-size: 0.65rem;    
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;    
}

.nav-menu {
    display: flex;
    gap: 5rem;
    list-style: none;
    font-size: 1rem;
    font-weight: 600;
}

.nav-link {
    color: whitesmoke;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    position: relative;
    padding-block: 0.25rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--color-accent);
    transition: transform var(--transition-fast);
}

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

/* HAMBURGER TLAČÍTKO (POUZE NA MOBILECH) */
.nav-toggle {
    display: none;
    width: 36px;
    height: 30px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* animace hamburgeru při otevřeném menu */
.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}



/* --------- SEKCE ÚVOD --------- */

.section-uvod {
    padding: 0;
    background-image: url("img/assety/baba-nahled.jpg");
    background-size: cover;
    background-position: 62%;
    min-height: 100vh;
    z-index: 101;
    position: relative;
    box-shadow: 0 22px 40px rgba(5, 5, 5, 0.481);
}

.section-uvod::before {
content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to right,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.15),
        rgba(0,0,0,0)
      );

}

.uvod-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    padding-top: 140px;
    display: flex;
    align-items: center;
}

.uvod-vnitrek {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
    text-align: center;
}

.uvod-text-block {
    max-width: 900px;
    color: #E0A458;
    padding: 3rem 0;
    margin-left: -10vw;
    font-family: "Cinzel";
}

.uvod-motto {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-style: italic;
}

.uvod-subtitle {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.20em;
    color: whitesmoke;
    margin-bottom: 3rem;
}


/* --------- šipka dolů --------- */
.scroll-down {
    text-decoration: none;
}

.scroll-down-icon {
    margin-top: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgb(252, 252, 252);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1.6s infinite;
}

.scroll-down-icon::before {
    content: "";
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 6px;
    transform: rotate(45deg);
    position: relative;
    top: -2px;
}

.scroll-down-icon::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 12px;
    background: #ffffff;
    top: 9px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}



/* --------- SEKCE KDO JSME --------- */

.section-kdojsme {
    padding: 8rem 0;
}

.kdojsme-layout {
    display: grid;
    max-width: 950px;
    gap: 5rem;
    align-items: center;
}

.kdojsme-image {
    border: 2px solid rgb(27, 27, 27);
    padding: 0;
    box-shadow: var(--shadow-card);
}

.kdojsme-text .section-title{
    text-align: center;
    font-size: 3rem;
}

.kdojsme-text p {
    text-align: center;
    color: #cdcdcd;
    font-size: 1.14rem;
    margin-bottom: 0.9rem;
    font-weight: 300;
}

.kdojsme-image img {
    max-width: 100%;
    display: block;
}




/* --------- SEKCE MAPA --------- */

.section-map .map-placeholder {
  display: block;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 900px;
  box-shadow: var(--shadow-card);
  padding: 0;
  border-radius: 2px;
  overflow: visible;
  position: relative; 
  background-color: rgba(0, 0, 0, 0.227);
}

.section-map .map-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- PINY ---- */
.map-pin{
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  width: clamp(8px, 1.0vw, 14px);
  height: clamp(8px, 1.0vw, 14px);
  padding: 9px;          
  border-radius: 999px;
  background: #e01919;
  box-shadow: 0 0 0 1px #ffffff, 0 6px 18px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  outline: none;
  z-index: 1;                
  text-decoration: none;
}

.map-pin:hover,
.map-pin:focus-visible{
  z-index: 50;
  transform: translate(-50%, -50%) scale(1.12);
  filter: brightness(1.05);
  box-shadow: 0 0 0 3px #ffffff, 0 10px 28px rgba(0,0,0,.35);
}

.map-pin .pin-tooltip{
  position: absolute;
  left: 50%;
  bottom: 145%;
  transform: translateX(-50%) translateY(8px);
  width: 230px;         
  background: rgba(20,20,20,0.92);
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 80;  
}

/* náhledový obrázek při najetí */
.map-pin .pin-tooltip img{
  display: block;
  width: 100%;
  height: 120px;    
  object-fit: cover;
}

/* název legendy */
.map-pin .pin-tooltip .pin-title{
  display: block;
  padding: 10px 12px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
}

.map-pin .pin-tooltip::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: rgba(20,20,20,0.92);
}

.map-pin:hover .pin-tooltip,
.map-pin:focus-visible .pin-tooltip{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.map-pin.is-active{
  z-index: 120;
  transform: translate(-50%, -50%) scale(1.15);
}

.map-pin.is-active .pin-tooltip{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.map-placeholder.has-active .map-pin{
  opacity: 0.25;
}

.map-placeholder.has-active .map-pin.is-active{
  opacity: 1;
}

/* když je fotka na výšku*/
.map-pin .pin-tooltip img.portrait{
  height: 200px;
  object-fit: contain; 
  background: rgba(0, 0, 0, 0.157); 
}





/* --------- SEKCE SLIDESHOW --------- */

.container h2, p {
    text-align: center;
}

.showcase-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.slider-track {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #050507;
    box-shadow: var(--shadow-card);
    justify-self: center;
    max-width: min(900px, 100%);
    max-height: calc(100vh - var(--header-height) - 375px);
    width: 100%;
    height: 400px;
    transition: width 0.4s ease, height 0.4s ease;
}

/* SLIDE ANIMACE */
.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slider-slide.slide-out-to-left {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

.slider-slide.slide-out-to-right {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

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

/* tečky pod sliderem */
.slider-dots {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.slider-dot.is-active {
    background: var(--color-accent);
    transform: scale(1.1);
}




/* --------- SEKCE TÝM --------- */

.section-team {
    padding-top: 2rem;
}

.team-grid {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.team-card {
    width: 30%;
    border-radius: 22px;
    padding: 2.5rem 2.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

.team-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #3f3f49;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgb(223, 223, 223);
}

.team-role {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 300;
    color: rgb(233, 233, 233);
}

.btn {
    padding: 0.8rem 2.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
    background: #e45b4a;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--color-text-main);
    background: transparent;
    color: var(--color-text-main);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-outline:hover {
    background: var(--color-text-main);
    color: #000;
    border-color: var(--color-text-main);
}



/* --------- SEKCE KONTAKTY --------- */

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    align-items: center;
}

/* LEVÁ STRANA */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 40%;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: whitesmoke;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-list li i {
    color: var(--color-accent);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.contact-form-box {
    background: #121212;
    padding: 2rem 2.4rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    max-width: 100%;
    resize: vertical;
    min-height: 50px;
    max-height: 1000px;
    border-radius: var(--radius-soft);
    padding: 0.7rem 1rem;
    background: rgba(13, 13, 13, 0.123);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-text-main);
}

.form-title{
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* PRAVÁ STRANA MAPA */
.contact-right{
width: 50%;
}

.contact-map-box {
    width: 100%;
}

.contact-map {
    width: 100%;
    min-height: 420px;
    padding: 0;
    border: 0px;
}

.contact-map iframe{
    filter: invert(90%) hue-rotate(180deg);
}



/* --------- FOOTER --------- */

.site-footer {
    background: #131313;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.3rem 0;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
}


/* RESPONZIVITA*/

@media(min-width: 1200px) {
    .slider-track{
        max-width: min(900px, 100%);
        max-height: calc(100vh - var(--header-height) - 430px);
    }
}


@media(max-width:1500px) {
    .nav-menu {
        gap: 2.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 90%;
    }

    .kdojsme-layout {
        gap: 3rem;
    }

    .team-card {
        width: 40%;
    }

    .contact-grid {
        gap: 2.5rem;
    }

    .nav-menu {
        gap: 2rem;
    }

    .map-pin {
        width: 14px;
        height: 14px;
        padding: 0px;
    }
}

@media (max-width: 992px) {

    .section-title{
    font-size: 2.2rem;
    }

    .section-map .section-title{
        font-size: 1.8rem;
        text-align: center;
    }

    .uvod-text-block {
    margin-left: -2vw;
    }

    .kdojsme-text .section-title{
        font-size: 2.2rem;
    }

    .nav-menu {
        gap: 2rem;
        font-size: 0.9rem;
    }

    .map-pin {
        width: 14px;
        height: 14px;
        padding: 0px;
    }

    .kdojsme-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .kdojsme-text p {
    font-size: 1.12rem;
    }

    .kdojsme-image {
        order: 2;
    }

    .kdojsme-text {
        order: 1;
    }

    .team-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .team-card {
        width: 45%;
        max-width: 350px;
    }

    .contact-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        max-width: none;
    }

    .contact-map {
        min-height: 340px;
    }
}

/* tablety + mobily */
@media (max-width: 800px) {
    .site-header{
        background: rgba(6, 6, 9, 0.79);
    }

    .map-pin {
        width: 10px;
        height: 10px;
        padding: 0px;
    }

    .container {
        width: 100%;
        padding-inline: 1.5rem;
    }

    .section {
        padding: calc(var(--header-height) + 1.5rem) 1.5rem 3.5rem;
    }

    .section-uvod {
        padding: 0;
    }

    .uvod-text-block {
        padding: 2rem 0;
    }

    .uvod-motto {
        font-size: 2.1rem;
        letter-spacing: 0.08em;
    }

    .uvod-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.18em;
    }

    .main-nav {
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
        margin-right: 2rem;
    }
    .kdojsme-text p{
        font-size: 1.05rem;
    }

    .nav-menu {
        position: fixed;
        inset-inline: 0;
        inset-block-start: var(--header-height);
        background: #0f0f0f;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 1.5rem 0 2rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .site-header.nav-open .nav-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .showcase-slider {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        row-gap: 1.3rem;
    }

    .slider-arrow {
        justify-self: center;
    }

    .slider-track {
        max-width: 100%;
        max-height: calc(100vh - var(--header-height) - 140px);
    }

    .team-grid {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 100%;
        max-width: 320px;
    }

    .contact-form-box {
        padding-inline: 1.5rem;
    }

    .contact-list li {
        font-size: 1rem;
    }

    .contact-map {
        min-height: 300px;
    }

    .section-map h2{
    font-size: 2rem;
    }
}

/* hodně malé telefony */
@media (max-width: 480px) {

    .nav-logo {
        font-size: 0.85rem;
    }

    .map-pin {
        padding: 0px;
        width: 8px;
        height: 8px;
    }

    .nav-menu {
        font-size: 0.85rem;
    }

    .uvod-motto {
        font-size: 1.8rem;
    }

    .uvod-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.14em;
    }

    .kdojsme-layout {
        gap: 2rem;
    }

    .contact-form-box {
        padding-inline: 1.2rem;
    }
}

