/* ===========================================================================
   HOME — sekce
   =========================================================================== */

/* ============================================================
   HERO (sekce 0, modul [000-015])
   .dat:
     SECTION: gradient 90deg #2d3b44 → rgba(41,196,169,0), break 55%
     ROW: 1_3,2_3, width 90%, padding |5%||5%, border 1px #ecd8bd, flex center
     COL 2: image translate 110px|0px (DOPRAVA), pak floating images, pak text+button
   ============================================================ */
.hero {
  background: linear-gradient(
    90deg,
    var(--c-dark) 0%,
    var(--c-dark) 55%,
    rgba(41,196,169,0) 55%,
    rgba(41,196,169,0) 100%
  );
  padding-block: 40px;
}

.hero__row {
  width: 90%;
  margin: 0 auto;
  padding: 0 5%;
  border: 1px solid var(--c-cream);
  display: flex;
  align-items: center;
}

.hero__col-1 {
  flex: 0 0 33.333%;             /* column_structure 1_3 */
  padding: 60px 0;
  color: var(--c-cream);
}

.hero__col-2 {
  flex: 0 0 66.666%;             /* column_structure 2_3 */
  padding: 40px 0;
  position: relative;
}

/* Hero nadpis - pre+main, oba 55px, stack */
.hero__heading {
  display: flex;
  flex-direction: column;        /* display_in_stack=on */
  margin-bottom: 28px;
}
.hero__pre {
  font-family: var(--f-heading);
  font-size: 55px;               /* pre_header_font_size */
  font-weight: 300;              /* pre_header_font = |300| */
  line-height: 1.3em;
  color: var(--c-cream);
}
.hero__main {
  font-family: var(--f-heading);
  font-size: 55px;               /* main_header_font_size */
  font-weight: 700;              /* default Divi body_header_style=bold */
  line-height: 1.3em;
  color: var(--c-cream);
}

.hero__desc {
  color: rgba(236,216,189,0.85);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 380px;
}

/* Hero image - translate 110px doprava */
.hero__image {
  display: block;
  width: 100%;
  max-width: 100%;
  transform: translateX(110px);
  position: relative;
  z-index: 1;
}

/* "Tvoříme velkolepé" text + button uvnitř hero col-2 */
.hero__below {
  margin-top: 50px;
  padding: 0 5%;
}
.hero__below h2 {
  font-size: 40px;               /* header_2_font_size */
  text-align: left;
  margin-bottom: 20px;
}
.hero__below p {
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Floating images uvnitř hero col-2 */
.hero__floating {
  position: relative;
  height: 360px;
  margin-top: 40px;
}
.hero__float-1,
.hero__float-2 {
  position: absolute;
  overflow: hidden;
  border-radius: 0 0 0 30px;     /* border_radii = off||||30px (jen B-L) */
  box-shadow: 0 8px 30px rgba(45,59,68,0.15);
  animation: floatY 4s ease-in-out infinite;
}
.hero__float-1 {
  top: 0; left: 0;
  width: 45%;                    /* width = 45% */
  animation-duration: 1473ms;    /* floatingimage_duration */
  z-index: 1;
}
.hero__float-2 {
  top: 20%;                      /* vertical_align = 20% */
  left: 46%;                     /* horizontal_align = 46% */
  width: 50%;
  animation-duration: 2915ms;
  animation-delay: 0.3s;
  z-index: 2;
}
.hero__float-1 img,
.hero__float-2 img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1024px) {
  .hero { background: var(--c-dark); padding: 30px 0; }
  .hero__row {
    width: 100%;
    flex-direction: column;
    padding: 24px;
  }
  .hero__col-1 { flex: 1; padding: 30px 0; width: 100%; }
  .hero__col-2 { flex: 1; width: 100%; }
  .hero__image { transform: none; max-width: 100%; margin-bottom: 30px; }
  .hero__pre, .hero__main { font-size: 50px; }
  .hero__floating { height: 280px; }
}
@media (max-width: 768px) {
  .hero__pre, .hero__main { font-size: 40px; }
  .hero__below h2 { font-size: 28px; }
  .hero__floating { height: 240px; }
}

