:root {
    --brown-900: #211711;
    --brown-800: #302016;
    --brown-700: #4a2f20;
    --brown-600: #684531;
    --brown-500: #8a6247;

    --cream: #f5f0e8;
    --cream-2: #ebe2d5;
    --white: #ffffff;
    --black: #15120f;

    --border: rgba(48, 32, 22, .14);

    --container: 1240px;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(35, 22, 13, .12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--brown-900);
    background: var(--cream);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* =========================
   HEADER
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(48,32,22,.08);
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    /* marca are scris circular (OAKLINE / MADE PRECISE); sub ~50px literele nu se mai citesc.
       58px incape in bara de 82px fara sa o creasca. Raportul 667x771 din SVG => latime mai mica. */
    width: 50px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--brown-700);
    flex: 0 0 auto;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
    /* marca nu e patrata (667x771): fara asta s-ar intinde si s-ar deforma */
    object-fit: contain;
    display: block;
}

.logo-text strong {
    display: block;
    font-size: 15px;
    letter-spacing: 1.5px;
}

.logo-text span {
    display: block;
    font-size: 8px;
    letter-spacing: 1.7px;
    color: var(--brown-600);
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #4e423a;
    transition: .25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brown-900);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 2px;
    background: var(--brown-700);
}

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 27px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: .25s;
}

.btn-primary {
    color: white;
    background: var(--brown-800);
}

.btn-primary:hover {
    background: var(--brown-600);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--brown-800);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.6);
    color: white;
    background: transparent;
}

.mobile-menu {
    display: none;
    background: none;
    border: 0;
    font-size: 26px;
    cursor: pointer;
}

/* =========================
   PAGE SYSTEM
========================= */

.page {
    display: none;
    padding-top: 118px;
    min-height: 100vh;
}

.page.active {
    display: block;
    animation: pageIn .4s ease;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg,
        rgba(25,16,11,.88) 0%,
        rgba(25,16,11,.62) 40%,
        rgba(25,16,11,.15) 75%,
        rgba(25,16,11,.05) 100%),
        var(--hero-image, none)
        center/cover;
}

.hero-content {
    max-width: 650px;
    color: white;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 22px;
    opacity: .85;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    line-height: 1.12;
}

h1 {
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 600;
    margin-bottom: 25px;
}

.hero p {
    max-width: 550px;
    font-size: 17px;
    color: rgba(255,255,255,.87);
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin-bottom: 55px;
}

.section-header.center {
    margin-inline: auto;
    text-align: center;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brown-600);
    margin-bottom: 13px;
}

h2 {
    font-size: clamp(35px, 4vw, 54px);
    margin-bottom: 18px;
}

.section-header p {
    color: #6f6258;
    font-size: 16px;
}

/* =========================
   FEATURE STRIP
========================= */

.feature-strip {
    background: white;
    border-bottom: 1px solid var(--border);
}

