/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ==========================================================
   Mobil javítások (2026-10-20)
   ========================================================== */

/* Régi, nem Bricks-szel épített oldalak (Impressum, Legal statement,
   Cookie policy, Data processing stb.): a header átlátszó volt a fehér
   háttéren, a H1 fehér színű és a header alá tapadt. */
body:has(#brx-content.wordpress) #brx-header .header-bot,
body.error404 #brx-header .header-bot {
  background-color: var(--dark-blue, var(--dark));
}
#brx-content.wordpress {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-m) var(--space-2xl);
}
#brx-content.wordpress h1 {
  color: var(--dark);
  margin-bottom: var(--space-m);
}
#brx-content.wordpress span[style*="font-family"] {
  font-family: inherit !important;
}
#brx-content.wordpress span[style*="font-size"] {
  font-size: inherit !important;
}

/* Hosszú URL-ek / e-mail címek ne lógjanak ki a képernyőből */
#brx-content p a,
#brx-content li a {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  /* sorkizárt régi szövegek mobilon balra zárva olvashatóbbak */
  #brx-content.wordpress p,
  #brx-content.wordpress p span {
    text-align: left !important;
  }
}

@media (max-width: 767px) {
  /* Aloldalak fejlécképe: mobilon a fehér cím a kép világos részein
     olvashatatlan volt – alsó sötét átmenet a cím mögé */
  #brx-content > .brxe-section:first-child:not(.hero) {
    position: relative;
    isolation: isolate;
  }
  #brx-content > .brxe-section:first-child:not(.hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(2, 21, 35, 0.8) 0%, rgba(2, 21, 35, 0.35) 45%, rgba(2, 21, 35, 0) 75%);
  }
}

@media (max-width: 767px) {
  /* Főoldali hero: a sötétítés után a barna tagline világosabb árnyalatot kap */
  #brx-content .hero .tagline {
    color: color-mix(in srgb, var(--primary) 55%, #fff) !important;
  }
}

@media (max-width: 767px) {
  /* Ügyvéd aloldalak: mobilon a portré a hosszú életrajz végére került –
     előre hozzuk és a magasságát korlátozzuk */
  body.single-senior-lawyers #brx-content .brxe-container > :has(img.fdp-card),
  body.single-senior-lawyers #brx-content .brxe-container > :has(img.fdp-card) :has(img.fdp-card) {
    display: contents;
  }
  body.single-senior-lawyers #brx-content .brxe-container img.fdp-card {
    order: -1;
  }
  body.single-senior-lawyers #brx-content img.fdp-card {
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
  }
}

