:root {
    --bg: #0b0b0d;
    --panel: #111114;
    --text: #f6f1ea;
    --muted: #d5b39b;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --line: #2c1f18;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at 10% 10%, #2b160e 0%, #0b0b0d 44%), linear-gradient(135deg, #120d0b 0%, #0b0b0d 100%);
    color: var(--text);
    line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(12, 11, 12, 0.88);
    border-bottom: 1px solid var(--line);
    z-index: 40;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.logo img { height: 42px; width: auto; }
.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: none;
}
.logo img,
.logo .custom-logo-link img {
    height: clamp(52px, 6.2vw, 86px);
    width: auto;
    max-width: min(560px, 72vw);
    filter: none;
}
.main-nav { display: flex; align-items: center; }
.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    font-weight: 600;
    flex-wrap: wrap;
}
.menu-list li {
    position: relative;
}
.menu-list ul {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    min-width: 240px;
    background: rgba(12, 11, 12, 0.98);
    border: 1px solid #3a251b;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,.55);
    z-index: 60;
    list-style: none;
    margin-left: 0;
}
.menu-list li:hover > ul,
.menu-list li:focus-within > ul,
.menu-list li.open > ul {
    display: block;
}
.menu-list ul li {
    width: 100%;
}
.menu-list ul a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0.92;
    padding-left: 18px;
    position: relative;
}
.menu-list ul a:hover {
    background: rgba(249, 115, 22, 0.10);
    opacity: 1;
}
.menu-list a {
    color: var(--text);
    opacity: 0.95;
}
.menu-list a:hover,
.menu-list .current-menu-item a {
    color: var(--accent);
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #3a251b;
    background: rgba(18, 15, 14, 0.65);
    color: var(--text);
}
.nav-toggle-lines {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: relative;
    display: block;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}
.nav-toggle-lines::before { top: -7px; }
.nav-toggle-lines::after { top: 7px; }

.hero { padding: 72px 0 48px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: center;
}

.hero h1 { font-size: clamp(30px, 4.5vw, 54px); margin: 10px 0 12px; line-height: 1.08; letter-spacing: -0.02em; }
.badge {
    display: inline-block;
    background: #1d120f;
    border: 1px solid #4a2717;
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}
.btn {
    display: inline-block;
    margin-top: 10px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.28);
    color: #ffffff;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    color: var(--muted);
}
.hero-metrics span {
    border: 1px solid #4a2e20;
    background: #1a1210;
    padding: 8px 12px;
    border-radius: 999px;
}
.hero-collage {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: 180px 180px;
    gap: 12px;
}
.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #553224;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}
.hero-collage img:first-child {
    grid-row: 1 / 3;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.26), transparent 42%);
    pointer-events: none;
}
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }

.section { padding: 58px 0; }
.alt { background: linear-gradient(180deg, #120f0f 0%, #0d0c0c 100%); }
h2 { font-size: clamp(24px, 3vw, 38px); margin-top: 0; }
h2::before {
    content: "";
    display: block;
    width: 90px;
    height: 16px;
    margin-bottom: 10px;
    background: url("../images/text-accent.svg") no-repeat center / contain;
}

.cards, .pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card, .price-card {
    background: var(--panel);
    border: 1px solid #3a251b;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover, .price-card:hover {
    transform: translateY(-4px);
    border-color: #7a3f23;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.38);
}
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 10px;
}

.price { font-size: 24px; font-weight: 700; margin: 8px 0; color: var(--accent); }
.seo-pricing {
    margin-top: 12px;
}
.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #4c2d1f;
}
.gallery img:first-child {
    grid-column: span 2;
    height: 260px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 44px 0;
    background: linear-gradient(90deg, #120d0c 0%, #1a1110 100%);
}

.page-hero {
    position: relative;
    padding: 62px 0 34px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 42%),
        radial-gradient(circle at 82% 30%, rgba(251, 146, 60, 0.18) 0%, rgba(251, 146, 60, 0) 44%),
        linear-gradient(130deg, #0b0b0d 0%, #141010 52%, #0b0b0d 100%);
    overflow: hidden;
}
.hero-mesh {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(0.2px) saturate(1.05);
    pointer-events: none;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.35), rgba(11, 11, 13, 0.75));
    pointer-events: none;
}
.page-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}
.page-hero-grid h1 {
    font-size: clamp(30px, 4.6vw, 56px);
    margin: 0 0 10px;
}
.page-hero-grid p {
    color: #e7c8b2;
    max-width: 58ch;
    margin: 0;
    font-size: 16px;
}
.page-hero-visual {
    position: relative;
    display: grid;
    gap: 0;
    justify-items: end;
}
.page-photo {
    width: min(540px, 100%);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #6f3f25;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
    background: #0f0d0d;
}
.page-svg {
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: min(420px, 70%);
    height: auto;
    border-radius: 18px;
    border: 1px solid #4b2d1f;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    opacity: 0.85;
}