.features {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.feature {
    padding: 35px 25px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.feature:last-child {
    border-right: 0;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.feature strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.feature span {
    font-size: 12px;
    color: #83776d;
}

/* =========================
   STAIRS CARDS
========================= */

.stair-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.stair-card {
    background: white;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(35,22,13,.07);
    transition: .3s;
}

.stair-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.stair-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.stair-card-image img {
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.stair-card:hover img {
    transform: scale(1.05);
}

.stair-card-content {
    padding: 23px;
}

.stair-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.stair-card p {
    font-size: 13px;
    color: #75685e;
}

/* =========================
   DARK CTA
========================= */

.dark-section {
    background:
        linear-gradient(rgba(38,24,16,.85),rgba(38,24,16,.85)),
        var(--cta-image, none)
        center/cover;
    color: white;
}

.dark-section .section-label {
    color: #d5b898;
}

.dark-section p {
    color: rgba(255,255,255,.72);
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: auto;
}

.cta-box h2 {
    margin-bottom: 20px;
}

/* =========================
   ABOUT
========================= */

.page-hero {
    min-height: 350px;
    display: flex;
    align-items: center;
    color: white;
    background:
        linear-gradient(rgba(35,22,14,.68),rgba(35,22,14,.68)),
        var(--hero-image, none)
        center/cover;
}

.page-hero h1 {
    font-size: clamp(45px,6vw,70px);
    margin-bottom: 10px;
}

.page-hero p {
    color: rgba(255,255,255,.78);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    height: 560px;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

.about-copy p {
    color: #70645b;
    margin-bottom: 18px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    margin-top: 45px;
}

.stat {
    text-align: center;
    padding: 28px 10px;
    background: white;
    border-radius: 12px;
}

.stat strong {
    display: block;
    font-family: "Playfair Display";
    font-size: 34px;
}

.stat span {
    font-size: 11px;
    color: #81766e;
}

/* =========================
   VALUES
========================= */

.values {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.value {
    background: white;
    border-radius: var(--radius);
    padding: 35px 27px;
    border: 1px solid var(--border);
}

.value-icon {
    font-size: 28px;
    margin-bottom: 20px;
}

.value h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.value p {
    color: #766b62;
    font-size: 13px;
}

/* =========================
   SERVICES
========================= */

.service-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service {
    display: grid;
    grid-template-columns: 230px 1fr 50px;
    gap: 30px;
    align-items: center;
    padding: 18px;
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: .25s;
}

.service:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.service-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.service-image img {
    height: 100%;
    object-fit: cover;
}

.service h3 {
    font-size: 25px;
    margin-bottom: 8px;
}

.service p {
    color: #776b62;
    font-size: 14px;
}

.service-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--cream);
    display: grid;
    place-items: center;
    font-size: 20px;
}

/* =========================
   PROJECTS
========================= */

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter {
    border: 1px solid var(--border);
    background: white;
    padding: 9px 18px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 12px;
    transition: .2s;
}

.filter.active,
.filter:hover {
    background: var(--brown-800);
    color: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.project {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
}

.project img {
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.project:hover img {
    transform: scale(1.07);
}

.project-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 54px 24px 24px;
    color: white;
    background: linear-gradient(transparent,rgba(15,9,6,.82));
}

.project-overlay h3 {
    font-size: 23px;
}

.project-overlay span {
    font-size: 11px;
    opacity: .75;
}

/* =========================
   CONTACT
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 25px;
}

.contact-card,
.form-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--cream);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 3px;
}

.contact-item span {
    color: #776b62;
    font-size: 13px;
}

.map {
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    background:
        linear-gradient(rgba(235,226,213,.3),rgba(235,226,213,.3)),
        var(--map-image, none);
    background-size: cover;
    display: grid;
    place-items: center;
}

.map-pin {
    width: 45px;
    height: 45px;
    background: var(--brown-800);
    color: white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.map-pin span {
    transform: rotate(45deg);
}

form {
    display: grid;
    gap: 17px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #ded5cb;
    background: #fcfaf7;
    border-radius: 8px;
    padding: 13px 14px;
    outline: none;
    transition: .2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brown-600);
    box-shadow: 0 0 0 3px rgba(104,69,49,.08);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* =========================
   FOOTER
========================= */

footer {
    background: var(--brown-900);
    color: white;
    padding: 65px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 2.15fr);
    gap: 60px;
    padding-bottom: 46px;
    align-items: start;
}

footer .logo {
    color: white;
}

footer .logo-mark {
    color: var(--cream);
}

footer .logo-text span {
    color: #c4a98f;
}

.footer-about {
    color: rgba(255,255,255,.58);
    max-width: 330px;
    font-size: 13px;
    margin-top: 20px;
}

footer h4 {
    font-size: 13px;
    margin-bottom: 18px;
}

footer ul {
    list-style: none;
    display: grid;
    gap: 9px;
}

footer li {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    cursor: pointer;
}

footer li:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 32px;
}

/* =========================
   TOAST
========================= */

.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: var(--brown-900);
    color: white;
    padding: 16px 22px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: .3s;
    z-index: 5000;
    font-size: 13px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}


/* =========================
   SUBMENIU SERVICII
========================= */

.nav-item-has-sub {
    position: relative;
    display: flex;
    align-items: center;
}

/* Butonul "+" e doar pentru telefon; pe desktop submeniul se deschide la hover. */
.nav-sub-toggle {
    display: none;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    line-height: 1;
    color: #4e423a;
}

.nav-sub {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    min-width: 264px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 2px;
    display: none;
    z-index: 60;
}

/* Puntea invizibila tine submeniul deschis cand mouse-ul coboara spre el. */
.nav-sub::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-item-has-sub:hover .nav-sub,
.nav-item-has-sub:focus-within .nav-sub {
    display: flex;
}

.nav-sub a {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.35;
    color: #4e423a;
    transition: .2s;
}

.nav-sub a:hover,
.nav-sub a.active {
    background: var(--cream, #f6f1ea);
    color: var(--brown-900);
}

/* Sublinierea de element activ nu are sens in interiorul panoului. */
.nav-sub a.active::after {
    display: none;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 1000px) {

    .nav-links {
        gap: 18px;
    }

    .stair-grid,
    .values {
        grid-template-columns: repeat(2,1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 450px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media(max-width: 720px) {

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    header .btn-primary {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 75px;
        padding: 20px;
        background: white;
        border-radius: 12px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    /* Pe telefon submeniul nu mai pluteste: intra in lista, sub "Servicii". */
    .nav-item-has-sub {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-sub-toggle {
        display: block;
    }

    .nav-sub {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 12px;
        padding: 6px 0 0 14px;
        border-left: 2px solid var(--brown-200, #e6ddd2);
        border-radius: 0;
        box-shadow: none;
        background: none;
        gap: 12px;
    }

    .nav-sub::before {
        display: none;
    }

    /* Hover-ul nu exista pe telefon: deschiderea o face doar butonul. */
    .nav-item-has-sub:hover .nav-sub,
    .nav-item-has-sub:focus-within .nav-sub {
        display: none;
    }

    .nav-item-has-sub.sub-open .nav-sub {
        display: flex;
    }


    .nav-links a.active::after {
        display: none;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        min-height: 650px;
    }

    h1 {
        font-size: 46px;
    }

    .features {
        grid-template-columns: repeat(2,1fr);
    }

    .feature:nth-child(2) {
        border-right: 0;
    }

    .feature:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .stair-grid,
    .values,
    .gallery {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2,1fr);
    }

    .service {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .service-arrow {
        display: none;
    }

    .page {
        padding-top: 82px;
    }

    .topbar-info {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .service h3 {
        font-size: 19px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card,
    .form-card {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* =========================
   ADAUGIRI PENTRU SITE-UL VIU
   (macheta era o singura pagina; aici sunt pagini reale, cu formular real)
========================= */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 6000;
    background: var(--brown-900);
    color: white;
    padding: 12px 18px;
    border-radius: 0 0 8px 0;
    font-size: 13px;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--brown-600);
    outline-offset: 3px;
}

.form-note {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

.form-note-ok {
    background: #e7f3ea;
    color: #245c33;
}

.form-note-error {
    background: #fbeae9;
    color: #8c2b23;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #b03a2e;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #b03a2e;
}

.capcana {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.filter-empty {
    text-align: center;
    color: #75685e;
    font-size: 14px;
    margin-top: 30px;
}

/* ===== Blog, pagini de detaliu, paginare, breadcrumb, FAQ ===== */

.article-filters {
    justify-content: flex-start;
}

.article-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    margin-top: 30px;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-cover {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--cream-2);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card-content {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-card-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 21px;
    line-height: 1.3;
}

.article-category {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brown-600);
}

.article-date {
    font-size: 13px;
    color: #75685e;
}

.article-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--brown-900);
}

.article-body h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    margin: 42px 0 14px;
}

.article-body h3 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    margin: 32px 0 10px;
}

.article-body p {
    margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    border-radius: var(--radius);
    margin: 10px 0 22px;
    max-width: 100%;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: 15px;
    background: var(--white);
}

.article-body th,
.article-body td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}

.article-body th {
    background: var(--cream-2);
    font-weight: 600;
}

.breadcrumbs {
    background: var(--cream-2);
    font-size: 13.5px;
    color: #75685e;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: var(--brown-700);
    font-weight: 500;
}

.breadcrumb-sep {
    color: #b9ac9e;
}

.faq-list {
    max-width: 760px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-item[open] summary {
    margin-bottom: 8px;
}

.faq-item p {
    color: #4d4239;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-item {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--brown-700);
    font-weight: 600;
}

a.pagination-item:hover {
    background: var(--cream-2);
}

.pagination-item.active {
    background: var(--brown-800);
    border-color: var(--brown-800);
    color: #ffffff;
}

.pagination-dots {
    border: none;
    background: none;
}

.project-detail {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 40px;
}

.project-figure {
    margin: 0;
}

.project-figure img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    box-shadow: var(--shadow);
}

.project-side h2 {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    margin-bottom: 16px;
}

.project-meta {
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px 18px;
    margin-bottom: 20px;
}

.project-meta li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.project-meta li:last-child {
    border-bottom: none;
}

.project-meta span {
    color: #75685e;
    font-size: 14px;
}

.project-gallery {
    margin-top: 10px;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 15.5px;
    line-height: 1.8;
    color: #4d4239;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-updated {
    font-size: 13px;
    color: #75685e;
    margin-top: 28px;
}

@media (max-width: 900px) {
    .project-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.legal-links a {
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
    transition: color .2s;
}

.legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}

a.project {
    display: block;
}

a.service,
a.stair-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

a.service:hover,
a.stair-card:hover {
    transform: translateY(-3px);
}

.section-actions {
    text-align: center;
    margin-top: 34px;
}

/* ===== Look corporate: banda stats, proces, date firma ===== */

.stats-band {
    background: var(--brown-900);
    padding: 70px 0;
    margin-top: 20px;
}

.stats-band .stats {
    margin-top: 0;
}

.stats-band .stat {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
}

.stats-band .stat strong {
    color: var(--cream);
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 600;
}

.stats-band .stat span {
    color: rgba(245, 240, 232, .72);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.process-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 22px;
}

.process-step .process-num {
    font-family: "Playfair Display", serif;
    font-size: 34px;
    color: var(--brown-500);
}

.process-step h3 {
    font-size: 18px;
    margin: 8px 0 6px;
}

.process-step p {
    font-size: 14.5px;
    color: #4d4239;
    margin: 0;
}

.company-data {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: #75685e;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   STRAT PREMIUM / OFFICE
========================= */

.topbar-info {
    background: var(--brown-900);
    color: rgba(245, 240, 232, .82);
    font-size: 12.5px;
    letter-spacing: .3px;
}

.topbar-info .container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.topbar-info a {
    color: rgba(245, 240, 232, .92);
    font-weight: 600;
}

.topbar-info a:hover {
    color: #ffffff;
}

.topbar-signal {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7fb98a;
    box-shadow: 0 0 0 3px rgba(127, 185, 138, .2);
}

.topbar-schedule {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    box-shadow: 0 10px 26px rgba(48, 32, 22, .22);
}

.btn-primary:active {
    transform: translateY(0);
}

.hero .kicker,
.page-hero .kicker {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 100px;
    margin-bottom: 24px;
    opacity: 1;
}

.section-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-header .section-label::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--brown-500);
}

.feature-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--cream);
    font-size: 22px;
}

.section-white {
    background: var(--white);
    border-block: 1px solid var(--border);
}

.stair-card {
    border: 1px solid var(--border);
}

.value-icon {
    width: 54px;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--cream);
    margin-bottom: 20px;
}

.process-step {
    border-top: 3px solid var(--brown-500);
}

input,
textarea,
select {
    border-radius: 10px;
}

footer h4 {
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.article-card h3 {
    color: var(--brown-900);
}

a.article-card:hover h3 {
    color: var(--brown-600);
}

@media (max-width: 720px) {
    .hero .kicker,
    .page-hero .kicker {
        display: inline-block;
        padding: 7px 13px;
    }

    h1,
    .hero h1,
    .page-hero h1 {
        font-size: clamp(30px, 7.6vw, 46px);
        overflow-wrap: break-word;
    }

    h2 {
        font-size: clamp(28px, 6.5vw, 38px);
    }

    section {
        padding: 60px 0;
    }

    .feature {
        padding: 26px 16px;
    }
}

/* oakline: service-image gol */
.service:not(:has(.service-image)) { grid-template-columns: 1fr 50px; }

/* oakline: feature-icon svg */
.feature-icon svg {
    width: 30px;
    height: 30px;
    display: block;
    color: var(--brown-700);
    stroke-width: 1.5;
}


/* oakline: service-grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-tile {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: .25s;
}

.service-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-tile-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cream-2);
}

.service-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.service-tile:hover .service-tile-image img {
    transform: scale(1.04);
}

.service-tile-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.service-tile-body h3 {
    font-size: 19px;
    line-height: 1.25;
    margin: 0;
}

.service-tile-link {
    margin-top: auto;
    font-size: 13px;
    color: var(--brown-600);
}

/* oakline: service-tile fara poza */
/* fara rama goala, si fara intindere pe inaltimea randului */
.service-grid {
    align-items: start;
}

.service-tile-image:not(:has(img)) {
    display: none;
}

/* oakline: service-tile compact pe rand propriu */
/* serviciile fara poza pornesc pe rand nou si stau pe toata latimea,
   ca sa nu lase goluri in grila si sa nu para carduri neterminate */
.service-tile:not(:has(.service-tile-image img)) {
    grid-column: 1 / -1;
}

.service-tile:not(:has(.service-tile-image img)) .service-tile-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
}

.service-tile:not(:has(.service-tile-image img)) .service-tile-link {
    margin-top: 0;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* oakline: footer profesional */
.footer-nav { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:32px 28px; align-items:start; }
.footer-nav .footer-col h4 { margin:0 0 14px; }
.footer-nav .footer-col ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.footer-brand .footer-about { margin-top:18px; max-width:300px; }
.footer-col-contact .footer-address { color:rgba(255,255,255,.58); line-height:1.6; }
.footer-bottom-left { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; font-size:11.5px; color:rgba(255,255,255,.62); flex:1 1 auto; min-width:0; }
.footer-entity { color:rgba(255,255,255,.5); }
@media (max-width: 980px) { .footer-nav { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 720px) { .footer-nav { grid-template-columns: repeat(2, minmax(0,1fr)); gap:28px 20px; } }
@media (max-width: 440px) { .footer-nav { grid-template-columns: 1fr; } }

/* oakline: pagina servicii - doua niveluri */
.service-feature-list { display:flex; flex-direction:column; gap:30px; margin-bottom:70px; }

.service-feature {
    display:grid; grid-template-columns: 1.05fr 1fr; gap:0;
    background:var(--white); border:1px solid var(--border);
    border-radius:var(--radius); overflow:hidden;
}
.service-feature:nth-child(even) .service-feature-image { order:2; }

.service-feature-image { aspect-ratio:4/3; max-height:400px; background:var(--cream-2); overflow:hidden; }
.service-feature-image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s; }
.service-feature:hover .service-feature-image img { transform:scale(1.03); }

.service-feature-body { padding:36px 42px; display:flex; flex-direction:column; justify-content:center; }
.service-feature-body h3 { font-size:27px; line-height:1.2; margin:0 0 12px; }
.service-feature-body > p { color:var(--brown-500); font-size:14.5px; line-height:1.7; margin:0 0 20px; }

.service-variants { list-style:none; margin:0 0 24px; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.service-variants li {
    font-size:12.5px; color:var(--brown-700); background:var(--cream);
    border:1px solid var(--border); border-radius:100px; padding:6px 13px;
}

.service-feature-link {
    align-self:flex-start; font-size:13.5px; font-weight:600; color:var(--brown-700);
    border-bottom:1px solid var(--brown-500); padding-bottom:3px; transition:.2s;
}
.service-feature-link:hover { color:var(--brown-900); border-color:var(--brown-900); }

.service-others-title { font-size:20px; margin:0 0 22px; }
.service-card-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:18px; align-items:stretch; }

.service-card {
    display:flex; flex-direction:column; background:var(--white);
    border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:.25s;
}
.service-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.service-card-image { aspect-ratio:16/11; background:var(--cream-2); overflow:hidden; }
.service-card-image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s; }
.service-card:hover .service-card-image img { transform:scale(1.04); }
.service-card-image:not(:has(img)) { display:none; }

/* carduri fara poza: banda de lemn in loc de imagine, ca randul sa nu para rupt */
.service-card:not(:has(.service-card-image img)) { background:var(--cream); }
.service-card:not(:has(.service-card-image img)) .service-card-body { padding-top:20px; }
.service-card:not(:has(.service-card-image img)) .service-card-body::before {
    content:''; display:block; width:38px; height:3px; border-radius:2px;
    background:var(--brown-500); margin-bottom:10px;
}

.service-card-body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.service-card-body h4 { font-size:16.5px; line-height:1.3; margin:0; }
.service-card-body p { font-size:13px; line-height:1.6; color:var(--brown-500); margin:0; }
.service-card-variants { font-size:11.5px; line-height:1.55; color:var(--brown-600); }
.service-card-link { margin-top:auto; font-size:12.5px; color:var(--brown-600); padding-top:4px; }

@media (max-width: 1100px) { .service-card-grid { grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
    .service-feature { grid-template-columns:1fr; }
    .service-feature:nth-child(even) .service-feature-image { order:0; }
    .service-feature-image { aspect-ratio:16/9; max-height:none; }
    .service-feature-body { padding:28px 26px; }
    .service-feature-body h3 { font-size:23px; }
    .service-card-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) { .service-card-grid { grid-template-columns:1fr; } }

/* oakline: grila de carduri se adapteaza cand sunt putine elemente */
.service-card-grid:has(.service-card:nth-child(2)):not(:has(.service-card:nth-child(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-inline: auto;
}
.service-card-grid:not(:has(.service-card:nth-child(2))) {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
}
.service-card-grid:has(.service-card:nth-child(3)):not(:has(.service-card:nth-child(4))) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* Banda cu cifre de pe Acasa */
.counters-band {
    background: var(--brown-900);
    padding: 70px 0;
}

.counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.counters .counter strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 44px;
    line-height: 1.1;
    color: var(--cream);
    font-variant-numeric: tabular-nums;
}

.counters .counter span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(245, 240, 232, 0.72);
}

@media (max-width: 720px) {
    .counters-band {
        padding: 48px 0;
    }

    .counters {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .counters .counter strong {
        font-size: 38px;
    }
}


/* =========================
   Animatii la derulare (discret)
   Elementele sunt ascunse DOAR daca JS-ul a marcat <html> cu .js-anim.
   Fara JS, sau cu JS blocat, continutul ramane vizibil - site-ul nu apare gol.
   ========================= */
.js-anim [data-anim] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s cubic-bezier(.22, .61, .36, 1),
                transform .5s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.js-anim [data-anim].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Dupa ce animatia s-a terminat scoatem will-change, sa nu tinem straturi
   de compozitare degeaba pe toata pagina. */
.js-anim [data-anim].anim-done {
    will-change: auto;
}

/* Cine a cerut miscare redusa in sistem vede tot, instant, fara nicio animatie. */
@media (prefers-reduced-motion: reduce) {
    .js-anim [data-anim] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .page {
        animation: none;
    }
}


/* =========================
   PORTOFOLIU PE DOUA NIVELURI (cerere client 24.09.2026)
   /proiecte        - cate un card de categorie, grupate pe Scari / Exterior / Alte servicii
   /proiecte/{slug} - galeria completa a categoriei
========================= */

.gallery-group {
    padding-bottom: 0;
}

/* Doua grupuri consecutive: fara padding-ul obisnuit de sectiune (s-ar dubla),
   dar cu o distanta clara, altfel titlul urmator se lipeste de ultimul rand de poze. */
.gallery-group + .gallery-group {
    padding-top: 74px;
}

.gallery-group-title {
    font-size: 30px;
    color: var(--brown-700);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 34px;
}

/* Pe /proiecte fiecare poza e un link catre galeria categoriei, deci suprapunerea
   cu numele trebuie sa raspunda la hover - altfel nu se vede ca se poate da click.
   Degradeul porneste mai devreme si mai apasat decat cel implicit: pe pozele deschise
   (pergole, riflaj) titlul si numarul de fotografii se pierdeau in imagine. */
.gallery-group .project .project-overlay {
    padding: 72px 24px 22px;
    background: linear-gradient(transparent, rgba(15, 9, 6, .55) 42%, rgba(15, 9, 6, .93));
    transition: background .3s;
}

.gallery-group .project .project-overlay span {
    display: block;
    margin-top: 4px;
    opacity: .9;
}

.gallery-group .project:hover .project-overlay,
.gallery-group .project:focus-visible .project-overlay {
    background: linear-gradient(transparent, rgba(15, 9, 6, .92));
}

/* Butonul "Vezi galeria" de la finalul unui serviciu: lipit de textul serviciului,
   nu o sectiune separata cu spatiu mare deasupra. */
.service-gallery-cta {
    padding-top: 0;
}

/* Butoanele de sub galeria unei categorii: spre serviciul ei si inapoi la portofoliu. */
.gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

@media (max-width: 720px) {
    .gallery-group-title {
        font-size: 24px;
        margin-bottom: 26px;
    }

    .gallery-group + .gallery-group {
        padding-top: 46px;
    }

    /* pe telefon butoanele pe latimea ecranului, nu inghesuite unul langa altul */
    .gallery-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }
}


/* =========================
   BLOCURI DIN EDITOR (#3795)
   Paginile se editeaza in panou din blocuri (Hero, Titlu, Text, Imagine, Buton) si arata
   ca sectiunile Oakline de mai sus. Stilurile editorului vin in pagina DUPA acest fisier,
   de aceea regulile de aici incep cu .dclb (castiga fara !important).

   Randurile facute pentru Oakline au id-ul dupa rol:
   oaks... sectiune pe crem   oakw... sectiune alba   oakc... banda cu cifre   oakf... pe toata latimea
   Un rand nou adaugat din editor primeste alt id si pastreaza aspectul standard al editorului.
   Blocurile Titlu cu id oakl... sunt antete aliniate la stanga (restul antetelor stau pe centru).
========================= */

body .dclb {
    --dclb-accent: var(--brown-800);
}

/* --- tipografie --- */
.dclb .dclb-heading {
    line-height: 1.12;
}

/* eticheta mica de deasupra titlurilor = bloc Titlu H4 */
.dclb h4.dclb-heading {
    font-family: "DM Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--brown-600);
}

.dclb .dclb-t-text {
    color: #6f6258;
}

.dclb .dclb-t-text p {
    margin: 0 0 18px;
}

.dclb .dclb-t-text p:last-child {
    margin-bottom: 0;
}

.dclb .dclb-t-text a {
    color: var(--brown-600);
    text-decoration: underline;
}

/* --- butoane: aceleasi ca .btn / .btn-primary --- */
.dclb .dclb-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 27px;
    border: 0;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1.6;
    background: var(--dclb-accent);
    color: #fff;
    box-shadow: 0 10px 26px rgba(48, 32, 22, .22);
    transition: .25s;
}

.dclb .dclb-btn:hover {
    filter: none;
    background: var(--brown-600);
    transform: translateY(-2px);
}

.dclb .dclb-btn:active {
    transform: translateY(0);
}

.dclb .dclb-btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.dclb .dclb-btn-full {
    display: flex;
}

.dclb .dclb-btn-outline {
    background: transparent;
    color: var(--dclb-accent);
    border: 1px solid var(--dclb-accent);
    box-shadow: none;
}

.dclb .dclb-btn-outline:hover {
    background: var(--dclb-accent);
    color: #fff;
}

/* --- randurile Oakline: latimea si spatiile sectiunilor --- */
.dclb .dclb-row[id^="oak"] > .dclb-inner {
    padding-left: 20px;
    padding-right: 20px;
}

.dclb .dclb-row[id^="oakw"] {
    border-block: 1px solid var(--border);
}

/* antetul sectiunii (eticheta, titlu, text scurt): cel mult 700px, pe centru */
.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-heading,
.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > [id^="oakl"] {
    margin-left: 0;
}

/* linia mica din fata etichetei, ca la .section-header .section-label */
.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-heading > h4.dclb-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-heading > h4.dclb-heading::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--brown-500);
}

/* text lung (3+ paragrafe) = pagina legala, ca .legal-content */
.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-text:has(> p:nth-child(3)) {
    max-width: 760px;
    font-size: 15.5px;
    line-height: 1.8;
    color: #4d4239;
}

.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-text:has(> p:nth-child(3)) p {
    margin-bottom: 16px;
}

.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-text:has(> p:nth-child(3)) p:last-child {
    margin-bottom: 0;
}

/* spatiile dintre blocuri */
.dclb .dclb-row[id^="oak"] .dclb-el + .dclb-el {
    margin-top: 18px;
}

.dclb .dclb-row[id^="oak"] .dclb-t-heading:has(> h4) + .dclb-el {
    margin-top: 13px;
}

.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-el:not(.dclb-t-html) + .dclb-t-html {
    margin-top: 55px;
}

.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-html + .dclb-t-html {
    margin-top: 0;
}

.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-html + .dclb-t-button {
    margin-top: 34px;
}

/* data actualizarii sta in coloana textului legal; cei 28px vin din .legal-updated, ca inainte */
.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-text:has(> p:nth-child(3)) + .dclb-t-html {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.8;
}

.dclb .dclb-row[id^="oak"] .dclb-w-1-1 > .dclb-t-text:has(> p:nth-child(3)) + .dclb-t-html .legal-updated {
    margin-bottom: 16px;
}

/* listele automate ale site-ului (servicii, proiecte, articole, formular...) */
.oak-block {
    display: flow-root;
}

/* in paginile vechi marginea de sus a listei se suprapunea cu spatiul de sub titlu; aici spatiul il da blocul */
.dclb .dclb-row[id^="oak"] .dclb-el + .dclb-t-html > .oak-block > .process-grid:first-child,
.dclb .dclb-row[id^="oak"] .dclb-el + .dclb-t-html > .oak-block > .article-grid:first-child {
    margin-top: 0;
}

/* --- poza de langa text (Despre noi): inalta si taiata frumos, ca .about-image --- */
.dclb .dclb-row[id^="oak"] .dclb-w-1-2 > .dclb-t-image:only-child img {
    display: block;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* --- Contact: caseta cu date + formularul, ca .contact-grid --- */
.dclb .dclb-row[id^="oak"] .dclb-cols:has([data-oakline-block="formular"]) {
    grid-template-columns: .85fr 1.15fr;
}

.dclb .dclb-row[id^="oak"] .dclb-cols:has([data-oakline-block="formular"]) > .dclb-col {
    grid-column: auto;
    align-self: stretch;
}

/* formularul se intinde pe toata inaltimea casetei de alaturi, ca in grila veche */
.dclb .dclb-row[id^="oak"] .dclb-cols:has([data-oakline-block="formular"]) > .dclb-col:has(> .dclb-t-html:only-child [data-oakline-block="formular"]) {
    display: flex;
    flex-direction: column;
}

.dclb .dclb-row[id^="oak"] .dclb-col > .dclb-t-html:only-child:has(> [data-oakline-block="formular"]) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dclb .dclb-row[id^="oak"] .oak-block[data-oakline-block="formular"] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dclb .dclb-row[id^="oak"] .oak-block[data-oakline-block="formular"] > .form-card {
    flex: 1;
}

.dclb .dclb-row[id^="oak"] .dclb-cols:has([data-oakline-block="formular"]) > .dclb-col:first-child {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
}

/* --- banda cu cifre (Acasa), ca .counters-band --- */
.dclb .dclb-row[id^="oakc"] .dclb-col {
    text-align: center;
}

.dclb .dclb-row[id^="oakc"] .dclb-heading {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--cream);
    font-variant-numeric: tabular-nums;
}

.dclb .dclb-row[id^="oakc"] .dclb-t-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(245, 240, 232, .72);
}