/* ============================================================
   WHAT WE DO (sekce 1, modul [016-033])
   .dat:
     SECTION bg #f8f8f8
     ROW 1: title+popis (1 sloupec)
     ROW 2: 1_4,1_4,1_4,1_4 karty
       gutter_width=1, padding 70px||70px||true|false
     Col 1: scale 90%, translate 38px|0px
     Col 2: default (žádné transformace), z-index 5
     Col 3: scale 115%, z-index 4
     Col 4: scale 90%, translate -34px|0px, z-index 1
   ============================================================ */
.wwd {
  background: var(--c-bg-section);
  padding: 90px 0;
}
.wwd__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;                        /* gutter_width=1 → 1px → prakticky 0 */
  padding: 30px 0;               /* row custom_padding 70px||70px - sníženo kvůli scale */
  margin-top: 60px;
  overflow: visible;
}

.wwd-card {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  transition: transform var(--transition-slow), z-index 0s var(--transition-slow);
  aspect-ratio: 3 / 4;
}

/* Col 1: scale 0.9, translate 38px, border-radius T-R + B-L */
.wwd-card--1 {
  transform: scale(0.9) translateX(38px);
  border-radius: 0 20px 0 20px;  /* border_radii off|20px|||20px */
}
.wwd-card--1:hover {
  transform: scale(1) translateX(17px);  /* hover scale 100%, translate 17px */
  z-index: 99999;
}

/* Col 2: default, z-index 5, hover scale 1.05 */
.wwd-card--2 {
  z-index: 5;
  border-radius: 0 20px 0 20px;  /* karta 2 STEJNÉ jako karta 1 */
}
.wwd-card--2:hover {
  transform: scale(1.05);
}

/* Col 3: scale 1.15 BASE, uvnitř karta scale 0.95 → výsledek ~1.09 */
.wwd-card--3 {
  transform: scale(1.15);
  z-index: 4;
}
.wwd-card--3 .wwd-card__inner {
  transform: scale(0.95);
}
.wwd-card--3:hover {
  transform: scale(1.05);        /* hover SCALE MENŠÍ než base */
}

/* Col 4: scale 0.9, translate -34px */
.wwd-card--4 {
  transform: scale(0.9) translateX(-34px);
  border-radius: 0 0 20px 20px;  /* off||20px|20px| */
  z-index: 1;
}
.wwd-card--4:hover {
  transform: scale(1) translateX(0);
  z-index: 5;
}

/* Karta 3+4 stejné border-radius */
.wwd-card--3 {
  border-radius: 0 0 20px 20px;
}

.wwd-card__inner {
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}
.wwd-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-slow);
}

