/* Importáljuk az Inter betűtípust (modern, professzionális sans-serif) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* --- SZÍNSÉMA ÉS ALAP STÍLUSOK --- */
:root {
  /* Színpaletta: Tiszta, professzionális kék (ipari megbízhatóság) */
  --primary-color: #0077b6; /* Akcentus: Kék */
  --secondary-color: #495057; /* Sötét akcentus: Sötétszürke */
  --background-color: #f8f9fa; /* Fő háttér: Nagyon világos szürke */
  --card-bg: #ffffff; /* Kártya háttér: Fehér */
  --text-color: #212529; /* Sötét szöveg */
  --header-bg: #ffffff; /* Címsáv háttér: Fehér */
  --font-family: 'Inter', sans-serif;
  --max-width: 1200px;
  --spacing: 25px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Fontos a reszponzivitáshoz */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  font-weight: 400;
  /* Hely a fixált címsávnak */
  padding-top: 70px; 
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* --- CÍMSÁV (HEADER) STÍLUS: FIXÁLT ÉS LETISZTULT --- */

header {
  position: fixed; /* Fixálás */
  top: 0;
  left: 0;
  width: 100%;
  height: 60px; 
  background-color: var(--header-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Elegáns árnyék */
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-color);
  animation: none; 
}

header img {
  height: 40px; 
  max-width: none;
}

header nav ul {
  list-style: none;
  display: flex;
}

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

header nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  padding: 5px 0;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-bottom: 3px solid transparent; 
  transition: all 0.3s ease;
}

header nav ul li a:hover,
a:hover {
  background-color: transparent; 
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

/* --- FŐ TARTALOM ÉS CÍMEK --- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main section {
  padding: 0;
  display: flex;
  justify-content: space-between; 
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0;
}

main h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 3rem 0 1.5rem 0;
    color: var(--secondary-color);
    position: relative;
    text-transform: uppercase;
    animation: slideUp 1.5s ease-out; 
}

/* Kiemelő vonal a főcím alatt */
main h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- HERO SZEKCIÓ (focim - Slideshow háttér) --- */

.focim {
  max-width: 100%;
  height: 500px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
  padding: 0 20px;
  overflow: hidden; 
  position: relative; 

  /* Slideshow Animáció alapstílusa */
  animation: slideshow 70s infinite;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

/* Átlátszó Overlay a szöveg olvashatóságáért (Kép felett) */
.focim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Sötét overlay a képek felett */
    z-index: 1;
}

/* A szöveges tartalom legyen az overlay felett (felül) */
.focim h2, .focim p, .focim a {
    position: relative;
    z-index: 2;
}

/* FŐCÍM SZÍN MÓDOSÍTÁS: Fehér a slideshow háttéren */
.focim h2 {
  font-size: 3rem;
  margin-top: 0;
  animation: none; 
  color: white; 
}

.focim p {
  font-size: 1.25rem;
  max-width: 70%;
  margin: 15px auto 30px auto;
  line-height: 1.5;
  text-shadow: none; 
}

/* --- GOMB (fancy-button) --- */

.fancy-button {
  background-color: #00bcd4; /* Élénkebb akcentus szín (Aqua/Cián) */
  color: white; 
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px; /* Kerek gomb */
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fancy-button:hover {
  background-color: #0097a7; 
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* --- HOME SZEKCIÓK ELRENDEZÉSE (Home kártya Hover Animáció) --- */

.homeok #home {
    border: none;
    background-color: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: row; 
    align-items: center;
    max-width: 100%;
    gap: 40px;
    /* Hover stílus alapja: */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* HOVER ANIMÁCIÓ: Enyhe kiemelés */
.homeok #home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.homeok #home img {
    max-width: 250px;
    border-radius: 6px;
    margin: 0;
    opacity: 0.8;
}

.homeok #home p {
    flex: 1;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- SZEKTOROK (sectorok) KÁRTYA ELRENDEZÉS (Hover Animáció) --- */

.sectorok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-bottom: 60px;
}

.sectorok div {
    border: none; 
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); 
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 100%; 
    padding: 20px;
    /* Hover stílus alapja: */
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    border-left: 5px solid var(--primary-color); 
}

