/*
Theme Name: Astra Child Vesip
Theme URI: https://vesip.sk/
Description: Minimalistická child téma pre Astra – spracovanie formulára
Author: Vesip s.r.o.
Author URI: https://vesip.sk/
Template: astra
Version: 1.0
Text Domain: astra-child-vesip
*/
* === Reset Astra kontajnerov pre plnú šírku === */
.site-content > .ast-container,
.ast-container > .entry-content,
.entry-content,
.page,
.post,
main {
  max-width: none;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body {
  background-color: #e7edf3;
  color: #222;
  font-family: "Inter", sans-serif;
}

/* === Hero === */
section.hero {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0;
}

section.hero picture,
section.hero img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === SubHero === */
section.subhero {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0;
}

section.subhero picture,
section.subhero img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === H1 – Produkty a Služby === */
.hero-title {
  background-color: #d3dce6;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #c2ccd6;
  border-bottom: 1px solid #c2ccd6;
}

.hero-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-title h1 {
    font-size: 1.6rem;
  }
}

/* === H1 – Podstránky === */
.product-title {
  background-color: #d3dce6;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #c2ccd6;
  border-bottom: 1px solid #c2ccd6;
}

.product-title h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

/* === Produktová mriežka === */
section.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 14rem;
  background-color: #f4f6f8;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.product-item img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
}

.hover-frame:hover {
  outline: 4px solid #222;
  outline-offset: 4px;
}

.product-grid h2 {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: #222;
}

/* === Slogan === */
.slogan-section {
  text-align: center;
  background-color: #ffffff;
  padding: 60px 20px;
}

.slogan-section h3 {
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
  max-width: 60ch;
  margin: 0 auto;
  color: #444;
}

/* === O nás === */
section.about-us {
  background-color: #f8f9fa;
  padding: 60px 20px;
}

.about-us .container {
  max-width: 900px;
  margin: 0 auto;
}

.about-us .about-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 3rem;
  display: block;
}

/* === Vertikálne rytmické oddelenie sekcií === */
section + section {
  border-top: 1px solid #d0d8e0;
}

/* === Responzivita === */
@media (max-width: 768px) {
  .info-row,
  .info-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .info-image,
  .info-text {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 767px) {
  section.product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .product-grid h2 {
    font-size: 1rem;
  }

  .product-item img {
    max-width: 100%;
  }

  .product-title h1 {
    font-size: 1.6rem;
  }

  .slogan-section h3 {
    font-size: 1.2rem;
  }
}

/* === Jazykový prepínač === */
.language-switcher {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.language-switcher .lang-item {
  text-decoration: none;
  color: #444;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher .lang-item:hover {
  background-color: #eee;
  color: #000;
}

.language-switcher .lang-item.active {
  background-color: #333;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

/* === Sekcia s technickým popisom a obrázkom === */
.tech-specs-section {
  max-width: 1800px;
  margin: 0 auto;
  padding: 80px 50px 50px 210px;
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* nastaviteľný pomer ľavej a pravej strany */
  gap: 0px;
  align-items: start;
  background-color: #ffffff;
  border-bottom: 1px solid #d4dce4;
}

/* == Ľavá časť – tabuľka so špecifikáciami == */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  color: #222;
}

.tech-table th,
.tech-table td {
  padding: 14px 16px;
  border: 1px solid #cfd7df;
  text-align: left;
  vertical-align: top;
}

.tech-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  width: 65%; /* nastaviteľná šírka prvého stĺpca */
}

.tech-table tr:nth-child(even) {
  background-color: #f9fbfd;
}

.tech-table tr:hover {
  background-color: #eef3f8;
}

/* == Pravá časť – obrázok stroja == */
.machine-image {
  text-align: center;
}

.machine-image img {
  max-width: 100%;
  height: 725px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.machine-image img:hover {
  transform: scale(1.01);
}

/* == Fullscreen obrázok po kliknutí == */
.machine-image img:fullscreen {
  object-fit: contain;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

/* == Mobilné zobrazenie == */
@media (max-width: 768px) {
  .tech-specs-section {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .machine-image {
    margin-top: 40px;
  }
}


/* === Globálne box-sizing === */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* === INFO-SEKCIE – FINAL B2B GRID === */

/* === INFO-SEKCIE VYLEPŠENIE (GRID 50:50) === */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 80px 100px;
  min-height: 500px;
  background-color: #f5f8fa;
  border-bottom: 1px solid #d4dce4;
}

.info-row.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.info-row.reverse .info-text,
.info-row.reverse .info-image {
  direction: ltr;
}

/* === Textová časť === */
.info-text {
  text-align: left;
  padding: 0 10px;
  max-width: 600px;
  margin: 0 auto;
}

.info-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
}

.info-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

/* === Obrázková časť === */
.info-image {
  padding: 0 10px;
  max-width: 700px;
  margin: 0 auto;
}

.info-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* === Mobilné zobrazenie === */
@media (max-width: 768px) {
  .info-row,
  .info-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: left;
    padding: 40px 20px;
  }

  .info-text,
  .info-image {
    max-width: 100%;
    padding: 0;
  }

  .info-text h2 {
    font-size: 1.5rem;
  }

  .info-text p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .site-content > .ast-container,
  .ast-container > .entry-content,
  .entry-content,
  .page,
  .post,
  main,
  section.hero,
  .tech-specs-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

section.insertion-machine {
  width: 100%;
  background-color: #f7f9fc; /* nastaviteľná farba pozadia */
  color: #222; /* nastaviteľná farba textu */
  padding: 60px 20px;
  box-sizing: border-box;
  font-family: "Inter", sans-serif; /* nastaviteľné písmo */
  text-align: center;
}

.insertion-container {
  max-width: 1000px;
  margin: 0 auto;
}

.insertion-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.insertion-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