/* Bubba effect - overlay s gradientem #2d3b44 → transparent */
.wwd-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45,59,68,0.2) 0%,
    rgba(45,59,68,0.85) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 20px;
  transition: opacity var(--transition);
}
.wwd-card__title {
  color: var(--c-white);
  font-family: var(--f-heading);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.wwd__cta {
  text-align: center;
  margin-top: 50px;
}

@media (max-width: 1024px) {
  .wwd__cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .wwd-card,
  .wwd-card--1, .wwd-card--2, .wwd-card--3, .wwd-card--4 {
    transform: none;
    border-radius: 12px;
    aspect-ratio: 3/4;
  }
  .wwd-card--3 .wwd-card__inner { transform: none; }
}
@media (max-width: 580px) {
  .wwd__cards { grid-template-columns: 1fr; }
}

/* ============================================================
   METHOD OF WORKING (sekce 2, modul [034-044])
   .dat:
     SECTION: bez bg
     ROW: 1_2,1_2, width 90%, padding 60px|5%|60px|5%
       GRADIENT NA ROW (ne section!): 90deg #2d3b44 → transparent, break 65%
       border 1px #ecd8bd, border_radii off|20px|||20px
       flex align-items: center
     COL 1: text + 3 blurby
     COL 2: image + play modal (absolute center)
   ============================================================ */
.method {
  padding-block: 90px;
}
.method__row {
  width: 90%;
  margin: 0 auto;
  padding: 60px 5%;
  background: linear-gradient(
    90deg,
    var(--c-dark) 0%,
    var(--c-dark) 65%,
    rgba(41,196,169,0) 65%,
    rgba(41,196,169,0) 100%
  );
  border: 1px solid var(--c-cream);
  border-radius: 0 20px 0 20px;  /* off|20px|||20px */
  display: flex;
  align-items: center;
  gap: 5%;
}
.method__col-1 {
  flex: 0 0 47.5%;               /* 1_2 minus gap */
}
.method__col-2 {
  flex: 0 0 47.5%;
  position: relative;
}
.method h2 {
  color: var(--c-cream);
  font-size: 40px;
  margin-bottom: 30px;
}
.method__desc {
  color: rgba(236,216,189,0.85);
  margin-bottom: 32px;
}
.method__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.method__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  font-family: var(--f-heading);
  font-size: 22px;
  font-weight: 700;
}
.method__item-icon {
  width: 28px; height: 28px;     /* image_icon_width = 28px */
  flex-shrink: 0;
  color: var(--c-white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.method__item-text {
  color: var(--c-cream);         /* header_text_color = #ecd8bd */
  font-size: 22px;               /* header_font_size = 22px */
}

.method__visual {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}
.method__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.method__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  background: var(--c-dark);     /* trigger_element_bg_color = #2d3b44 */
  color: var(--c-cream);         /* trigger_icon_color = #ecd8bd */
  border-radius: 50%;            /* border_radii on|50px... = kruh */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* box_shadow_style preset1: blur 37px, spread 3px, white */
  box-shadow: 0 0 0 3px var(--c-white), 0 0 37px rgba(255,255,255,0.5);
  transition: transform var(--transition);
  z-index: 9;
}
.method__play:hover {
  transform: translate(-50%, -50%) scale(1.05);
}
.method__play svg {
  width: 36px; height: 36px;
  fill: var(--c-cream);
  margin-left: 4px;
}

@media (max-width: 1024px) {
  .method__row {
    width: 100%;
    background: var(--c-dark);
    flex-direction: column;
    padding: 40px 24px;
    gap: 40px;
  }
  .method__col-1, .method__col-2 { flex: 1; width: 100%; }
}
@media (max-width: 768px) {
  .method h2 { font-size: 28px; }
  .method__item-text { font-size: 18px; }
  .method__play { width: 70px; height: 70px; }
  .method__play svg { width: 28px; height: 28px; }
}

/* ============================================================
   LOGO SLIDER (sekce 3)
   .dat: 5 per slide, slide_image_width 260px, monochrom (grayscale)
   ============================================================ */
.logos {
  padding-block: 50px;
  overflow: hidden;
  background: var(--c-white);
}
.logos__track {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: scrollLogos 30s linear infinite;
  width: max-content;
}
.logos__item {
  flex-shrink: 0;
  height: 50px;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.logos__item:hover { opacity: 1; }
.logos__item img {
  height: 100%;
  width: auto;
  filter: grayscale(100%);
}
@keyframes scrollLogos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   PROJECTS COMPLETED (sekce 4, modul [054-065])
   .dat:
     SECTION bg #f8f8f8
     ROW 1: title 40px + popis 60% center
     ROW 2: masonry 4 sloupce desktop, overlay rgba(45,59,68,0.76), + icon
     ROW 3: button "View All Projects"
   ============================================================ */
.projects-home {
  background: var(--c-bg-section);
  padding-block: 90px;
}
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* default Divi = 4 */
  gap: 16px;
  grid-auto-flow: dense;
}
.masonry--home {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}
.masonry__item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}
.masonry__item--tall {
  grid-row: span 2;
  aspect-ratio: 1/2;
}
.masonry--home .masonry__item--tall {
  grid-row: 1 / span 2;
  grid-column: 1;
  aspect-ratio: auto;
}
.masonry__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.masonry__item::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-overlay-cards);   /* rgba(45,59,68,0.76) */
  color: var(--c-white);                 /* overlay_icon_color = #FFFFFF */
  font-size: 50px;
  font-weight: 200;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}
