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

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* ==============================
   RESET MINIM
============================== */

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.site-header {
    font-family: Arial, sans-serif;
}

/* ─── TOP BAR ───────────────── */

.top-bar {
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
}

.top-bar .contact-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.top-bar .contact-info a {
    color: #e5e7eb;
}

.top-bar .contact-info a:hover {
    color: #fff;
}

/* ─── MAIN NAV ───────────────── */

.main-nav {
    background: #2563eb;
    color: #fff;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.main-nav .logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    margin-left: 50px;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding-right: 15px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    padding: 6px 10px;
    transition: background .2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.nav-links:last-child {
    margin-right: 50px;
}

/* ==============================
   RESPONSIVE (MOBILE + TABLET)
============================== */

@media (max-width: 768px) {

    .top-bar .contact-info {
        flex-direction: column;
        gap: 6px;
        font-size: 13px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        background: #2563eb;
        position: absolute;
        left: 0;
        top: 100%;
        padding: 12px 0;
        display: none;
        /* ascuns în mod normal */
    }

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

    .nav-links a {
        padding: 10px 20px;
    }

    .main-nav .logo {
        margin-left: 15px;
    }
}

@media (max-width: 1024px) {
    .main-nav .container {
        padding: 10px 0;
    }
}

/* scroll sticky*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.hero {
    position: relative;
    /* min-height: 70vh; */
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg,
            #064e3b 0%,
            #0f766e 40%,
            #1e40af 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 1920px;

    background-image: url("../images/hero-solar-4k.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
    pointer-events: none;

    filter: brightness(0.90) contrast(1.5);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.55));
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 20px;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: #f8fafc;
}

.hero h1 span {
    color: #22c55e;
    /* green energy */
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #d1d5db;
}

/* BUTTON */
.hero .btn-primary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    background: #22c55e;
    color: #052e16;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;

    transition: transform .2s ease, box-shadow .2s ease;
}

.hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, .35);
}

/* =====================
   TABLET & MOBILE
===================== */

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero-inner h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }
}


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

.projects-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* =====================
   CARD
===================== */

.project-card {
    background: #ffffff;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    overflow: hidden;

    transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .15);
}

/* =====================
   TOP (IMAGE + CAPACITY)
===================== */

.card-top {
    position: relative;
    height: 200px;
    background: #e5e7eb;
}

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

/* badge capacitate */
.capacity-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    /* background: linear-gradient(135deg, #22c55a, #22c55e); */
    background: #22c55e;
    color: #052e16;

    padding: 8px 14px;
    border-radius: 12px;

    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, .4);
}

/* =====================
   BODY
===================== */

.card-body {
    padding: 18px 20px 22px;
}

/* PREȚ */
.price {
    font-size: 18px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 8px;
}

/* TITLU (ellipsis) */
.title {
    font-size: 15px;
    line-height: 1.4;
    color: #1f2937;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

    .card-top {
        height: 180px;
    }
}

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

.site-footer {
    background: linear-gradient(180deg,
            #020617 0%,
            #020617 100%);
    color: #cbd5f5;
    margin-top: 0px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* coloane */
.footer-col h3,
.footer-col h4 {
    color: #f8fafc;
    margin-bottom: 14px;
}

.footer-col h3 {
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5f5;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-col a:hover {
    color: #22c55e;
    /* accent green */
}

/* bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 18px 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: inherit;
    /* moștenește culoarea textului */
    text-decoration: underline;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #16a34a;
    /* verde eco, similar hover butoane */
}

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

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        display: inline-block;
    }
}

/* overlay - VANDUT */
.project-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* OVERLAY VÂNDUT */
.sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sold-overlay span {
    /* background: rgba(255,255,255,0.95); */
    background: #22c55e !important;
    color: #052e16;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 10px 22px;
    border-radius: 999px;
}

/* =====================
   PAGE CONTAINER
===================== */

.project-details-page {
    padding: 40px 0 60px;
}

.project-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   TOP ROW
===================== */

.project-top {
    display: flex;
    gap: 50px;
    align-items: stretch;
    margin-bottom: 40px;
}

/* imagine */
.project-image-wrapper {
    position: relative;
    flex: 1;
    border-radius: 18px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* overlay vândut */
.sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sold-overlay span {
    background: #ffffff;
    color: #111827;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 12px 28px;
    border-radius: 999px;
}

/* =====================
   MAP
===================== */

.project-map {
    width: 420px;
    border-radius: 18px;
    overflow: hidden;
}

.project-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

/* =====================
   DESCRIPTION
===================== */

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* =====================
   META INFO
===================== */

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 25px;
}

