@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&family=Teko:wght@400;500;600;700&display=swap');

:root {
    --brand-accent: #9D9F70;
    --brand-accent-rgb: 157, 159, 112;
    --brand-dark: #000000;
}

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

body {
    font-family: "Rubik", sans-serif;
    background: #fff;
    color: var(--brand-dark);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
}

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

/* =========================
   HEADER
========================= */
.header-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
}

.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-brand img {
    max-height: 52px;
    width: auto;
}

.mainmenu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-list li a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.nav-list li a:hover {
    color: var(--brand-accent);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

/* =========================
   HERO
========================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('/images/grupoare.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 140px 0 90px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-wrap {
    min-height: calc(100vh - 230px);
}

.hero-content {
    color: #fff;
}

.hero-content .sub-heading {
    font-family: "Teko", sans-serif;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-content .sub-heading::before {
    content: "";
    width: 3px;
    height: 32px;
    background: var(--brand-accent);
    display: inline-block;
}

.hero-content .heading {
    font-family: "Teko", sans-serif;
    font-size: 110px;
    line-height: 0.9;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 22px;
}

.hero-content .desc {
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
    max-width: 650px;
    margin-bottom: 35px;
}

.default-btn {
    display: inline-block;
    background: var(--brand-accent);
    color: #fff;
    font-family: "Teko", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    padding: 16px 38px 14px;
    transition: 0.3s ease;
}

.default-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--brand-accent-rgb), 0.35);
}

/* =========================
   VENTAS
========================= */
.ventas-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(var(--brand-accent-rgb), 0.12) 0%, #ffffff 100%);
}

.venta-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--brand-accent-rgb), 0.25);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
}

.venta-card__image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.venta-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venta-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.venta-card__badge--available {
    background: #d4edda;
    color: #155724;
}

.venta-card__badge--reserved {
    background: #fff3cd;
    color: #856404;
}

.venta-card__badge--sold {
    background: #f8d7da;
    color: #721c24;
}

.venta-card__code {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-accent, #c99820);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.venta-card__body {
    padding: 24px;
}

.venta-card__name {
    font-family: "Teko", sans-serif;
    font-size: 36px;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--brand-dark);
}

.venta-card__details {
    margin-bottom: 20px;
}

.venta-card__details li {
    font-size: 15px;
    color: #4e556f;
    line-height: 1.6;
    margin-bottom: 8px;
}

.venta-card__details li span {
    font-weight: 700;
    color: var(--brand-dark);
}

.venta-card__btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.venta-card__desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
    font-style: italic;
}

/* ── Card actions: WhatsApp + eye ── */
.venta-card__actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.venta-card__wa {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    border: none;
    transition: transform .25s, box-shadow .25s, filter .25s;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .30);
}

.venta-card__wa i {
    font-size: 18px;
}

.venta-card__wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(37, 211, 102, .40);
    filter: brightness(1.06);
    color: #fff;
}

.venta-card__eye {
    width: 48px;
    min-width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    color: #374151;
    font-size: 16px;
    cursor: pointer;
    transition: all .25s ease;
}

.venta-card__eye:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .22);
}

/* ==========================================================
   SALE DETAIL MODAL  ·  Premium two-column layout
========================================================== */
.sd-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 12, 18, .62);
    backdrop-filter: blur(14px) saturate(1.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.sd-modal {
    position: relative;
    width: 100%;
    max-width: 1080px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.08),
        0 30px 80px rgba(0, 0, 0, .35),
        0 2px 8px rgba(0, 0, 0, .12);
    animation: sdIn .35s cubic-bezier(.22, .61, .36, 1);
}

@keyframes sdIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.sd-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.sd-close:hover {
    background: rgba(0, 0, 0, .7);
    border-color: rgba(255, 255, 255, .45);
    transform: rotate(90deg);
}

/* Left → Right main layout */
.sd-layout {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 520px;
}

/* ── Left: Photo ── */
.sd-photo {
    position: relative;
    background: #0a0e14;
    overflow: hidden;
}

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

.sd-photo__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 20, 0) 40%,
        rgba(10, 14, 20, .5) 100%
    );
    pointer-events: none;
}

.sd-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.sd-badge--available {
    background: rgba(212, 237, 218, .92);
    color: #155724;
    box-shadow: 0 2px 8px rgba(21, 87, 36, .12);
}

.sd-badge--reserved {
    background: rgba(255, 243, 205, .92);
    color: #856404;
    box-shadow: 0 2px 8px rgba(133, 100, 4, .12);
}

.sd-badge--sold {
    background: rgba(248, 215, 218, .92);
    color: #721c24;
    box-shadow: 0 2px 8px rgba(114, 28, 36, .12);
}

