: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 {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--brown-700);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 21px;
}

.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: 13px 21px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    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: 82px;
    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 {
    height: 250px;
    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 {
    height: 130px;
    overflow: hidden;
    border-radius: 10px;
}

.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 {
    height: 310px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.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: 50px 24px 23px;
    color: white;
    background: linear-gradient(transparent,rgba(0,0,0,.8));
    transform: translateY(15px);
    opacity: .8;
    transition: .3s;
}

.project:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.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: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

footer .logo {
    color: white;
}

footer .logo-mark {
    border-color: rgba(255,255,255,.45);
}

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;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 25px;
    font-size: 11px;
    color: rgba(255,255,255,.4);
    display: flex;
    justify-content: space-between;
}

/* =========================
   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;
}

/* =========================
   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: repeat(2,1fr);
    }
}

@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;
    }

    .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: 110px 1fr;
        gap: 18px;
    }

    .service-arrow {
        display: none;
    }

    .service-image {
        height: 110px;
    }

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

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

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

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

    .copyright {
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================
   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;
}
