/* ==========================================================================
   MARELE ELECTRICIAN — tema "Înaltă Tensiune"
   Industrial întunecat + galben McLaren.
   Nuanța galbenă se schimbă dintr-un singur loc: --me-yellow.
   ========================================================================== */

:root {
    --me-yellow: #FFCE00;
    /* Galben McLaren — ajustează doar aici */
    --me-yellow-press: #E0B500;
    --bg: #141417;
    --panel: #1D1D22;
    --panel-2: #232329;
    --line: #2C2C33;
    --ink: #F2F1EC;
    --muted: #A5A5AF;
    --font-display: 'Oswald', 'Bahnschrift', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Outfit', 'Segoe UI', sans-serif;
    --font-mono: 'Cascadia Mono', Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--ink);
    width: 100%;
}

/* ==========================================================================
   Header + navigație
   ========================================================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    margin: 0;
    flex-wrap: wrap;
    background: rgba(20, 20, 23, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    top: 0;
    position: sticky;
    z-index: 100;
}

.logo img {
    height: 60px;
    padding: 4px;
    display: block;
    /* logo-ul e gri închis — îl inversăm pentru fundal întunecat */
    filter: invert(1) brightness(1.15);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

nav ul li a {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

nav ul li a:hover {
    color: var(--me-yellow);
    background: var(--panel);
}

nav ul li a.nav-tel {
    background: var(--me-yellow);
    color: #141417;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
}

nav ul li a.nav-tel:hover {
    background: var(--me-yellow-press);
    color: #141417;
}

/* Hamburger — vizibil doar pe mobil */
.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 1.3rem;
    padding: 8px 12px;
    cursor: pointer;
}

.hamburger:hover {
    background: var(--panel);
    color: var(--me-yellow);
}

/* Buton fix de apel — doar pe mobil */
.call-fab {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 200;
    background: var(--me-yellow);
    color: #141417;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Tipografie
   ========================================================================== */

h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--ink);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 10px;
}

h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: var(--me-yellow);
    margin: 10px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: center;
}

p {
    font-size: 1rem;
    line-height: 1.8;
}

a {
    color: var(--me-yellow);
    text-decoration: none;
}

a:hover {
    color: #FFE159;
}

/* Iconuri SVG inline (icons.svg) — moștenesc culoarea textului */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    color: inherit;
}

strong {
    color: var(--ink);
}

mark {
    background: var(--me-yellow);
    color: #141417;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Secțiuni generice
   ========================================================================== */

section,
article {
    padding: 28px 16px 8px;
    text-align: center;
    max-width: 1150px;
    margin: 0 auto;
}

section p,
article p {
    color: var(--muted);
}

section p strong,
article p strong {
    color: var(--ink);
}

img {
    max-height: 500px;
    width: auto;
    max-width: 100%;
}

hr.rounded {
    border: none;
    border-top: 2px solid var(--line);
    border-radius: 5px;
    max-width: 1150px;
    margin: 30px auto;
}

/* Banda de avertizare — element de identitate */
.hazard {
    height: 8px;
    background: repeating-linear-gradient(-45deg,
            var(--me-yellow) 0 16px,
            #141417 16px 32px);
    border: none;
    margin: 0;
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */

.hero {
    position: relative;
    max-width: none;
    padding: 0;
    text-align: left;
    background:
        linear-gradient(100deg, rgba(15, 15, 18, 0.94) 35%, rgba(15, 15, 18, 0.55)),
        url('/Images/Servicii/Impamantare/Proces 1.webp') center 35% / cover no-repeat;
    border-bottom: 8px solid transparent;
    border-image: repeating-linear-gradient(-45deg,
            var(--me-yellow) 0 16px,
            #141417 16px 32px) 8;
}

.hero-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 84px 24px 72px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--me-yellow);
    margin: 0 0 14px;
}

.hero h1 {
    margin: 0 0 14px;
    /* liniile sunt controlate explicit cu <br> în index.html */
}

.hero h1 b {
    color: var(--me-yellow);
}

.hero p {
    color: #C5C5CD;
    max-width: 54ch;
    margin: 0 0 26px;
    font-size: 1.05rem;
}

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

.trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.trust-chips li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #D6D6DD;
    border: 1px solid #3A3A42;
    border-radius: 99px;
    padding: 6px 14px;
    background: rgba(20, 20, 23, 0.6);
}

.trust-chips li .icon {
    color: var(--me-yellow);
    margin-right: 6px;
}

/* ==========================================================================
   Butoane
   ========================================================================== */

button,
.cta-btn {
    display: inline-block;
    background-color: var(--me-yellow);
    color: #141417;
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

button:hover,
.cta-btn:hover {
    background-color: var(--me-yellow-press);
    color: #141417;
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    border: 1px solid #3A3A42;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
    border-color: var(--me-yellow);
    color: var(--me-yellow);
}

/* ==========================================================================
   Carduri servicii
   ========================================================================== */

.card-grid,
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 24px;
    text-align: left;
}

/* varianta cu maximum 3 coloane (pagina Servicii) */
.image-grid-3col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* secțiunile cu 4 elemente de pe homepage: 2x2 pe tabletă, nu 3+1 */
@media (min-width: 640px) and (max-width: 1099px) {
    #services .image-grid,
    #why-choose-us ul,
    #process ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

.image-item {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.image-item:hover {
    border-color: var(--me-yellow);
    transform: translateY(-3px);
}

.image-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    padding: 0;
}

.image-item h2 {
    margin: 16px 0 8px;
    font-size: 1.15rem;
    text-align: left;
}

.image-item h2::after {
    margin: 8px 0 0;
    width: 40px;
    height: 3px;
}

.image-item p {
    color: var(--muted);
    margin: 0 0 16px;
    font-size: 0.92rem;
    flex: 1;
}

.image-item .button {
    align-self: flex-start;
    background: transparent;
    color: var(--me-yellow);
    font-weight: 700;
    padding: 0;
    border: none;
    font-size: 0.95rem;
}

.image-item .button:hover {
    color: #FFE159;
}

/* ==========================================================================
   Liste pe homepage (de ce noi / proces)
   ========================================================================== */

#services ul,
#why-choose-us ul,
#process ul,
#promo ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 20px;
    text-align: left;
}

#services ul li,
#why-choose-us ul li,
#process ul li,
#promo ul li {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

#why-choose-us ul li .icon,
#process ul li .icon {
    color: var(--me-yellow);
}