.dclb .dclb-row[id^="oakc"] .dclb-el + .dclb-el {
    margin-top: 10px;
}

/* --- Hero: pe toate trei variantele --- */
.dclb .dclb-t-hero .dclb-hero-c {
    width: min(calc(100% - 40px), var(--container));
    max-width: none;
    padding: 100px 0;
}

.dclb .dclb-t-hero .dclb-hero-c > * {
    max-width: none;
}

/* eticheta din hero, ca .kicker din .page-hero / .hero */
.dclb .dclb-t-hero .dclb-hero-e {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.6;
    text-transform: uppercase;
    opacity: 1;
}

/* hero de pagina (titlu H1, fara butoane), ca .page-hero */
.dclb .dclb-t-hero .dclb-hero-t {
    margin: 0 0 10px;
    font-size: clamp(45px, 6vw, 70px);
    line-height: 1.12;
}

.dclb .dclb-t-hero .dclb-hero-s {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 1;
    color: rgba(255, 255, 255, .78);
}

.dclb .dclb-t-hero .dclb-btns {
    gap: 12px;
}

.dclb .dclb-t-hero .dclb-hero .dclb-btn {
    background: var(--white);
    color: var(--brown-800);
    box-shadow: none;
}

.dclb .dclb-t-hero .dclb-hero .dclb-btn:hover {
    background: var(--white);
    transform: none;
}

