:root{
  --bg: #fafafa;
  --panel: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #e7e7e7;
  --accent: #39424e;
  --accent-600: #2f3741;
  --danger: #e04646;
  --danger-600: #c33c3c;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--bg);
  color: var(--text);
  line-height:1.5;
}

/* ---------------- HEADER ÉS MENÜ ---------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: .75rem 1rem;
}
.brand{ display:flex; align-items:center; gap:.5rem; }
.logo{
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 1px 1px 0 rgba(0,0,0,.1);
}
.title{
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.top-nav a{
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: .35rem;
  transition: background 0.1s ease;
}
.top-nav a:hover{
  background: #f0f0f0;
}
.top-nav a[aria-current="page"]{
  color: var(--accent-600);
  background: #e6e9ee;
}

/* ---------------- FŐ TARTALOM ÉS ROUTING ---------------- */

main{
  min-height: calc(100vh - 4rem); 
}
#app:focus{
  outline: none;
}
.route-section {
    padding: 2rem 1rem; 
    max-width: 1000px; 
    margin: 0 auto; 
    min-height: 70vh; 
}
.route-section h1{
  font-size: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-600);
}


/* ---------------- SZOLGÁLTATÁSOK (TECH-GRID) STÍLUSA ---------------- */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-grid .card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.tech-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tech-grid h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-600);
}

.tech-grid .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6e9ee;
    color: var(--accent);
}

.tech-grid .icon svg {
    width: 20px;
    height: 20px;
}


/* ---------------- KAPCSOLAT FÜL STÍLUS ---------------- */

.contact-intro{
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.contact-form{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  max-width: 720px;
}
.form-row{
  display:flex; flex-direction:column; gap:.35rem; margin:.6rem 0;
}
.form-row label{
    font-weight: 500;
    color: var(--accent-600);
}
.form-row input{
  padding:.6rem .7rem;
  border:1px solid var(--border);\
  border-radius:.5rem;
  outline: none;
}
.form-row input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ffe2d5;
}
.form-actions{
  display:flex; align-items:center; gap:.75rem; margin-top:.75rem;
}
#formStatus{ color: var(--muted); min-height: 1.25rem; }

.static-field{
  padding:.6rem .7rem;
  border:1px solid var(--border);
  border-radius:.5rem;
  background:#f7f7f7;
  color: var(--text);
  user-select: text;
  font-weight: 500;
}


/* ---------------- LÁBLÉC ---------------- */

.site-footer{
  border-top:1px solid var(--border);
  padding: 1rem;
  text-align:center;
  color: var(--muted);
  background: var(--panel);
}


/* ---------------- GALÉRIA STÍLUSOK (REFERENCIA) ---------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.gitem {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.1s ease;
}

.gitem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Négyzetes képek */
  overflow: hidden;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gitem:hover .thumb img {
  transform: scale(1.05); /* EZ OKOZZA AZ EGERES NÖVELÉST! */
}

.caption {
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-600);
  margin: 0;
  text-align: center;
}


/* ---------------- LIGHTBOX STÍLUSOK (A KÉPERNYŐ KÖZÉPÉRE HELYEZI A NAGY KÉPET) ---------------- */

.lightbox[hidden]{ display:none !important; }
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9); /* Sötét háttér */
  display: grid;
  place-items: center; /* Tartalom középre igazítása */
  z-index: 1000;
  padding: 1rem;
  overflow: auto; 
}

.lightbox-content{
  position: relative;
  /* 💡 EZ A KONTÉNER (FEHÉR DOBOZ) MAX MÉRETE */
  max-width: 620px !important; /* Kicsit nagyobb, mint a kép (600px), a padding miatt */
  max-height: 520px !important; 
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--panel);
  border-radius: 0.75rem;
  padding: 1rem;
}
.lightbox-img{
  /* 💡 KÉP MÉRETE: KONTÉNEREN BELÜL ARÁNYOSAN! */
  max-width: 100% !important; 
  max-height: 90% !important; /* Helyet hagy a leírásnak */
  width: auto; /* Arányosan kicsinyíti a szélességet */
  height: auto; /* Arányosan kicsinyíti a magasságot */
  display: block;
  object-fit: contain; /* LÉNYEGES: arányos kicsinyítés levágás nélkül */
  border-radius: 0.5rem;
}

.lightbox-caption{
  margin: 0;
  padding: 0.25rem 0.5rem;
  text-align: center;
  font-weight: 500;
  color: var(--text);
  max-width: 100%;
}

.lightbox-close{
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background .2s;
  z-index: 1010;
}
.lightbox-close:hover{
  background: var(--accent-600);
}