/* Avocat Dumitru Rebegea — stil comun, UTF-8 */

:root {
    color-scheme: light;
    --background: #faf9f6;
    --surface: #ffffff;
    --surface-muted: #f1f2ee;
    --text: #283138;
    --heading: #192a34;
    --muted: #59636a;
    --accent: #263f4c;
    --accent-hover: #182d39;
    --line: #dce0dd;
    --line-strong: #aeb9bd;
    --focus: #355f76;
    --content-width: 76rem;
    --radius: 0.25rem;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-heading: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

main { flex: 1 0 auto; min-width: 0; }

[hidden] { display: none !important; }

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

figure { margin: 0; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

address { font-style: normal; }

button, input, select, textarea { font: inherit; }

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

a:hover { color: var(--accent-hover); }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

::selection {
    background: #dce6e9;
    color: var(--heading);
}

h1, h2, h3 {
    margin: 0 0 1rem;
    color: var(--heading);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -0.025em;
    scroll-margin-top: 2rem;
}

h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); }

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
    color: #ffffff;
}


/* Antet si navigatie */

.site-header {
    background: var(--surface);
    border-top: 3px solid var(--accent);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding-block: 1.75rem;
}

.site-brand {
    flex-shrink: 0;
    color: var(--heading);
    text-decoration: none;
}

.site-brand__role {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-brand__name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.site-brand__location {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.site-nav { min-width: 0; }

.site-nav__list,
.practice-nav__list,
.breadcrumbs__list,
.sidebar-links,
.site-footer__links,
.site-footer__profiles,
.site-footer__legal,
.error-page__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.4rem;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.55rem;
    color: var(--text);
    border-bottom: 2px solid transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.site-header__phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.site-header__practice {
    background: var(--surface-muted);
    border-top: 1px solid var(--line);
}

.practice-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2rem;
}

.practice-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding-block: 0.55rem;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.practice-nav__link:hover,
.practice-nav__link.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}


/* Navigatie ierarhica */

.breadcrumbs {
    padding-top: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.7;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    min-width: 0;
}

.breadcrumbs__separator { color: var(--line-strong); }
.breadcrumbs__link { color: var(--muted); }
.breadcrumbs__current { color: var(--text); }


/* Titluri si introduceri */

.hero {
    padding-block: clamp(3.25rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
}

.hero__content {
    max-width: 54rem;
    min-width: 0;
}

.hero__title {
    max-width: 22ch;
    margin-bottom: 1.5rem;
    font-size: clamp(2.25rem, 1.7rem + 3.2vw, 4.25rem);
    line-height: 1.13;
}

.hero__lead,
.page-hero__lead {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    font-weight: 500;
    line-height: 1.6;
}

.hero__text,
.page-hero__text {
    max-width: 65ch;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 2rem;
}

.hero__layout--with-image,
.page-hero__layout--with-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 21rem);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__media,
.page-hero__media {
    min-width: 0;
}

.hero__portrait,
.page-hero__portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.page-hero {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
}

.page-hero__content {
    max-width: 54rem;
    min-width: 0;
}

.page-hero__title {
    max-width: 27ch;
    margin-bottom: 1.25rem;
}

.page-hero__detail {
    margin-top: 1.25rem;
    font-size: 0.9375rem;
}


/* Butoane */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.button--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
}

.button--secondary {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--accent);
}

.button--secondary:hover {
    background: var(--surface-muted);
    border-color: var(--accent);
    color: var(--accent-hover);
}


/* Sectiuni si carduri */

