/* ================================================================
   DR. CSOBA ANDRÁS - PRÉMIUM ÜGYVÉDI PORTFÓLIÓ
  
   ================================================================ */

/* --- 1. GLOBÁLIS BEÁLLÍTÁSOK ÉS VÁLTOZÓK --- */
:root {
  /* Színpaletta - Vidámabb, élettel teli kék árnyalatok */
  --soft-blue: #70b8ff; /* Világosabb, élénkebb kék a gombokhoz */
  --legal-navy: #7b91c0; /* Mély sötétkék a tekintélyhez */
  --ice-blue: #f0f7ff; /* Friss, tiszta háttérszín */
  --white: #ffffff;
  --text-dark: #2c3e50; /* Erősebb kontrasztú sötétszürke */
  --accent-cyan: #20b2aa; /* Türkizkék a vidámabb hangsúlyokhoz */
  --accent-blue: #5d8aa8; /* Mélyebb kék a linkeknek */

  --font-heading: "Playfair Display", serif;
  --font-main: "Montserrat", sans-serif;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-standard: 0 10px 30px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);

  background-color: var(--white);
  overflow-x: hidden;
  text-align: center !important;
  hyphens: auto !important;
}

body ul {
  list-style-type: none;
}
/* --- 2. HEADER ÉS TOP BAR (JAVÍTVA) --- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

#top-bar {
  background-color: var(--legal-navy);
  color: var(--white);
  gap: 50px;
  padding: 5px 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* E-mail és telefon linkek javítása */
#top-bar a {
  color: var(--white) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

#top-bar i {
  color: var(--soft-blue);
  font-size: 1.1rem;
}

#top-bar a:hover {
  color: var(--soft-blue) !important;
}

nav {
  background-color: var(--white);
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 45px;
}

nav ul li a {
  color: var(--legal-navy);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;

  position: relative;
  padding: 5px 0;
}

.hero-logo {
  width: 100%;
  text-align: center;
  /* A fix érték helyett a képernyőmagasság 12%-ával tolja le */
  margin-top: 19vh;
  margin-bottom: 30px;
}

.csa-logo {
  width: 100px;
  height: auto;
  position: relative;
  border-radius: 20px;
  border: 2px solid white;
  padding: 5px;
  z-index: 20;
  display: inline-block;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
}

/* Navigáció hover effekt */
nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--soft-blue);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--soft-blue);
}

nav ul li a:hover::after {
  width: 100%;
}

/* --- 3. HERO SZEKCIÓ (GOMB JAVÍTVA) --- */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(20, 31, 50, 0.7), rgba(20, 31, 50, 0.7)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?q=80&w=2070");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.contact-info {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

ul .contact-info li {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  margin-bottom: 15px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 8px;
  font-weight: 300;
  margin-bottom: 45px;
  color: var(--ice-blue);
}

/* --- GOMB JAVÍTÁS --- */
.hero-btn {
  display: inline-block !important; /* Hogy valódi gomb legyen */
  background-color: #add8e6 !important; /* Világos kék alap (ahogy kérted) */
  color: #141f32 !important; /* Sötétkék szöveg a kontraszt miatt */
  padding: 18px 40px !important;
  text-decoration: none !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
  z-index: 10;
  position: relative;
}