/* ── Right: Info panel ── */
.sd-info {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 24px 0;
}

.sd-info__header {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.sd-info__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand-accent, #9D9F70);
    background: rgba(var(--brand-accent-rgb), .10);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.sd-info__code {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    color: #0f172a;
}

/* Two-column data grid */
.sd-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.sd-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Sections */
.sd-info__section {
    margin-bottom: 16px;
}

.sd-info__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #64748b;
}

.sd-info__section-title i {
    font-size: 13px;
    color: var(--brand-accent, #9D9F70);
}

/* Data rows */
.sd-data {
    border: 1px solid #f1f3f5;
    border-radius: 12px;
    overflow: hidden;
}

.sd-data__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    transition: background .15s;
}

.sd-data__row:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

.sd-data__row:hover {
    background: #fafbfc;
}

.sd-data__label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.sd-data__value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-align: right;
}

/* Footer */
.sd-footer {
    margin-top: auto;
    padding: 16px 24px 20px;
    margin-left: -24px;
    margin-right: -24px;
    background: linear-gradient(135deg, #f8fdf9 0%, #f0f9f3 100%);
    border-top: 1px solid #e2eee6;
    display: flex;
    align-items: center;
    gap: 18px;
}

.sd-footer__price-wrap {
    flex-shrink: 0;
}

.sd-footer__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #6b7280;
    margin-bottom: 2px;
}

.sd-footer__price {
    font-size: 28px;
    font-weight: 800;
    color: #166534;
    letter-spacing: -.5px;
    line-height: 1.1;
}

.sd-footer__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, filter .25s;
    box-shadow: 0 4px 18px rgba(37, 211, 102, .28);
}

.sd-footer__cta i {
    font-size: 19px;
}

.sd-footer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, .42);
    filter: brightness(1.05);
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sd-modal {
        max-width: 100%;
        border-radius: 18px;
        max-height: 94vh;
    }

    .sd-layout {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .sd-photo {
        height: 220px;
    }

    .sd-info {
        padding: 18px 16px 0;
    }

    .sd-info__code {
        font-size: 30px;
    }

    .sd-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sd-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px 18px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .sd-footer__price-wrap {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .sd-footer__price {
        font-size: 24px;
    }

    .venta-card__actions {
        gap: 8px;
    }

    .venta-card__eye {
        width: 46px;
        min-width: 46px;
        height: 46px;
    }
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: linear-gradient(160deg, #000000 0%, #0d0d0d 55%, #1c1c15 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 70px 0 28px;
}

.footer-brand,
.footer-links,
.footer-contact {
    height: 100%;
}

.footer-logo {
    max-height: 56px;
    margin-bottom: 18px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: "Teko", sans-serif;
    font-size: 30px;
    letter-spacing: 0.3px;
    color: #fff;
    margin-bottom: 16px;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-social a:hover {
    color: var(--brand-accent);
}

.footer-contact p {
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px) {
    .menu-toggle {
        display: block;
    }

    .mainmenu {
        display: none;
        position: absolute;
        top: 100%;
        right: 12px;
        width: calc(100% - 24px);
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .mainmenu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        display: block;
        width: 100%;
        color: var(--brand-dark);
        padding: 16px 20px;
        border-bottom: 1px solid #f1f1f1;
    }

    .hero-section {
        min-height: auto;
        padding: 150px 0 90px;
    }

    .hero-wrap {
        min-height: auto;
    }

    .hero-content .heading {
        font-size: 72px;
    }

    .hero-content .desc {
        max-width: 100%;
    }

    .ventas-section {
        padding: 90px 0;
    }

    .site-footer {
        padding: 56px 0 24px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links,
    .footer-contact {
        margin-top: 8px;
    }
}

@media (max-width: 767.98px) {
    .header-section {
        padding: 14px 0;
    }

    .navbar-brand img {
        max-height: 44px;
    }

    .hero-section {
        padding: 130px 0 70px;
        background-position: center center;
    }

    .hero-content .sub-heading {
        font-size: 22px;
        gap: 12px;
        margin-bottom: 12px;
    }

    .hero-content .sub-heading::before {
        height: 24px;
    }

    .hero-content .heading {
        font-size: 48px;
        line-height: 0.95;
        margin-bottom: 16px;
    }

    .hero-content .desc {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 28px;
    }

    .default-btn {
        font-size: 18px;
        padding: 14px 30px 12px;
    }

    .venta-card__name {
        font-size: 32px;
    }

    .venta-card__body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content .heading {
        font-size: 40px;
    }

    .hero-content .sub-heading {
        font-size: 20px;
    }

    .hero-content .desc {
        font-size: 14px;
    }
}