.dclb .dclb-t-hero .dclb-hero .dclb-btn-ghost,
.dclb .dclb-t-hero .dclb-hero .dclb-btn-ghost:hover {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .6);
}

/* hero de pe Acasa (titlu H1 + butoane), ca .hero: umbra din stanga, text pe 650px */
.dclb .dclb-t-hero .dclb-hero:has(h1.dclb-hero-t):has(.dclb-btns)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(25, 16, 11, .88) 0%,
        rgba(25, 16, 11, .62) 40%,
        rgba(25, 16, 11, .15) 75%,
        rgba(25, 16, 11, .05) 100%);
}

.dclb .dclb-t-hero .dclb-hero:has(h1.dclb-hero-t):has(.dclb-btns) .dclb-hero-c > * {
    max-width: 650px;
}

.dclb .dclb-t-hero .dclb-hero:has(h1.dclb-hero-t):has(.dclb-btns) .dclb-hero-t {
    margin-bottom: 25px;
    font-size: clamp(48px, 6vw, 82px);
}

.dclb .dclb-t-hero .dclb-hero:has(h1.dclb-hero-t):has(.dclb-btns) .dclb-hero-s {
    max-width: 550px;
    margin-bottom: 34px;
    font-size: 17px;
    color: rgba(255, 255, 255, .87);
}