/* HOVER ANIMÁCIÓ: Enyhe felemelkedés és árnyék */
.sectorok div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sectorok div h3 {
    margin: 10px 0 15px 0;
    text-align: left;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.sectorok ul {
    list-style: none; 
    padding-left: 0;
}

.sectorok li {
    max-width: none;
    border: none;
    margin: 5px 0;
    border-radius: 0;
    text-align: left;
    padding: 5px 0;
    border-bottom: 1px dashed #e9ecef; 
    font-size: 1rem;
}

.sectorok li:last-child {
    border-bottom: none;
}

/* Különleges területek kiemelése */
.specko {
    border-left: 5px solid #ffc107; 
    background-color: #fff9e6; 
}

/* --- KAPCSOLAT (contact) SZEKCIÓ (Hover Animáció) --- */

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact div {
    border: none;
    background-color: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    width: 100%;
    /* Hover stílus alapja: */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* HOVER ANIMÁCIÓ: Enyhe felemelkedés */
.contact div:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact div h3 {
    text-align: left;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.contact div a, .contact div address {
    text-decoration: none;
    margin: 5px 0;
    text-align: left;
    color: var(--text-color);
    font-style: normal;
    line-height: 1.7;
}

/* --- LÁBLÉC (FOOTER) --- */

footer {
    height: auto; 
    background-color: var(--secondary-color);
    color: #ced4da;
    padding: 40px 20px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- ANIMÁCIÓK --- */

@keyframes slideUp {
    0% {
      opacity: 0;
      transform: translateY(30px); 
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}
 
/* SLIDESHOW KÉPEK ÉS ANIMÁCIÓ */
@keyframes slideshow {
    0%{ background-image: url('img/slideshow/image01.jpg'); }
    7% { background-image: url('img/slideshow/image02.jpg'); }
    14% { background-image: url('img/slideshow/image03.jpg'); }
    21% { background-image: url('img/slideshow/image04.jpg'); }
    28% { background-image: url('img/slideshow/image05.jpg'); }
    35% { background-image: url('img/slideshow/image06.jpg'); }
    42% { background-image: url('img/slideshow/image07.jpg'); }
    49% { background-image: url('img/slideshow/image08.jpg'); }
    56% { background-image: url('img/slideshow/image09.jpg'); }
    63% { background-image: url('img/slideshow/image10.jpg'); }
    70% { background-image: url('img/slideshow/image11.jpg'); }
    77% { background-image: url('img/slideshow/image12.jpg'); }
    84% { background-image: url('img/slideshow/image13.jpg'); }
    91% { background-image: url('img/slideshow/image14.JPG'); }
    98% { background-image: url('img/slideshow/image15.JPG'); }
    100%{ background-image: url('img/slideshow/image01.jpg'); }
} 

/* --- MEDIA QUERIES (Reszponzivitás) --- */

@media (max-width: 1000px) {
    /* Header igazítás kis képernyőn */
    header {
        height: auto;
        flex-direction: column;
        padding: 10px 20px;
    }
    header img {
        margin-bottom: 10px;
    }
    nav ul {
        justify-content: center;
        padding-bottom: 10px;
    }
    nav ul li {
        margin: 0 10px;
    }
    body {
        /* Több hely a több soros header miatt */
        padding-top: 120px; 
    }

    /* Főcím és HERO szekció */
    .focim {
        height: 400px;
        padding: 30px 10px;
    }
    .focim h2 {
        font-size: 1.5rem;
    }
    .focim p {
        font-size: 1rem;
        max-width: 90%;
    }
    
    /* Home szekció elrendezés fordítása */
    .homeok #home {
        flex-direction: column;
        text-align: center;
    }
    .homeok #home img {
        order: -1; 
        margin-bottom: 20px;
        max-width: 80%;
    }
}