.content-panel {
    background: var(--panel);
    border: 1px solid #3a251b;
    border-radius: 14px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.content-panel::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -120px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 68%);
    pointer-events: none;
}

.content-panel h2,
.content-panel h3 { margin-top: 1.2em; }
.content-panel h2:first-child { margin-top: 0; }
.content-panel h3 {
    display: inline-block;
    background: #1d1310;
    border: 1px solid #4d2d1f;
    border-radius: 10px;
    padding: 8px 12px;
}
.content-panel ul,
.content-panel ol { padding-left: 20px; }
.content-panel p,
.content-panel li { color: #e2c7b4; }
.content-panel strong { color: #fff5ec; }
.content-panel p {
    max-width: 78ch;
    font-size: 17px;
    line-height: 1.8;
}
.content-panel--servicii {
    padding: 34px;
}
.content-panel--servicii::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 520px;
    max-width: 65%;
    height: 240px;
    background: url("../images/servicii-deco.svg") no-repeat right top / contain;
    opacity: 0.95;
    pointer-events: none;
}
.content-panel--servicii h2 {
    margin-bottom: 14px;
}
.content-panel--servicii h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.35);
}
.content-panel--servicii h3::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.content-panel--servicii ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    list-style: none;
}
.content-panel--servicii ul li {
    margin: 0;
    padding: 12px 12px 12px 22px;
    border: 1px solid #3f291f;
    background: #141010;
    border-radius: 12px;
    position: relative;
}
.content-panel--servicii ul li::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f97316;
}
.content-panel--servicii p {
    max-width: 90ch;
}
.content-panel ul,
.content-panel ol {
    background: #161110;
    border: 1px solid #3f291f;
    border-radius: 12px;
    padding: 16px 22px 16px 36px;
    margin: 14px 0 20px;
}
.content-panel li {
    margin-bottom: 8px;
}

.bexpert-form {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #4a2c1f;
    border-radius: 12px;
    background: #171110;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-full { grid-column: 1 / -1; }
.bexpert-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f4c9a9;
}
.bexpert-form input,
.bexpert-form select,
.bexpert-form textarea {
    width: 100%;
    background: #0f0d0d;
    border: 1px solid #4a2c1f;
    color: #fff2e8;
    border-radius: 10px;
    padding: 10px 12px;
}
.bexpert-form input:focus,
.bexpert-form select:focus,
.bexpert-form textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wave-divider {
    display: block;
    width: 100%;
    height: 70px;
    object-fit: cover;
    opacity: 0.8;
}

.contact-map-wrap {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #3a251b;
}

.map-card {
    margin-top: 10px;
    border: 1px solid #4b2d1f;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.portfolio-showcase {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #4c2d1f;
    border-radius: 14px;
    background: #120f0e;
}
.portfolio-showcase img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #6f3f25;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.page-gallery-section {
    padding: 42px 0 10px;
}
.page-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.page-gallery-item {
    background: #120f0e;
    border: 1px solid #3a251b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
}
.page-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    opacity: 0.98;
}
.page-gallery-item:first-child img {
    height: 280px;
}
.page-gallery-item:first-child {
    grid-column: 1 / -1;
}