/* hero cu titlu H2 = sectiunea inchisa cu poza de la final (ca .dark-section + .cta-box) */
.dclb .dclb-t-hero .dclb-hero:has(h2.dclb-hero-t) .dclb-hero-c > * {
    max-width: 700px;
}

.dclb .dclb-t-hero .dclb-hero:has(h2.dclb-hero-t) .dclb-hero-e {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    margin-bottom: 13px;
    letter-spacing: 2.5px;
    color: #d5b898;
}

.dclb .dclb-t-hero .dclb-hero:has(h2.dclb-hero-t) .dclb-hero-t {
    margin-bottom: 20px;
    font-size: clamp(35px, 4vw, 54px);
}

.dclb .dclb-t-hero .dclb-hero:has(h2.dclb-hero-t) .dclb-hero-s {
    color: rgba(255, 255, 255, .72);
}

.dclb .dclb-t-hero .dclb-hero:has(h2.dclb-hero-t) .dclb-btns {
    margin-top: 25.6px;
}

@media (max-width: 1000px) {
    .dclb .dclb-row[id^="oak"] .dclb-cols > .dclb-w-1-2 {
        grid-column: span 12;
    }

    /* coloanele stau una sub alta: spatiul dintre ele ramane doar pe verticala (altfel randul iese din ecran) */
    .dclb .dclb-row[id^="oak"] .dclb-cols:has(> .dclb-w-1-2) {
        column-gap: 0 !important;
    }

    .dclb .dclb-row[id^="oak"] .dclb-cols:has([data-oakline-block="formular"]) {
        grid-template-columns: 1fr;
    }

    .dclb .dclb-row[id^="oak"] .dclb-w-1-2 > .dclb-t-image:only-child img {
        height: 450px;
    }
}