.section {
    padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.section__intro { max-width: 48rem; }
.section__title { margin-bottom: 1.25rem; }
.section__intro p { color: var(--muted); }

.home-section + .home-section {
    border-top: 1px solid var(--line);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-section .service-grid {
    margin-top: 2rem;
}

.service-card {
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.service-card__title { margin-bottom: 1rem; }

.service-card__title a {
    color: var(--heading);
    text-decoration: none;
}

.service-card__title a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.service-card__text { color: var(--muted); }

.home-about {
    background: var(--surface-muted);
    border-block: 1px solid var(--line);
}

.home-about__inner,
.contact-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.home-about__content {
    max-width: 44rem;
    min-width: 0;
}

.home-about__inner > .button,
.contact-cta__inner > .button {
    flex-shrink: 0;
}

.contact-cta {
    border-top: 1px solid var(--line);
}

.contact-cta__title {
    max-width: 28ch;
    margin: 0;
}


/* Pagini de prezentare si servicii */

.page-layout { min-width: 0; }

.page-layout--with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.prose {
    min-width: 0;
    max-width: 70ch;
}

.prose p,
.prose li {
    line-height: 1.85;
}

.prose h2 { margin-bottom: 1.15rem; }
.prose h3 { margin-top: 1.75rem; }

.content-section + .content-section {
    margin-top: 2.75rem;
}

.content-list {
    margin: 1.25rem 0 0;
    padding-left: 1.4rem;
}

.content-list li { padding-left: 0.2rem; }
.content-list li + li { margin-top: 0.65rem; }

.home-section > .container > .content-list {
    max-width: 70ch;
}

.page-sidebar {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.sidebar-panel {
    padding: 1.5rem;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sidebar-panel__title {
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.sidebar-links li + li {
    border-top: 1px solid var(--line);
}

.sidebar-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.55rem;
    font-size: 0.9375rem;
}

.sidebar-panel .button { width: 100%; }
.sidebar-panel p { font-size: 0.9375rem; }

.sidebar-panel .button + p {
    margin-top: 1rem;
}

.sidebar-panel__phone {
    font-size: 1.0625rem;
    font-weight: 600;
}


/* Contact */

.contact-details__name {
    color: var(--heading);
    font-weight: 600;
}

.contact-details__list {
    margin: 1.5rem 0;
}

.contact-details__item {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.5rem 1.5rem;
    padding-block: 1.15rem;
    border-bottom: 1px solid var(--line);
}

.contact-details__item:first-child {
    border-top: 1px solid var(--line);
}

.contact-details__item dt {
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.contact-details__item dd {
    min-width: 0;
    margin: 0;
}

.contact-details__address span {
    display: block;
}

.contact-details__hours {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* Pagini de eroare */

.error-page__inner {
    max-width: 48rem;
    text-align: center;
}

.error-page__code {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.error-page__title {
    font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem);
}

.error-page__text {
    max-width: 52ch;
    margin-inline: auto;
    color: var(--muted);
}

.error-page__actions {
    margin-top: 2rem;
}

.error-page__navigation {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.error-page__subtitle {
    font-size: 1.375rem;
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
}

.error-page__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}


/* Subsol */

.site-footer {
    margin-top: auto;
    background: var(--surface-muted);
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.8fr 1fr;
    gap: 2.5rem 3.5rem;
    padding-block: 3.5rem;
}

.site-footer__grid > * {
    min-width: 0;
}

.site-footer__brand {
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: 1.625rem;
    line-height: 1.3;
    text-decoration: none;
}

.site-footer__practice {
    margin-top: 0.75rem;
    color: var(--muted);
}

.site-footer__heading {
    margin-bottom: 1.15rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__links li + li,
.site-footer__profiles li + li {
    margin-top: 0.35rem;
}

.site-footer__links a,
.site-footer__profiles a {
    display: inline-block;
    padding-block: 0.2rem;
}

.site-footer__profiles {
    margin-top: 1.25rem;
}

.site-footer__address p {
    margin-bottom: 0.6rem;
}

.site-footer__address + p {
    margin-top: 1rem;
}

.site-footer__contact > p {
    margin-top: 0.75rem;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
}

.site-footer__copyright {
    margin: 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.8125rem;
}


/* Baza vizuala pentru viitorul blog Q&A */

.qa-list {
    display: grid;
    gap: 0;
}

.qa-card {
    min-width: 0;
    padding-block: 2rem;
    border-bottom: 1px solid var(--line);
}

.qa-card:first-child {
    padding-top: 0;
}

.qa-card__title {
    margin-bottom: 0.75rem;
}

.qa-card__title a {
    color: var(--heading);
}

.qa-card__meta,
.article-meta {
    color: var(--muted);
    font-size: 0.875rem;
}

.qa-card__excerpt {
    max-width: 65ch;
    color: var(--muted);
}

.article-content {
    max-width: 70ch;
    min-width: 0;
}


/* Tableta si ferestre intermediare */

@media (max-width: 64rem) {
    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
    }

    .hero__layout--with-image,
    .page-hero__layout--with-image {
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 17rem);
        gap: 2rem;
    }

    .page-layout--with-sidebar {
        grid-template-columns: minmax(0, 1fr) 16rem;
        gap: 2rem;
    }

    .site-footer__grid {
        gap: 2rem;
    }
}


/* Telefon si tableta in orientare portret */

@media (max-width: 48rem) {
    .hero__layout--with-image,
    .page-hero__layout--with-image,
    .page-layout--with-sidebar,
    .service-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__media,
    .page-hero__media {
        width: min(100%, 22rem);
    }

    .page-sidebar {
        margin-top: 0.5rem;
    }

    .home-about__inner,
    .contact-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 36rem) {
    body {
        font-size: 1rem;
    }

    .site-header__inner {
        align-items: flex-start;
        gap: 1rem;
        padding-block: 1.25rem;
    }

    .site-brand {
        flex-basis: 100%;
    }

    .site-nav__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1.25rem;
    }

    .site-nav__link {
        display: flex;
        font-size: 0.9375rem;
    }

    .practice-nav__list {
        gap: 0 1.5rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .button {
        width: 100%;
    }

    .contact-cta__inner > .button {
        width: 100%;
    }

    .contact-details__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        padding-block: 2.75rem;
    }

    .site-footer__identity {
        grid-column: auto;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__links a,
    .site-footer__profiles a,
    .site-footer__legal a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}


/* Preferinte de accesibilitate */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* Tiparire */

@media print {
    body {
        display: block;
        min-height: 0;
        background: #ffffff;
        color: #000000;
        font-size: 11pt;
    }

    .site-header,
    .site-footer,
    .breadcrumbs,
    .page-sidebar,
    .skip-link,
    .hero__actions,
    .contact-cta,
    .error-page__actions {
        display: none;
    }

    .container {
        max-width: none;
        padding-inline: 0;
    }

    .section,
    .hero,
    .page-hero {
        padding-block: 1rem;
        border: 0;
    }

    .page-layout--with-sidebar {
        display: block;
    }

    .service-grid {
        display: block;
    }

    .service-card {
        margin-bottom: 1rem;
        padding: 1rem;
        background: #ffffff;
    }

    .home-about {
        background: #ffffff;
    }

    h1, h2, h3, a {
        color: #000000;
    }

    h1, h2, h3 {
        break-after: avoid;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }
}
/* Rafinare vizuala: blocuri, contururi si umbre discrete */

:root {
    --radius: 0.5rem;
    --shadow-soft: 0 3px 14px rgba(25, 42, 52, 0.045);
    --shadow-panel: 0 10px 30px rgba(25, 42, 52, 0.065);
}

.site-header {
    box-shadow: 0 3px 12px rgba(25, 42, 52, 0.035);
}

.hero {
    padding-block: clamp(2rem, 4vw, 3.75rem);
    border-bottom: 0;
}

/* Panouri mari, aliniate cu zona de continut */

.hero__layout,
.home-about__inner,
.contact-cta__inner,
.home-section + .home-section > .container,
.error-page__inner {
    width: calc(100% - 2.25rem);
    max-width: calc(var(--content-width) - 5rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-panel);
}

.hero__layout {
    position: relative;
}

.hero__layout::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1.5rem, 4vw, 3rem);
    width: 3rem;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
}

.page-hero {
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(25, 42, 52, 0.025);
}

.home-section + .home-section {
    padding-top: 0;
    border-top: 0;
}

.home-about {
    background: transparent;
    border: 0;
}

.contact-cta {
    padding-top: 0;
    border-top: 0;
}

.error-page__inner {
    max-width: 48rem;
}

/* Carduri de servicii si blocuri de text */

.service-card {
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.prose > .content-section {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.prose > .content-section + .content-section {
    margin-top: 1.5rem;
}

.prose > .content-section > :last-child {
    margin-bottom: 0;
}

.sidebar-panel {
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.page-sidebar > .sidebar-panel:first-child {
    border-top: 3px solid var(--accent);
}

.button--primary {
    box-shadow: 0 3px 8px rgba(25, 42, 52, 0.12);
}

.button--secondary {
    background: var(--surface);
}

/* Baza pentru cardurile viitorului blog */

.qa-list {
    gap: 1.25rem;
}

.qa-card,
.qa-card:first-child {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* Miscare scurta, numai pentru mouse si fara preferinta de reducere */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .service-card,
    .button {
        transition: transform 160ms ease;
    }

    .service-card:hover {
        transform: translateY(-2px);
    }

    .button:hover {
        transform: translateY(-1px);
    }
}

/* Conturul se schimba fara animarea umbrei */

.service-card:hover,
.service-card:focus-within {
    border-color: var(--line-strong);
}

@media (max-width: 36rem) {
    :root {
        --shadow-soft: 0 2px 8px rgba(25, 42, 52, 0.04);
        --shadow-panel: 0 5px 16px rgba(25, 42, 52, 0.05);
    }

    .hero__layout,
    .home-about__inner,
    .contact-cta__inner,
    .home-section + .home-section > .container,
    .error-page__inner {
        padding: 1.5rem 1.25rem;
    }

    .hero__layout::before {
        left: 1.25rem;
    }
}

/* Pastreaza documentul de tiparit simplu */

@media print {
    .site-header,
    .hero__layout,
    .page-hero,
    .home-about__inner,
    .contact-cta__inner,
    .home-section + .home-section > .container,
    .error-page__inner,
    .service-card,
    .prose > .content-section,
    .sidebar-panel,
    .button,
    .qa-card {
        box-shadow: none;
        transform: none;
    }

    .hero__layout,
    .home-about__inner,
    .contact-cta__inner,
    .home-section + .home-section > .container,
    .error-page__inner {
        width: 100%;
        max-width: none;
        padding: 0;
        border: 0;
    }

    .hero__layout::before {
        display: none;
    }

    .prose > .content-section {
        padding: 0;
        border: 0;
    }

    .hero,
    .contact-cta {
        padding-block: 1rem;
    }
}