.step-no {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--me-yellow);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

/* ==========================================================================
   Întrebări frecvente (FAQ)
   ========================================================================== */

.faq-list {
    max-width: 820px;
    margin: 20px auto 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

details.faq {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

details.faq[open] {
    border-color: var(--me-yellow);
}

details.faq summary {
    cursor: pointer;
    padding: 16px 44px 16px 18px;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    position: relative;
}

details.faq summary::-webkit-details-marker {
    display: none;
}

details.faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--me-yellow);
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1;
}

details.faq[open] summary::after {
    content: "\2013";
}

details.faq p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--muted);
}

/* ==========================================================================
   Banda CTA galbenă
   ========================================================================== */

.cta-band {
    max-width: none;
    background: var(--me-yellow);
    color: #141417;
    padding: 26px 24px;
    margin-top: 40px;
}

.cta-band-inner {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta-band b {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.cta-band .cta-btn {
    background: #141417;
    color: var(--me-yellow);
}

.cta-band .cta-btn:hover {
    background: #26262C;
}

@media (max-width: 760px) {
    .cta-band-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   Formulare
   ========================================================================== */

form {
    max-width: 620px;
    margin: auto;
    text-align: left;
}

form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: left;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--me-yellow);
}

input::placeholder,
textarea::placeholder {
    color: #6E6E78;
}

/* date picker & select pe fundal închis */
input[type="date"] {
    color-scheme: dark;
}

select {
    color-scheme: dark;
}

form .cta-btn {
    margin-top: 20px;
    width: 100%;
}

/* Mesajul afișat sub formular după trimitere */
.form-result {
    display: none;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-result.pending {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
}

.form-result.success {
    display: block;
    background: rgba(80, 170, 95, 0.12);
    border: 1px solid #2F6B3A;
    color: #8FD69B;
}

.form-result.error {
    display: block;
    background: rgba(229, 72, 77, 0.12);
    border: 1px solid #7A3336;
    color: #F0989B;
}

.invalid-feedback,
.empty-feedback {
    display: none;
}

.was-validated :placeholder-shown:invalid~.empty-feedback {
    display: block;
}

.was-validated :not(:placeholder-shown):invalid~.invalid-feedback {
    display: block;
}

.is-invalid,
.was-validated :invalid {
    border-color: #E5484D;
}

/* ==========================================================================
   Tabele de prețuri + acordeon
   ========================================================================== */

.collapsible {
    background-color: var(--panel);
    color: var(--ink);
    cursor: pointer;
    padding: 18px 22px;
    width: 100%;
    max-width: 1150px;
    display: block;
    margin: 10px auto 0;
    border: 1px solid var(--line);
    border-left: 4px solid var(--me-yellow);
    border-radius: 10px;
    text-align: left;
    outline: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.collapsible .icon {
    color: var(--me-yellow);
    float: right;
    transition: transform 0.2s ease;
}

.collapsible.active .icon {
    transform: rotate(180deg);
}

.collapsible:hover,
.collapsible.active {
    background-color: var(--panel-2);
    color: var(--ink);
    transform: none;
}

.price-panel {
    display: none;
    max-width: 1150px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 900px;
    font-size: 0.95rem;
}

th,
td {
    border: 1px solid var(--line);
    text-align: left;
    padding: 4px 14px;
}

td p {
    margin: 8px 0;
    line-height: 1.5;
    color: var(--muted);
}

td p strong {
    color: var(--ink);
}

tr:first-child {
    background: var(--panel);
}

tr:first-child p {
    color: var(--me-yellow);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

td:last-child p {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Pagini de serviciu / conținut
   ========================================================================== */

.back-link {
    padding: 14px 24px;
    background: transparent;
    font-size: 0.9rem;
    text-align: left;
}

.service {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 28px;
    text-align: left;
}

.service p,
.service ul li {
    font-size: 1rem;
    color: var(--muted);
}

.privacy {
    padding: 0 18px;
    text-align: left;
}

.privacy h2 {
    font-size: 1.2rem;
}

.privacy h2::after {
    margin-left: 0;
}

.privacy p,
.privacy ul li {
    font-size: 0.95rem;
    color: var(--muted);
}

.offer-box {
    background: var(--panel);
    border: 1px solid var(--me-yellow);
    border-radius: 12px;
    padding: 10px 20px;
    margin: 20px auto;
    max-width: 700px;
}

/* Galerie foto orizontală */
div.scroll-container {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: auto;
    white-space: nowrap;
    padding: 12px;
}

div.scroll-container img {
    padding: 4px;
    max-width: 100%;
    height: 220px;
    width: auto;
    border-radius: 8px;
}

/* Lightbox galerie foto */
.lb-thumb {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.lb-thumb:hover,
.lb-thumb:focus-visible {
    opacity: 0.85;
    outline: 2px solid var(--me-yellow);
    outline-offset: 2px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, 0.93);
    backdrop-filter: blur(3px);
}

.lightbox.open {
    display: flex;
}

.lb-img {
    max-width: min(90vw, 1100px);
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lb-btn {
    position: absolute;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lb-btn:hover,
.lb-btn:focus-visible {
    background: var(--me-yellow);
    color: #141417;
    transform: none;
}

.lb-close {
    top: 18px;
    right: 18px;
}

.lb-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-prev:hover,
.lb-prev:focus-visible,
.lb-next:hover,
.lb-next:focus-visible {
    transform: translateY(-50%);
}

.lb-caption {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #C9C9D0;
    background: rgba(20, 20, 23, 0.75);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 6px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .lb-btn {
        width: 42px;
        height: 42px;
    }

    .lb-img {
        max-width: 96vw;
        max-height: 74vh;
    }
}

/* Coloane pagina contact */
.two-column-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 16px;
}

.column {
    flex: 1;
    min-width: 280px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: left;
}

.column h2 {
    text-align: left;
}

.column h2::after {
    margin-left: 0;
}

.column .icon {
    color: var(--me-yellow);
}

/* Pagini de eroare / confirmare */
#error-page {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent;
    max-width: none;
}

.error-content {
    max-width: 600px;
    padding: 5px;
}

.error-content h1 {
    font-size: 2rem;
    color: var(--me-yellow);
}

.error-content p {
    font-size: 1.1rem;
    color: var(--muted);
}

/* Harta Google */
iframe {
    border-radius: 12px;
    border: 1px solid var(--line);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    text-align: center;
    padding: 30px 16px 16px;
    margin-top: 48px;
    color: var(--muted);
    background: #0F0F12;
    border-top: 1px solid var(--line);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0;
    gap: 16px;
}

.footer-column {
    flex: 1;
    padding: 10px;
    text-align: left;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--me-yellow);
}

.footer-column p {
    margin: 0 0 6px;
    font-size: 0.9rem;
}

.footer-column .icon {
    color: var(--me-yellow);
    margin-right: 6px;
}

.footer-column a {
    color: var(--ink);
}

.footer-column a:hover {
    color: var(--me-yellow);
    text-decoration: underline;
}

.footer-column img {
    filter: brightness(0.95);
    border-radius: 4px;
}

footer hr.rounded {
    margin: 20px auto 14px;
}

footer>p {
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 10px 0;
        gap: 2px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li a {
        display: block;
        text-align: center;
        padding: 12px;
    }

    nav ul li a.nav-tel {
        margin: 8px 0 0;
    }

    .call-fab {
        display: block;
    }

    body {
        /* loc pentru butonul fix de apel */
        padding-bottom: 76px;
    }

    .hero-inner {
        padding: 56px 20px 48px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        text-align: center;
        padding: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