/* fdp-news-card-wrap: hosszú címszó ne lógjon ki a hírkártyából */
[id^="brxe-rwbavw"] { min-width: 0; }
[id^="brxe-cscwvg"] { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
[id^="brxe-iubfus"] { flex-shrink: 0; }

/* fdp-blog-cols: blog single két oszlopa ne lógjon ki tablet-szélességen */
#brxe-yfvfko > #brxe-mbwxls, #brxe-yfvfko > #brxe-qpvdoa { min-width: 0; }

/* fdp-postnav-title: a h5 helyett p.title, ugyanazzal a kinézettel */
.brxe-post-navigation p.title { font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; line-height: 1.3; text-transform: uppercase; color: #363636; margin: 0; }

/* fdp-h3-to-h2: a h3-ról h2-re cserélt címek megtartják a korábbi kinézetet */
h2.brxe-pvycqs, h2.brxe-nwyqjo, h2#brxe-pnkkiq { font-weight: 700; line-height: 1.3; }

/* fdp-awards-box: linkek a barna díjak-dobozban (Damjanovic) */
#brxe-zzmiad a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
#brxe-zzmiad a:hover { opacity: .8; }

/* fdp-home-43: főoldali Special knowledge / Industry expertise képek 4:3 arányban */
.home #brxe-abqzwy .brxe-image, .home #brxe-vjqidp .brxe-image { aspect-ratio: 4 / 3 !important; width: 100%; height: auto !important; min-height: 0 !important; max-height: none !important; object-fit: cover; }
/* fdp-awards-box-generic */
.card.primary a, .card.primary a:visited { color:#fff !important; font-weight:600; text-decoration:underline; text-underline-offset:2px }
.card.primary a:hover { opacity:.8 }

/* fdp-vlist: szakterület/iparág/megoldás listák egymás mellett */
[id^="brxe-vl"], #brxe-swxvuj { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; }
[id^="brxe-vl"] > .brxe-block, #brxe-swxvuj > .brxe-block { flex: 1 1 0; min-width: min-content; }
[id^="brxe-vl"] li, #brxe-swxvuj li, [id^="brxe-vl"] h3, #brxe-swxvuj h3 { text-wrap: balance; text-wrap-style: balance; overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 478px) { [id^="brxe-vl"], #brxe-swxvuj { flex-direction: column; } [id^="brxe-vl"] > .brxe-block, #brxe-swxvuj > .brxe-block { flex: 1 1 auto; width: 100%; } }

/* fdp-post-headings: cikk-oldalak címsorai */
.single-post #brxe-tayjqk { font-size: var(--text-xl); text-transform: none; line-height: 1.25; }
.single-post .brxe-post-content h2 { font-size: var(--text-l); text-transform: none; line-height: 1.3; margin-top: var(--space-l); margin-bottom: var(--space-xs); }
.single-post .brxe-post-content h3 { font-size: var(--text-m); text-transform: none; font-weight: 700; line-height: 1.4; margin-top: var(--space-m); margin-bottom: var(--space-xs); }
.single-post .brxe-post-content > :first-child { margin-top: 0; }
/* cim es szoveg kozti tavolsag csokkentese (a kontener row-gap-je space-xl) */
.single-post #brxe-tayjqk { margin-bottom: calc(var(--space-s) - var(--space-xl)); }

/* fdp-quote: kiemelt bevezető mondat idézőjelben, Firm Rankings stílusban */
.aloldal_szoveg blockquote.fdp-quote { margin: 0 0 var(--space-m); padding: 0 0 0 var(--space-m); border-left: 3px solid var(--primary); font-style: italic; }
.aloldal_szoveg blockquote.fdp-quote p { margin: 0; }
html[lang^="hu"] blockquote.fdp-quote { quotes: "„" "”"; }
html:not([lang^="hu"]) blockquote.fdp-quote { quotes: "“" "”"; }
blockquote.fdp-quote p::before { content: open-quote; }
blockquote.fdp-quote p::after { content: close-quote; }
/* fdp-title-noline: aloldal-cím (blockquote) csík nélkül */
.aloldal_szoveg blockquote:not(.fdp-quote) { border-left: 0 !important; padding-left: 0 !important; margin-left: 0 !important; }

/* fdp-empty-tel: ures telefonszam-link elrejtese */
a[href="tel:"] { display: none !important; }

/* FDP 2026-11-16: dark backgrounds - one step larger body text (15px -> 16px) */
.hero__description,
.hero__description p,
.info-card .brxe-text-basic,
.pactice-areas__description,
.partners__position,
.more-areas__text,
.text-light,
#brx-footer .brxe-text,
#brx-footer .brxe-text p,
#brx-footer .brxe-text li,
#brx-footer .brxe-text a,
#brx-footer .brxe-text-basic {
	font-size: 16px !important;
}

/* International Dimensions page + map link */
[id^="brxe-intl"] a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
#brxe-ietx li, #brxe-ihtx li { margin-bottom: var(--space-xs); line-height: 1.6; }
#brxe-ietx a, #brxe-ihtx a { word-break: break-word; }
/* Homepage news list: rows fit their content (no extra gap) */
#brxe-emnqwv { grid-template-rows: none !important; grid-auto-rows: auto !important; align-content: start; }

/* Mobile: Legal 500 box overlaps (-100px) into the news column - make room */
@media (max-width: 991px) {
	#brxe-lxvojz { padding-top: calc(100px + var(--space-m)) !important; }
}
@media (max-width: 991px) {
	#brxe-fxcqoj { flex-direction: column !important; align-items: stretch !important; }
	#brxe-vnpzov, #brxe-qbguyy { width: 100% !important; max-width: 100% !important; }
}
/* Tablet: homepage news cards side by side (image left) instead of huge full-width images */
@media (min-width: 768px) and (max-width: 991px) {
	.news-item { flex-direction: row !important; align-items: flex-start !important; gap: var(--space-m) !important; }
	.news-item .new-item__news-image-wrapper { width: 220px !important; flex-shrink: 0 !important; }
	.news-item .new-item__news-content-wrapper { flex: 1 1 auto !important; width: auto !important; }
}
