/*
 * LowBedO: culorile mărcii peste paleta Blocksy, pentru tema deschisă și cea întunecată.
 * Blocksy: 1 butoane și legături, 2 hover, 3 text, 4 titluri, 5 margini, 6-7 fundaluri, 8 fundalul capului de pagină.
 * Marca: bleumarin #1B2A3A și portocaliu de siguranță #F5A623 (ca pe logo).
 */
:root,
:root[data-lb-tema="deschisa"] {
    --theme-palette-color-1: #1B2A3A;
    --theme-palette-color-2: #2E4A66;
    --theme-palette-color-3: #3A4F66;
    --theme-palette-color-4: #1B2A3A;
    --theme-palette-color-5: #DCE3EA;
    --theme-palette-color-6: #EEF2F6;
    --theme-palette-color-7: #F7F9FB;
    --theme-palette-color-8: #FFFFFF;
    --lb-accent: #F5A623;
    --lb-accent-text: #8A5A00;
    --lb-buton-text: #FFFFFF;
    --lb-camp-fundal: #FFFFFF;
    --lb-camp-margine: #C3CDD7;
    --lb-text-secundar: #55677A;
    --lb-sugestie-fundal: #FFF6E6;
    --lb-eroare: #A32D2D;
    --lb-succes: #3B6D11;
    color-scheme: light;
}

:root[data-lb-tema="intunecata"] {
    --theme-palette-color-1: #F5A623;
    --theme-palette-color-2: #FFC15C;
    --theme-palette-color-3: #C8D3DE;
    --theme-palette-color-4: #FFFFFF;
    --theme-palette-color-5: #2B3D51;
    --theme-palette-color-6: #16232F;
    --theme-palette-color-7: #0F1923;
    --theme-palette-color-8: #142130;
    --lb-accent: #F5A623;
    --lb-accent-text: #F5A623;
    --lb-buton-text: #0F1923;
    --lb-camp-fundal: #16232F;
    --lb-camp-margine: #3A4F66;
    --lb-text-secundar: #9AABBD;
    --lb-sugestie-fundal: #2A2412;
    --lb-eroare: #FF8A8A;
    --lb-succes: #9BD46A;
    color-scheme: dark;
}

/* Butoanele: pe portocaliu, textul alb nu se citește; în tema întunecată textul devine bleumarin. */
:root {
    --theme-button-text-initial-color: var(--lb-buton-text);
    --theme-button-text-hover-color: var(--lb-buton-text);
}
body { background-color: var(--theme-palette-color-7); }

/* Câmpurile din formulare urmează tema. */
:root[data-lb-tema="intunecata"] input,
:root[data-lb-tema="intunecata"] select,
:root[data-lb-tema="intunecata"] textarea {
    color: var(--theme-palette-color-4);
    background-color: var(--lb-camp-fundal);
    border-color: var(--lb-camp-margine);
}

/* Butonul de comutare din capul paginii. */
.lb-comutator-tema {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-left: 12px; padding: 0;
    border: 1px solid var(--theme-palette-color-5); border-radius: 50%;
    background: transparent; color: var(--theme-palette-color-4); cursor: pointer;
}
.lb-comutator-tema:hover { border-color: var(--lb-accent); color: var(--lb-accent); }
.lb-comutator-tema:focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 2px; }
.lb-comutator-plutitor { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--theme-palette-color-8); }

/* Accentul mărcii: linia de sub titlurile de secțiune. */
.entry-content h2.wp-block-heading { text-align: left; }
.entry-content h2.wp-block-heading::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .45rem; border-radius: 2px; background: var(--lb-accent); }

/* Ilustrațiile cu fundal transparent arată bine pe ambele teme; imaginile cu fundal plin primesc colțuri rotunjite. */
.lb-ilustratie img { width: 100%; height: auto !important; contain-intrinsic-size: none; }

/* Subsolul. */
[data-column="copyright"] a { text-decoration: underline; text-underline-offset: 2px; }