/* Ez az a "valami", ami történik ha ráviszed az egeret: */
.hero-btn:hover {
  background-color: #ffffff !important; /* Fehér lesz */
  color: #141f32 !important; /* Marad sötét a szöveg */
  transform: scale(1.05) translateY(-3px) !important; /* Kicsit megnő és felemelkedik */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

/* --- 4. BEMUTATKOZÁS (PROFIL) --- */
.profile-section {
  padding: 150px 10%;
  background-color: var(--ice-blue);
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.profilkep {
  /* Alapméretek (állítsd be a kívánt méretet) */
  width: 250px; /* Szélesség (pl. 200px-300px közötti érték jó) */
  height: 250px; /* Magasság - ugyanakkora legyen, mint a szélesség! */

  /* Modern, kör alakú vágás */
  border-radius: 50%; /* Ez csinál kört belőle */

  /* Képillesztés - a legfontosabb rész! */
  object-fit: cover; /* Megakadályozza, hogy a kép eltorzuljon vagy összenyomódjon */
  object-position: center top; /* A fejre fókuszál (nehogy levágja a fejet a kép tetejéből) */

  /* Esztétikai elemek */
  border: 5px solid #ffffff; /* Fehér keret a kép körül (opcionális, de elegáns) */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Finom sötét árnyék, ami kiemeli a képet */

  /* Elhelyezés és Margók */
  display: block; /* Hogy a margók működjenek */
  margin: 0 auto 30px; /* Vízszintesen középre teszi, és alulról hagy 30px helyet */

  /* Finom átmenet hover esetén (ha akarod) */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover Effekt (ha ráviszed az egeret, picit megnő) */
.profilkep:hover {
  transform: scale(1.05); /* 5%-kal megnő */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Erősebb árnyék */
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  color: var(--legal-navy);
  margin-bottom: 25px;
}

.lawyer-title {
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
  display: block;
}

.profile-image-wrapper img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  border-radius: 15px;
  position: relative;
  z-index: 2;
  box-shadow: 25px 25px 70px rgba(0, 0, 0, 0.1);
  border: 10px solid var(--white);
}

.image-accent {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent-cyan);
  border-radius: 15px;
  z-index: 1;
}

.profile-text p {
  font-size: 1.25rem;
  text-align: justify !important;
  hyphens: auto; /* Bekapcsolja az automatikus elválasztást, hogy mobilon se legyenek hatalmas rések a szavak között */
}

/* --- 5. SZAKTERÜLETEK (HOVER JAVÍTVA) --- */
.services-section {
  padding: 140px 10%;
  background-color: var(--white);
  text-align: center;
}

.section-header h2 {
  margin-top: 50px;
}
.szakteruletek-ikonok {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  margin-top: 60px;
}

.ikon-doboz {
  padding: 60px 30px;
  background: var(--white);
  border: 1px solid var(--ice-blue);
  border-radius: 20px;
  transition: var(--transition);
  cursor: pointer;
}

.ikon-kor {
  width: 100px;
  height: 100px;
  background-color: var(--ice-blue);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
  transition: var(--transition);
}

.ikon-kor i {
  font-size: 45px;
  color: var(--legal-navy);
}

.ikon-doboz:hover {
  background-color: var(--legal-navy);
  transform: translateY(-20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.ikon-doboz:hover h3 {
  color: var(--white);
}

.ikon-doboz:hover .ikon-kor {
  background-color: var(--accent-cyan);
  color: var(--white);
  transform: rotateY(360deg);
}

.ikon-doboz:hover .ikon-kor i {
  color: var(--white);
}

/* --- 6. MIÉRT ÉN? (STABIL RÁCSOS SZERKEZET) --- */
.info-section {
  padding: 140px 10%;
  background-color: var(--legal-navy);
  color: var(--white);
}

.erossegekSzin {
  color: white;
}

.info-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.info-image {
  position: relative;
  height: 600px;
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  z-index: 2;
  position: relative;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.info-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 35px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.info-item:hover {
  background: rgba(112, 184, 255, 0.15);
  transform: scale(1.05);
  border-color: var(--soft-blue);
}

.info-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 10px;
}

/* --- 7. FOOTER (JAVÍTOTT ÉS TELJES) --- */
.main-footer {
  background-color: #080d16;
  color: var(--white);
  padding: 120px 0 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;

  grid-template-columns: 2fr 1fr 1.5fr;
  justify-content: stretch;
  gap: 100px;
  padding: 0 5% 100px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--soft-blue);
  margin-bottom: 30px;
}
.footer-col {
  margin-top: 20px;
}
.footer-col h4 {
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 40px;
  font-size: 1rem;
  color: var(--white);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info li a {
  text-decoration: none;
  color: var(--white);
}
/* --- 1. TABLET ÉS KISEBB KIJELZŐK (1024px alatt) --- */
@media (max-width: 1024px) {
  .profile-container,
  .info-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  nav {
    padding: 10px 0;
  }
  .szakteruletek-ikonok {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 2. MOBIL NÉZET (768px alatt) --- */
@media (max-width: 768px) {
  /* Top-bar elrendezés: Telefon és Email balra, Nyelvváltó jobbra */
  .top-bar-container {
    display: flex !important;
    flex-direction: row !important; /* Vízszintes marad, mint a képen */
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
  }

  .contact-info {
    flex-direction: column; /* Mobilon az ikonok egymás alá kerülnek, hogy ne lógjanak ki */
    align-items: flex-start;
    gap: 5px;
  }

  .hero-logo {
    margin-top: 5vh; /* Mobilon feleakkora hely is elég a menü alatt */
    margin-bottom: 15px; /* Kevesebb hely kell a név előtt */
  }

  .csa-logo {
    width: 85px; /* Mobilon picit kisebb logó jobban mutat */
  }

  .contact-info li {
    font-size: 0.75rem;
  }

  /* Nyelvváltó fix helye a jobb oldalon */
  .language-switcher {
    font-size: 0.8rem;
  }

  /* Navigációs menü: Mindig látható és középre zárt */
  nav ul {
    display: flex !important; /* Töröltük a display: none-t! */
    flex-wrap: wrap; /* Több sorba törik, ha nem fér el */
    justify-content: center;
    gap: 5px;
    font-size: 1px;
  }

  nav ul li a {
    font-size: 0.46rem; /* Kisebb betűk a mobilos olvashatósághoz */

    text-transform: uppercase;
  }

  /* Hero szekció szövegméret javítás */
  .hero-content h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
  }

  .hero-content h2 {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  /* Tartalmi elemek mobilon egy oszlopba */
  .szakteruletek-ikonok {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  /* Cookie banner mobilra */
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Footer mobilon */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
}
@media (max-width: 768px) {
  #top-bar,
  nav {
    width: 100%;
    margin: 0;
    padding: 5px 0;
  }

  .top-bar-container {
    width: 100% !important;
    padding: 10px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Ha a telefonszám vagy email túl hosszú, mobilon egymás alá tesszük őket */
  .contact-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }

  /* A menüpontok ne lógjanak ki */
  nav ul {
    width: 100%;
    padding: 15px 10px !important;
    margin: 0;
    justify-content: center !important;
  }
}
html,
body {
  max-width: 100%;
  overflow-x: hidden; /* Ez levágja a kilógó részeket oldalirányban */
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box; /* Biztosítja, hogy a padding ne növelje a szélességet */
}

/* --- Cookie Banner Stílus --- */
.cookie-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--legal-navy); /* A már használt sötétkéked */
  color: white;
  padding: 20px 0;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  display: none; /* Alapértelmezetten rejtve, a JS fogja mutatni */
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  gap: 20px;
}

.cookie-content p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.cookie-btn {
  background-color: var(--soft-blue);
  color: var(--legal-navy);
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

.cookie-btn:hover {
  background-color: white;
}

.cookie-link {
  color: white;
  text-decoration: underline;
  font-size: 0.85rem;
}

/* Mobilos nézet */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .info-text-wrap .profile-content h2 {
    font-size: 1.8rem;
  }
  .top-bar-container {
    height: 100px;
  }

  .info-item {
    padding: 2px;
  }

  .info-text-wrap h3,
  p {
    font-size: 10px;
  }

  .footer-col h3 {
    font-size: 1.4rem;
  }
  .profile-content h2 {
    font-size: 2rem;
  }
  .image-overlay-box {
    font-size: 0.8rem;
  }
  .profile-text p {
    font-size: 1rem;
  }
}