/* meta info responsive on mobile */
@media (max-width: 768px) {
    .project-meta {
        display: flex;
        flex-direction: column;
        gap: 15px;
        /* mai mic ca să fie mai compact pe mobil */
    }
}

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

.project-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* font-size: 1rem;
    font-weight: 600; */
}

.project-contact .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;

    transition: color 0.2s ease;
}

.project-contact .contact-link:hover {
    color: #2563eb;
}

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

@media (max-width: 900px) {
    .project-top {
        flex-direction: column;
        gap: 30px;
    }

    .project-map,
    .project-image {
        height: 320px;
    }
}

/* breakpoint pentru mobile */
@media only screen and (max-width: 768px) {
    .project-map {
        width: 100%;
        /* își ocupă tot spațiul disponibil */
        height: 240px;
        /* mai mică, nu deformează */
        margin: 0px 0px 20px 0px;
        /* centrează dacă ai indentare */
    }

    .project-image {
        width: 100%;
        height: auto;
        /* păstrează proporțiile */
    }
}

/* =====================
   MOBILE REORDER
===================== */

@media (max-width: 900px) {

    .project-top {
        display: contents;
        /* 🔑 sparge layout-ul flex */
    }

    .project-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }

    .project-description {
        order: 2;
    }

    .project-meta {
        order: 3;
    }

    .project-contact {
        order: 4;
        margin-bottom: 30px;
    }

    .project-map {
        order: 5;
        margin-top: 40px;
    }
}

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

.contact-page {
    padding: 60px 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info a {
    text-decoration: none;
    font-weight: 600;
    color: #2563eb;
}

/* =====================
   FORM CONTAINER
===================== */

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    padding: 12px 30px;
    border-radius: 999px;
    border: none;
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.contact-form button:hover {
    opacity: 0.9;
}

/* =====================
   MESSAGES
===================== */

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .contact-form button {
        width: 100%;
    }
}

/* =====================
   HONEYPOT
===================== */

.hp-field {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

/* captcha */
.captcha-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.captcha-row label {
    font-weight: 600;
    white-space: nowrap;
}

.captcha-row input {
    max-width: 180px;
    /* să nu fie prea lat */
}

@media (max-width: 480px) {
    .captcha-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .captcha-row input {
        max-width: 100%;
    }
}

/* =======================
   PAGINA GDPR / POLITICI
======================= */

.gdpr-page .container {
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 20px;
}

/* =======================
   PAGINA LEGISLATIE
======================= */

.legislation-page .legislation-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* link hover GREEN (consistent cu butoanele) */
.legislation-page a {
    color: #2563eb;
    /* culoarea normală (albastru butoane) */
    text-decoration: underline;
    transition: color .2s ease;
}

.legislation-page a:hover {
    color: #16a34a;
    /* GREEN hover */
}

/* =======================
   PAGINA STIRI
======================= */

.news-page {
    padding: 60px 20px;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.news-header p {
    max-width: 760px;
    margin: 0 auto;
    color: #4b5563;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.news-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111827;
}

.news-preview,
.news-full {
    color: #374151;
}

.news-preview p,
.news-full p {
    margin-bottom: 12px;
}

.news-full {
    display: none;
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
}

.news-card.is-open .news-full {
    display: block;
}

.news-card.is-open .news-preview {
    display: none;
}

.news-card.is-open .news-toggle {
    display: none;
}

.news-actions {
    margin-top: 16px;
}

.news-toggle,
.news-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.news-toggle:hover,
.news-collapse:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.news-empty {
    max-width: 700px;
    margin: 0 auto;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .news-card {
        padding: 20px;
    }

    .news-toggle,
    .news-collapse {
        width: 100%;
    }
}

/* optional — mai mare spacing între secțiuni */
.legislation-page h2 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.legislation-page p,
.legislation-page ul {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 1rem;
}

/* whatsapp */
.project-contact .contact-link.whatsapp {
    color: #25D366;
    /* culoarea oficială WhatsApp */
    font-weight: 600;
}

.project-contact .contact-link.whatsapp:hover {
    color: #128c7e;
}

.contact-link.whatsapp {
    color: #25D366;
    /* verde WhatsApp */
    font-weight: 600;
}

.contact-link.whatsapp:hover {
    color: #128c7e;
}
