/* RaresMar lite — fără build step */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&display=swap");

:root {
    --bg: #09090b;
    --bg2: #18181b;
    --line: #27272a;
    --text: #e4e4e7;
    --muted: #a1a1aa;
    --brand: #c9a227;
    --brand-dim: #9a7b1c;
    --danger: #f87171;
    --radius: 1rem;
    --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

a:hover {
    text-decoration: underline;
}

code {
    font-size: 0.9em;
    background: var(--bg2);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(8px);
}

.site-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
}

.site-logo__accent {
    color: var(--brand);
}

.site-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.site-nav a {
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--brand);
    text-decoration: none;
}

.site-nav__cta {
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    background: var(--brand);
    color: var(--bg) !important;
    font-weight: 600;
}

.site-nav__cta:hover {
    background: var(--brand-dim);
}

.site-nav__toggle {
    display: inline-flex;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

@media (min-width: 768px) {
    .site-nav__toggle {
        display: none;
    }

    .site-nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        padding: 0;
        border: 0;
        background: transparent;
    }
}

/* --- Layout --- */
.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.container--page {
    padding: 3rem 1rem 4rem;
}

.section {
    padding: 4rem 0;
}

.section--muted {
    background: rgba(24, 24, 27, 0.35);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section--dark {
    background: rgba(24, 24, 27, 0.5);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section__head {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.section__title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.section__sub {
    margin: 0.5rem 0 0;
    color: var(--muted);
    max-width: 36rem;
}

.link-arrow {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(201, 162, 39, 0.18), transparent 55%),
        var(--bg);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 4rem 1rem 5rem;
}

@media (min-width: 768px) {
    .hero__inner {
        padding: 7rem 1rem;
    }
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand);
    margin: 0;
}

.hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 1rem 0 0;
    max-width: 40rem;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
}

.hero__lead {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 36rem;
    margin: 1.5rem 0 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.btn--primary {
    background: var(--brand);
    color: var(--bg);
}

.btn--primary:hover {
    background: var(--brand-dim);
    text-decoration: none;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn--ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
    text-decoration: none;
}

.btn--block {
    width: 100%;
}

.btn--danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn--danger:hover {
    background: rgba(248, 113, 113, 0.12);
    text-decoration: none;
}

/* --- Grid & cards --- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--2 {
    grid-template-columns: 1fr;
}

.grid--3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(24, 24, 27, 0.45);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: #3f3f46;
}

.card--large {
    padding: 2rem;
}

.card--media {
    padding: 0;
    overflow: hidden;
}

.card--media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.card__cap {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

.card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.card__text {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0.5rem 0 0;
}

.card__text--pre {
    white-space: pre-wrap;
}

.card__price {
    margin-top: 1.5rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--brand);
}

.card__price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
}

.card__price--lg {
    font-size: 2.25rem;
    margin-top: 2rem;
}

.card--package {
    display: flex;
    flex-direction: column;
}

/* --- Masonry gallery --- */
.masonry {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry {
        column-count: 3;
    }
}

.masonry__item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg2);
}

.masonry__item img {
    width: 100%;
    display: block;
    vertical-align: middle;
}

.masonry__item figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--muted);
}

/* --- Page --- */
.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.page-lead {
    color: var(--muted);
    margin: 0.75rem 0 0;
    max-width: 40rem;
}

.muted {
    color: var(--muted);
}

/* --- Contact --- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.contact-list li {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.contact-list span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.contact-list__block {
    color: var(--muted) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* --- Footer --- */
.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--line);
    background: rgba(24, 24, 27, 0.35);
    padding: 3rem 0 2rem;
}

.site-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

.site-footer__title {
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.site-footer__text {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0.75rem 0 0;
    line-height: 1.6;
}

.site-footer__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #71717a;
    margin: 0;
}

.site-footer__line {
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

.site-footer__line a {
    color: var(--text);
}

.site-footer__muted {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.site-footer__social a {
    color: var(--muted);
    font-size: 0.875rem;
}

.site-footer__social a:hover {
    color: var(--brand);
}

.site-footer__copy {
    text-align: center;
    font-size: 0.75rem;
    color: #52525b;
    margin: 2.5rem 1rem 0;
}

/* ========== Admin ========== */
.admin-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
}

.admin-body--login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-top {
    border-bottom: 1px solid var(--line);
    background: var(--bg2);
}

.admin-nav {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-nav a {
    color: var(--muted);
}

.admin-nav a:hover {
    color: var(--brand);
}

.admin-nav__out {
    margin-left: auto;
    color: var(--danger) !important;
}

.admin-wrap {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.admin-h1 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
    color: #fff;
}

.admin-h2 {
    font-size: 1.125rem;
    margin: 2rem 0 1rem;
    color: #fff;
}

.admin-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid var(--danger);
    color: #fecaca;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0 0 1rem;
}

.admin-ok {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid #4ade80;
    color: #bbf7d0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0 0 1rem;
}

.admin-tiles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.admin-tile {
    display: block;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg2);
    text-decoration: none;
    color: inherit;
}

.admin-tile:hover {
    border-color: var(--brand);
    text-decoration: none;
}

.admin-tile strong {
    display: block;
    color: #fff;
    margin-bottom: 0.25rem;
}

.admin-tile span {
    font-size: 0.875rem;
    color: var(--muted);
}

.admin-form,
.admin-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg2);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.admin-card--grow {
    flex: 1;
    margin-bottom: 0;
}

.fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0 0 1.25rem;
}

.fieldset legend {
    padding: 0 0.5rem;
    font-weight: 600;
    color: #fff;
}

.label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1rem;
}

.input {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9375rem;
}

.input--area {
    min-height: 5rem;
    resize: vertical;
}

.check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin: 0.5rem 0 1rem;
    cursor: pointer;
}

.admin-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.admin-row {
    margin-top: 0.5rem;
}

.admin-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-danger {
    margin: -0.5rem 0 1rem;
}

.admin-danger--inline {
    margin: 0;
    align-self: flex-start;
}

.admin-media-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--bg2);
}

@media (min-width: 768px) {
    .admin-media-row {
        flex-direction: row;
        align-items: flex-start;
    }
}

.admin-media-thumb {
    flex-shrink: 0;
}

.admin-media-thumb img {
    border-radius: 0.5rem;
    object-fit: cover;
    max-width: 160px;
    height: auto;
}

/* Login card */
.login-card {
    width: 100%;
    max-width: 22rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg2);
    padding: 2rem;
}

.login-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #fff;
}

.login-card__hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-card__foot {
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
}

.login-card__foot a {
    color: var(--muted);
}