.page-gallery-inline {
    margin: 18px 0 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.page-gallery-inline .page-gallery-item:first-child {
    grid-column: 1 / -1;
}
.page-gallery-inline .page-gallery-item img {
    height: 200px;
}
.page-gallery-inline .page-gallery-item:first-child img {
    height: 260px;
}
.map-card iframe {
    width: 100%;
    height: 360px;
    border: 0;
}

.form-notice {
    margin-bottom: 16px;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
}
.form-notice.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #83f2c8;
}
.form-notice.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ffc7c7;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio - Sicmedia-like sections */
.case {
    padding: 56px 0;
    border-top: 1px solid #251714;
}
.case:nth-child(even) {
    background: linear-gradient(180deg, #0b0b0d 0%, #120f0e 100%);
}
.case-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 26px;
    align-items: start;
}
.case-logo img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #0f0d0d;
    border: 1px solid #4b2d1f;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 34px rgba(0,0,0,.45);
}
.case-body h2 {
    margin: 0 0 6px;
}
.case-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #f4c9a9;
    background: transparent;
    border: 0;
    padding: 0;
}
.case-text p {
    margin: 0 0 12px;
    max-width: 90ch;
}
.case-years {
    color: #fb923c;
    font-weight: 700;
    margin: 12px 0;
}
.case-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.case-bullets li {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #3f291f;
    background: #141010;
    border-radius: 12px;
}

/* Servicii cards grid (parent page) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.service-card {
    display: grid;
    grid-template-rows: 180px 1fr;
    border: 1px solid #3a251b;
    background: #120f0e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(0,0,0,.35);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    color: inherit;
}
.service-card:hover {
    transform: translateY(-3px);
    border-color: #6f3f25;
    box-shadow: 0 22px 38px rgba(0,0,0,.45);
}
.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card-body {
    padding: 14px 14px 16px;
}
.service-card-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
}
.service-card-body p {
    margin: 0 0 12px;
    color: #e2c7b4;
}
.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fb923c;
    font-weight: 700;
}

@media (max-width: 900px) {
    .site-header {
        position: static;
        position: relative;
    }
    .hero-grid, .split, .cards, .pricing {
        grid-template-columns: 1fr;
    }
    .hero-collage {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 180px);
    }
    .hero-collage img:first-child {
        grid-row: auto;
    }
    .page-hero-grid {
        grid-template-columns: 1fr;
    }
    .page-hero-visual {
        justify-items: start;
    }
    .page-photo {
        width: 100%;
        aspect-ratio: 16 / 11;
    }
    .page-svg {
        right: -10px;
        bottom: -18px;
        width: 78%;
        opacity: 0.75;
    }
    .header-wrap {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .logo {
        width: auto;
        justify-content: flex-start;
    }
    .logo img,
    .logo .custom-logo-link img {
        height: clamp(54px, 10vw, 88px);
        max-width: min(520px, 70vw);
    }
    .nav-toggle {
        display: inline-flex;
        margin-left: 0;
    }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        width: 100%;
        background: rgba(12, 11, 12, 0.98);
        border-top: 1px solid #3a251b;
        padding: 12px 0 14px;
        z-index: 80;
        max-height: min(70vh, 520px);
        overflow: auto;
    }
    .site-header.nav-open .main-nav {
        display: block;
    }
    .menu-list {
        gap: 6px;
        flex-direction: column;
        padding: 0 4%;
    }
    .menu-list > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 12px;
        border-radius: 12px;
        border: 1px solid #3a251b;
        background: rgba(18, 15, 14, 0.65);
    }
    .menu-list > li > a {
        font-size: 15px;
    }
    .menu-list ul {
        position: static;
        display: none;
        margin-top: 6px;
        min-width: auto;
        padding: 8px 0 0;
        border: 0;
        box-shadow: none;
        list-style: none;
    }
    .menu-list li.open > ul {
        display: block;
    }
    .menu-list ul a {
        border: 1px solid #2c1f18;
        background: rgba(15, 13, 13, 0.75);
        margin-top: 8px;
        padding: 12px 12px;
        font-size: 12.5px;
        padding-left: 18px;
    }
    .menu-list li {
        font-size: 14px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .content-panel p {
        font-size: 16px;
    }
    .content-panel--servicii {
        padding: 22px;
    }
    .content-panel--servicii::before {
        max-width: 100%;
        width: 520px;
        opacity: 0.7;
    }
    .content-panel--servicii ul {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .gallery img:first-child {
        grid-column: auto;
        height: 220px;
    }
    .seo-pricing {
        grid-template-columns: 1fr;
    }
    .page-gallery {
        grid-template-columns: 1fr;
    }
    .page-gallery-item img {
        height: 200px;
    }
    .page-gallery-inline {
        grid-template-columns: 1fr;
    }
    .page-gallery-inline .page-gallery-item img {
        height: 200px;
    }
    .page-gallery-inline .page-gallery-item:first-child img {
        height: 220px;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-bullets {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        grid-template-rows: 200px 1fr;
    }
}
