/* ==========================================================================
   Base styles
   ========================================================================== */

:root {
  --primary-color: #f8b739;
  --secondary-color: #333;
  --text-color: #444;
  --light-bg: #f4f4f4;
  --white: #ffffff;
  --header-bg: #1E2D3B;
  --base-font-size: 1rem; /* Základná veľkosť písma pre sekcie */
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
  background: var(--header-bg);
  color: var(--white);
  padding: 0.8rem 0;
  border-bottom: 8px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

header .logo img {
  height: 60px;
  display: block;
}

header .logo-text {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  margin-left: 15px;
  letter-spacing: 0.5px;
}

header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav li {
  display: inline;
  margin-left: 20px;
}

header nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  background: #333 url('../img/pozadie.png') no-repeat center center/cover;
  height: 56vh;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--white);
  color: var(--secondary-color);
  transform: scale(1.05);
}

/* ==========================================================================
   History Timeline
   ========================================================================== */

.history-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.history-item {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
}

.history-year {
  color: var(--white);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.history-item:nth-child(1) .history-year { background-color: #f8b739; color: var(--secondary-color); }
.history-item:nth-child(2) .history-year { background-color: #2c3e50; }
.history-item:nth-child(3) .history-year { background-color: #e67e22; }
.history-item:nth-child(4) .history-year { background-color: #7f8c8d; }
.history-item:nth-child(5) .history-year { background-color: #27ae60; }

.history-item:hover .history-year {
  transform: rotate(5deg) scale(1.1);
}

.history-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.history-content p {
  font-size: var(--base-font-size);
  color: #666;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 5rem 0;
}

.section p, .section li {
  font-size: var(--base-font-size);
}

#career.section {
  padding: 5rem 0;
  background: #333 url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
  color: var(--white);
  position: relative;
  text-align: center;
}

#career.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

#career .container {
  position: relative;
  z-index: 1;
}

#career h2 {
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#career h2::after {
  background: var(--primary-color);
}

.bg-light {
  background: var(--light-bg);
}

h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  text-transform: uppercase;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto;
}

/* Services & References Grid */
.services-grid, .references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-item, .reference-item {
  background: var(--white);
  padding: 0;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-item:hover, .reference-item:hover {
  transform: translateY(-10px);
}

.service-img, .reference-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content, .reference-content {
  padding: 1.5rem;
}

.service-item h3, .reference-item h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.service-item p, .reference-item p, .service-item li {
  color: #666;
  font-size: 0.95rem; /* Mierne menšie pre grid položky */
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  text-align: center;
}

.contact-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.map-container {
  margin-top: auto;
  padding-top: 1.5rem;
  width: 100%;
  height: 250px;
  border-radius: 5px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--secondary-color);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  header nav {
    margin-top: 1rem;
  }

  header nav li {
    margin: 0 10px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .history-timeline {
    flex-direction: column;
    align-items: center;
  }
}