.masonry__item:hover::before { opacity: 1; }
.masonry__item:hover img { transform: scale(1.1); }

.projects-home__cta {
  text-align: center;
  margin-top: 50px;
}

@media (max-width: 1024px) {
  .masonry { grid-template-columns: repeat(3, 1fr); }
  .masonry--home {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .masonry--home .masonry__item--tall {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 1;
  }
}
@media (max-width: 768px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   TESTIMONIALS (sekce 5, modul [066-072])
   .dat:
     testimonial_per_slide = 3 (tablet 2, phone 1)
     space_between_slides = 25px
     equalize_testimonials_height = on
     bg #FFFFFF, levý border #2d3b44 3px
     author_font weight 700, 22px
     border_radii_author_image = 50% (kruh)
     arrow bg #2d3b44, color #FFFFFF, position bottom_right
   ============================================================ */
.testimonials {
  padding-block: 90px;
}
.testimonials__slider {
  position: relative;
  overflow: hidden;
}
.testimonials__track {
  display: flex;
  gap: 25px;
  transition: transform var(--transition-slow);
}
.testimonial {
  flex: 0 0 calc((100% - 50px) / 3);
  background: var(--c-white);
  border-left: 3px solid var(--c-dark);  /* border_color_left */
  padding: 30px;
  box-shadow: 0 4px 20px rgba(45,59,68,0.08);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.testimonial__text {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
  color: var(--c-text);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial__avatar {
  width: 50px; height: 50px;
  border-radius: 50%;            /* border_radii_author_image = 50% */
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.testimonial__name {
  font-family: var(--f-heading);
  font-size: 22px;               /* author_font_size = 22px */
  font-weight: 700;              /* author_font = |700| */
  color: var(--c-primary);
  line-height: 1.2;
}
.testimonial__role {
  font-size: 12px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.testimonials__nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;     /* arrows_position = bottom_right */
  margin-top: 30px;
}
.testimonials__nav button {
  width: 44px; height: 44px;
  background: var(--c-dark);     /* arrow_background_color */
  color: var(--c-white);         /* arrow_color */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition);
}
.testimonials__nav button:hover {
  background: var(--c-primary);
}
.testimonials__nav svg { width: 16px; height: 16px; }

@media (max-width: 1024px) {
  .testimonial { flex: 0 0 calc((100% - 25px) / 2); }
}
@media (max-width: 768px) {
  .testimonial { flex: 0 0 100%; }
  .testimonial__name { font-size: 18px; }
}

/* ============================================================
   GET IN TOUCH + COUNTERS (sekce 6, modul [073-088])
   .dat:
     ROW1: 1_2,1_2 text vlevo + button vpravo
       h2 #ecd8bd 40px, margin ||30px
       button "Request a Quote" bg #ecd8bd → #FFFFFF
     ROW2: 1_3,1_3,1_3 PLOVOUCÍ COUNTER BOX
       bg #f8f8f8, padding 60px|5%|60px|5%
       positioning absolute, position_origin bottom_center, vertical_offset -180px
       number_font weight 800, 60px, color #7e5f41
       title 24px #7e5f41
       ČÍSLA: 20+, 300+, 50
       ZA každým counter ABSOLUTNĚ pozicovaná ikona rgba(236,216,189,0.17), 165px, z-index -1
   ============================================================ */
.cta-section {
  background: var(--c-dark);
  padding-block: 80px;
  position: relative;
}
.cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.cta-row h2 {
  font-size: 40px;
  color: var(--c-cream);
  margin: 0;
}

/* Counters - plovoucí box, absolutně pozicovaný směrem dolů */
.counters-wrap {
  position: relative;
  background: var(--c-white);
  margin-top: -100px;
  padding-bottom: 80px;
}
.counters {
  background: var(--c-bg-section);  /* #f8f8f8 */
  padding: 60px 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.counter {
  text-align: center;
  padding: 20px;
  position: relative;
  border-right: 1px solid rgba(45,59,68,0.1);
}
.counter:last-child { border-right: none; }

/* Number - weight 800, 60px, #7e5f41 */
.counter__num {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 60px;               /* number_font_size = 60px */
  line-height: 1;
  color: var(--c-primary);        /* number_text_color = #7e5f41 */
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.counter__label {
  font-family: var(--f-body);
  font-size: 24px;               /* title_font_size = 24px */
  color: var(--c-primary);        /* title_text_color = #7e5f41 */
  position: relative;
  z-index: 2;
}

/* Absolutně pozicovaná ikona za textem */
.counter__bg-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 165px; height: 165px;   /* icon_width = 165px */
  color: var(--c-counter-icon-bg);  /* rgba(236,216,189,0.17) */
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.counter__bg-icon svg {
  width: 100%; height: 100%;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .cta-row { grid-template-columns: 1fr; text-align: center; }
  .counters { padding: 40px 24px; }
  .counter__num { font-size: 50px; }
}
@media (max-width: 580px) {
  .counters { grid-template-columns: 1fr; gap: 0; }
  .counter {
    border-right: none;
    border-bottom: 1px solid rgba(45,59,68,0.1);
  }
  .counter:last-child { border-bottom: none; }
  .counter__bg-icon { width: 120px; height: 120px; }
}

/* ============================================================
   NEWS AND BLOG (sekce 7, modul [089-095])
   .dat:
     SECTION gradient 270deg rgba(43,135,218,0) → #2d3b44 (zespodu nahoru)
     ROW 1: title 40px center
     ROW 2: blog_slider 2 per slide, gap 20px
       arrow_bg #7e5f41 (HNĚDÁ), arrows_position = inside
       title 24px, meta 13px #000
       read_more_padding 8px|40px, radius 20px
   ============================================================ */
.news-blog {
  background: linear-gradient(
    180deg,
    rgba(43,135,218,0) 0%,
    var(--c-dark) 100%
  );
  padding-block: 90px;
}
.news-blog h2 {
  color: var(--c-white);
  text-align: center;
  font-size: 40px;
  margin-bottom: 60px;
}
.blog-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* post_per_slide = 2 */
  gap: 20px;                              /* space_between_slides */
}
.blog-card {
  background: var(--c-white);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(45,59,68,0.08);
}
.blog-card__img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body {
  padding: 30px;                 /* post_content_wrapper_custom_padding 30px||30px|| */
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card__title {
  font-family: var(--f-heading);
  font-size: 24px;               /* title_font_size = 24px */
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-primary);
}
.blog-card__title a:hover { color: var(--c-dark); }
.blog-card__meta {
  font-size: 13px;               /* meta_font_size = 13px */
  color: #000000;                /* meta_text_color = #000000 */
}
.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
}
/* Read more - vlastní padding 8px|40px */
.blog-card__cta {
  display: inline-block;
  align-self: flex-start;
  font-size: 18px;               /* read_more_text_size */
  background: var(--c-primary);
  color: var(--c-white);
  padding: 8px 40px;             /* read_more_custom_padding */
  border-radius: 20px;
  margin-top: 8px;
  transition: background-color var(--transition);
}
.blog-card__cta:hover {
  background: var(--c-dark);     /* read_more_bg_color__hover */
}

@media (max-width: 768px) {
  .blog-slider { grid-template-columns: 1fr; }
  .news-blog h2 { font-size: 28px; }
}