/* Capul paginii: pictograma lângă nume, nu deasupra lui. */
#header .site-branding[data-logo] { display: flex; flex-direction: row; align-items: center; gap: .6rem; }
#header .site-logo-container img { height: 40px; width: auto; max-height: none; }
#header .site-title { margin: 0; font-weight: 800; letter-spacing: -.01em; }
#header .site-title a { color: var(--theme-palette-color-4); }
@media (max-width: 689px) {
    #header .site-logo-container img { height: 26px; }
    #header .site-title { font-size: 1.1rem; }
    .page .entry-content > h1.wp-block-heading { font-size: 1.9rem; line-height: 1.2; }
    .page .entry-content > p.has-large-font-size { font-size: 1.1rem; }
    .page .entry-content h2.wp-block-heading { font-size: 1.45rem; line-height: 1.25; margin-top: 2rem; }
}

/* Paginile: o coloană de citit, centrată, la lățimea formularului. */
.page .entry-content.is-layout-constrained > :where(:not(.alignfull)) { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.lb-ilustratie { margin-top: 1rem; margin-bottom: 1.5rem; }
.page .entry-content h2.wp-block-heading { margin-top: 2.5rem; }

/* Argumentele de încredere: câte unul pe rând, cu bifă, ușor de scanat. */
.entry-content ul.lb-incredere { list-style: none; padding: 0; display: grid; gap: .6rem; margin-top: 1.5rem; }
.entry-content ul.lb-incredere li { position: relative; padding: .7rem .9rem .7rem 2.6rem; border: 1px solid var(--theme-palette-color-5); border-radius: 10px; background: var(--theme-palette-color-8); line-height: 1.45; }
.entry-content ul.lb-incredere li::before { content: ""; position: absolute; left: .9rem; top: .95rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--lb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231B2A3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }

/* Pașii: carduri numerotate, una lângă alta pe ecran mare, una sub alta pe telefon. */
.entry-content ol.lb-pasi { list-style: none; counter-reset: pas; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.entry-content ol.lb-pasi li { counter-increment: pas; position: relative; padding: 2.9rem 1rem 1rem; border: 1px solid var(--theme-palette-color-5); border-radius: 12px; background: var(--theme-palette-color-8); line-height: 1.45; }
.entry-content ol.lb-pasi li::before { content: counter(pas); position: absolute; left: 1rem; top: .9rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--lb-accent); color: #1B2A3A; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

/* Exemplul de preț: cifra se vede de departe. */
.entry-content p.lb-exemplu { padding: .9rem 1.1rem; border-left: 5px solid var(--lb-accent); background: var(--lb-sugestie-fundal); border-radius: 0 10px 10px 0; font-size: 1.1rem; }

/* Banda pentru transportatori. */
.entry-content .lb-banda-transportatori { margin-top: 2.5rem; margin-bottom: 1rem; padding: 1.5rem 1.4rem; border-radius: 14px; background: #1B2A3A; color: #E6EDF4; }
.entry-content .lb-banda-transportatori h2.wp-block-heading { margin-top: 0; color: #FFFFFF; }
.entry-content .lb-banda-transportatori .wp-block-button__link { background: var(--lb-accent); color: #1B2A3A; font-weight: 700; }
:root[data-lb-tema="intunecata"] .entry-content .lb-banda-transportatori { background: #1E3044; }

/* Întrebările frecvente: carduri care se deschid. */
.entry-content details.wp-block-details { border: 1px solid var(--theme-palette-color-5); border-radius: 10px; padding: .75rem 1rem; margin-bottom: .6rem; background: var(--theme-palette-color-8); }
.entry-content details.wp-block-details summary { font-weight: 700; cursor: pointer; color: var(--theme-palette-color-4); }
.entry-content details.wp-block-details[open] summary { margin-bottom: .4rem; }

/* Mai mult aer între secțiuni, mai puțin în interiorul lor. */
.page .entry-content > p { margin-top: .6rem; margin-bottom: .6rem; line-height: 1.6; }

/* Submeniul din capul paginii: card cu fundalul temei, text lizibil și umbră. */
#header .sub-menu {
    --dropdown-background-color: var(--theme-palette-color-8);
    background: var(--theme-palette-color-8) !important; border: 1px solid var(--theme-palette-color-5); border-radius: 12px;
    padding: .4rem 0 !important; min-width: 240px; box-shadow: 0 8px 24px rgba(27, 42, 58, .16);
}
#header .sub-menu .ct-menu-link, #header .sub-menu a {
    color: var(--theme-palette-color-4) !important; font-size: .9rem; font-weight: 600; text-transform: none; letter-spacing: 0; padding: .55rem 1.1rem;
}
#header .sub-menu .ct-menu-link:hover, #header .sub-menu a:hover, #header .sub-menu .current-menu-item > a { color: var(--lb-accent-text) !important; background: var(--lb-sugestie-fundal); }
:root[data-lb-tema="intunecata"] #header .sub-menu { box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }

/* Tabelele (greutăți): se derulează pe orizontală pe telefon, rânduri alternante, antet lipit. */
.entry-content figure.wp-block-table.lb-tabel { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .8rem 0 1.4rem; border: 1px solid var(--theme-palette-color-5); border-radius: 12px; background: var(--theme-palette-color-8); }
.entry-content .lb-tabel table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.entry-content .lb-tabel th { text-align: left; font-weight: 700; padding: .65rem .8rem; background: var(--theme-palette-color-6); color: var(--theme-palette-color-4); border-bottom: 2px solid var(--lb-accent); white-space: nowrap; }
.entry-content .lb-tabel td { padding: .55rem .8rem; border-bottom: 1px solid var(--theme-palette-color-5); vertical-align: top; }
.entry-content .lb-tabel tr:last-child td { border-bottom: 0; }
.entry-content .lb-tabel tbody tr:nth-child(even) td { background: var(--theme-palette-color-7); }
.entry-content .lb-tabel td:nth-child(2) { white-space: nowrap; }

/* „Cont transportator”: buton în antet (0.2.6), lângă tema; în meniul de pe telefon rămâne evidențiat. */
.lb-buton-cont {
    display: inline-flex; align-items: center; gap: .45rem; margin-left: .75rem; padding: .5rem 1.05rem; border-radius: 999px;
    background: var(--lb-accent); color: #1B2A3A !important; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
    text-transform: uppercase; text-decoration: none; white-space: nowrap; line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .15s ease, box-shadow .15s ease;
}
.lb-buton-cont:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.lb-buton-cont:focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 3px; }
.lb-buton-cont::before,
#offcanvas .menu-item.lb-meniu-cont > a.ct-menu-link::before {
    content: ""; width: 18px; height: 18px; flex: 0 0 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A3A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Pe telefon și pe ecranele medii (sub 1280 px): doar pictograma, un cerc, ca meniul să încapă. */
@media (max-width: 1279px) {
    #header .lb-buton-cont { width: 40px; height: 40px; padding: 0; justify-content: center; margin-left: .5rem; }
    #header .lb-buton-cont span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    #header .lb-buton-cont::before { width: 20px; height: 20px; flex-basis: 20px; }
}
#header [data-device="mobile"] .lb-buton-cont { width: 36px; height: 36px; padding: 0; justify-content: center; margin: 0 .35rem 0 0; }
#header [data-device="mobile"] .lb-buton-cont span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#header [data-device="mobile"] .lb-buton-cont::before { width: 20px; height: 20px; flex-basis: 20px; }
/* În meniul de pe calculator nu-l mai arătăm (e butonul din antet); în meniul de pe telefon, evidențiat. */
#header .menu-item.lb-meniu-cont { display: none !important; }
#offcanvas .menu-item.lb-meniu-cont > a.ct-menu-link {
    display: inline-flex; align-items: center; gap: .45rem; height: auto; margin-top: .75rem; padding: .6rem 1.1rem !important;
    border-radius: 999px; background: var(--lb-accent); color: #1B2A3A !important; font-weight: 700;
}