@media (max-width: 720px) {
    .dclb .dclb-row[id^="oak"] > .dclb-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* pe telefon sectiunile au spatiul mai mic, ca restul site-ului */
    .dclb .dclb-row[id^="oaks"],
    .dclb .dclb-row[id^="oakw"] {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .dclb .dclb-row[id^="oakc"] {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .dclb .dclb-row[id^="oakc"] .dclb-cols {
        gap: 28px !important;
        column-gap: 0 !important;
    }

    .dclb .dclb-row[id^="oakc"] .dclb-heading {
        font-size: 38px;
    }

    .dclb .dclb-row[id^="oak"] .dclb-cols:has([data-oakline-block="formular"]) > .dclb-col:first-child {
        padding: 25px;
    }

    .dclb .dclb-t-hero .dclb-hero-c {
        width: min(calc(100% - 28px), var(--container));
        padding: 60px 0;
    }

    .dclb .dclb-t-hero .dclb-hero-e {
        padding: 7px 13px;
    }

    .dclb .dclb-t-hero .dclb-hero-t,
    .dclb .dclb-t-hero .dclb-hero:has(h1.dclb-hero-t):has(.dclb-btns) .dclb-hero-t {
        font-size: clamp(30px, 7.6vw, 46px);
        overflow-wrap: break-word;
    }

    .dclb .dclb-t-hero .dclb-hero:has(h2.dclb-hero-t) .dclb-hero-t {
        font-size: clamp(28px, 6.5vw, 38px);
    }

    .dclb .dclb-t-hero .dclb-hero:has(h2.dclb-hero-t) .dclb-hero-e {
        padding: 0;
    }
}
