:root {
    --black: #050505;
    --ink: #0b0907;
    --panel: #14110d;
    --panel-soft: #1b1712;
    --line: rgba(232, 179, 65, .28);
    --gold: #f0b642;
    --gold-soft: #f6d98c;
    --text: #f7f1e6;
    --muted: #c8bca8;
    --muted-2: #8f826e;
    --danger: #ffb4a8;
    --success: #c9f5c7;
    --radius: 8px;
    --shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body::selection {
    background: var(--gold);
    color: #080604;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header,
.admin-topbar {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(20px, calc((100vw - 1120px) / 2));
    background: rgba(6, 5, 4, .78);
    border-bottom: 1px solid rgba(240, 182, 66, .18);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    background: rgba(6, 5, 4, .94);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.brand strong {
    display: block;
    color: var(--gold-soft);
    font-size: 16px;
    text-transform: uppercase;
}

.brand small {
    display: block;
    color: var(--text);
    font-size: 11px;
    text-transform: uppercase;
}

.main-nav,
.admin-topbar nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--text);
    font-size: 14px;
}

.main-nav a,
.admin-topbar nav a {
    color: rgba(247, 241, 230, .88);
}

.main-nav a:hover,
.admin-topbar nav a:hover {
    color: var(--gold);
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold-soft);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover,
.nav-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(240, 182, 66, .78);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #f5c04d, #d99a24);
    color: #100b05;
    font-weight: 700;
}

.btn-outline {
    background: rgba(12, 10, 8, .52);
}

.btn-small {
    min-height: 34px;
    padding: 0 14px;
    font-size: 12px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--gold);
}

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .76) 43%, rgba(5, 5, 5, .54) 100%),
        url("../images/hero-building.svg") center right / cover no-repeat;
}

.hero-inner {
    position: relative;
    padding-top: 76px;
}

.eyebrow,
.section-kicker,
.meta {
    color: var(--gold);
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow {
    display: inline-flex;
    max-width: 100%;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 6, 4, .58);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
.login-card h1,
.admin-title h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: .98;
}

h1 {
    max-width: 760px;
    margin: 34px 0 28px;
    font-size: clamp(48px, 8vw, 92px);
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(36px, 5vw, 56px);
}

h1 span,
h2 span {
    color: var(--gold-soft);
}

h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.2;
}

.hero-copy,
.section-head p,
.split p,
.contact-grid p,
.cta-panel p {
    max-width: 710px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

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

.section {
    padding: 110px 0;
}

.section-muted {
    background: linear-gradient(180deg, #080705, #120e09);
    border-block: 1px solid rgba(240, 182, 66, .12);
}

.split-grid {
    display: grid;
    grid-template-columns: .95fr 1fr;
    gap: 74px;
    align-items: center;
}

.image-panel {
    position: relative;
}

.image-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-caption {
    position: absolute;
    right: -30px;
    bottom: -22px;
    width: min(260px, 78%);
    padding: 22px;
    background: rgba(12, 10, 8, .9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
}

.image-caption span {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
}

.image-caption strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.feature-grid,
.service-grid,
.cards-grid,
.property-grid,
.testimonial-grid,
.steps-grid,
.admin-stats {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
}

.feature-grid article,
.service-card,
.testimonial-grid article,
.admin-card,
.admin-stats article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(28, 23, 18, .96), rgba(12, 10, 8, .92));
}

.feature-grid article {
    padding: 24px;
}

.feature-grid span,
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border: 1px solid rgba(240, 182, 66, .45);
    border-radius: 8px;
    color: var(--gold);
    background: rgba(240, 182, 66, .09);
    font-weight: 700;
}

.feature-grid h3,
.service-card h3 {
    margin-bottom: 12px;
}

.feature-grid p,
.service-card p,
.card-body p,
.testimonial-grid p {
    color: var(--muted);
    line-height: 1.6;
}

.section-head,
.center-head {
    margin-bottom: 48px;
}

.center-head {
    text-align: center;
}

.center-head h2 {
    margin-inline: auto;
}

.section-head h2,
.section-row h2 {
    max-width: 620px;
}

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

.service-card {
    min-height: 270px;
    padding: 28px;
}

.service-card a {
    display: inline-block;
    margin-top: 24px;
    color: var(--gold);
    font-weight: 700;
}

.section-row {
    display: flex;
    justify-content: space-between;
    gap: 42px;
    align-items: end;
    margin-bottom: 42px;
}

.filter-pills,
.property-filters,
.filter-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pills {
    max-width: 520px;
}

.filter-pills button,
.filter-line button {
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.filter-pills button.active,
.filter-line button.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #100b05;
}

.cards-grid,
.property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.property-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0e0b08;
}

.project-card.is-hidden,
.property-card.is-hidden {
    display: none;
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(6, 5, 4, .95), transparent);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.project-card:hover img,
.property-card:hover img {
    transform: scale(1.04);
}

.card-media span {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(6, 5, 4, .86);
    color: var(--gold);
    font-size: 11px;
    text-transform: uppercase;
}

.card-body {
    padding: 24px;
}

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

.project-card .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.project-card .card-body > p:not(.meta) {
    min-height: 72px;
}

.portfolio-features {
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(240, 182, 66, .16);
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
}

.card-link span {
    font-size: 18px;
}

.location {
    color: var(--muted-2);
    font-size: 14px;
}

.characteristics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
    margin: 18px 0;
}

.characteristics span {
    padding: 6px 9px;
    border: 1px solid rgba(240, 182, 66, .2);
    border-radius: 999px;
    color: var(--gold-soft);
    font-size: 12px;
}

.price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.price-row small {
    display: block;
    color: var(--muted-2);
    text-transform: uppercase;
}

.price-row strong {
    color: var(--gold-soft);
}

.property-filters {
    flex-direction: column;
    margin-bottom: 42px;
}

.filter-line {
    align-items: center;
}

.filter-line span {
    width: 76px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

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

.steps-grid span {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(20, 17, 13, .72);
}

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

.testimonial-grid article {
    padding: 24px;
}

.testimonial-grid strong,
.stars {
    color: var(--gold);
}

.cta-panel {
    max-width: 900px;
    margin: 96px auto 0;
    padding: 42px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(28, 21, 13, .96), rgba(10, 8, 6, .96));
}

.cta-panel p {
    margin-inline: auto;
}

.contact-section {
    background: #080706;
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 60px;
}

.contact-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 32px 0 0;
    list-style: none;
    color: var(--muted);
}

.contact-list strong {
    color: var(--gold-soft);
}

.contact-form,
.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form,
.login-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(28, 23, 18, .96), rgba(12, 10, 8, .92));
}

label {
    display: grid;
    gap: 8px;
    color: var(--gold-soft);
    font-size: 13px;
}

.full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(240, 182, 66, .24);
    border-radius: 8px;
    background: #090806;
    color: var(--text);
    padding: 11px 13px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
}

.form-alert,
.form-success {
    grid-column: 1 / -1;
    padding: 13px 16px;
    border-radius: 8px;
    background: rgba(120, 30, 24, .22);
    border: 1px solid rgba(255, 180, 168, .4);
    color: var(--danger);
}

.form-success {
    margin-bottom: 18px;
    background: rgba(52, 120, 48, .18);
    border-color: rgba(201, 245, 199, .38);
    color: var(--success);
}

.site-footer {
    padding: 46px 0;
    border-top: 1px solid rgba(240, 182, 66, .14);
    background: #050504;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 34px;
    color: var(--muted);
}

.footer-grid img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.footer-grid strong {
    display: block;
    margin-bottom: 14px;
    color: var(--gold-soft);
}

.admin-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(240, 182, 66, .12), transparent 38%),
        var(--black);
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(430px, 100%);
}

.login-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-bottom: 22px;
}

.login-card h1,
.admin-title h1 {
    font-size: 42px;
    margin: 0 0 24px;
}

.login-card .btn {
    width: 100%;
    margin-top: 4px;
}

.admin-back {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    text-align: center;
}

.admin-topbar {
    position: sticky;
    top: 0;
}

.admin-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 52px 0 90px;
}

.admin-title {
    margin-bottom: 28px;
}

.admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
}

.admin-stats article {
    padding: 26px;
}

.admin-stats span {
    color: var(--muted);
}

.admin-stats strong {
    display: block;
    margin: 10px 0 16px;
    color: var(--gold);
    font-size: 42px;
}

.admin-card {
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card h2 {
    margin-bottom: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(240, 182, 66, .14);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--gold-soft);
    font-size: 12px;
    text-transform: uppercase;
}

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

td small {
    color: var(--muted-2);
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.actions a,
.actions button {
    border: 0;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    padding: 0;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
}

.check-label input {
    width: 18px;
    min-height: 18px;
}

@media (max-width: 1020px) {
    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(8, 7, 6, .98);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 12px;
    }

    .nav-cta {
        margin-top: 8px;
    }

    .split-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .cards-grid,
    .property-grid,
    .steps-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-row {
        display: block;
    }

    .admin-topbar {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        gap: 12px;
        padding-block: 12px;
    }

    .admin-topbar nav {
        width: 100%;
        overflow-x: auto;
        gap: 18px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .brand span {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero-copy,
    .section-head p,
    .split p,
    .contact-grid p,
    .cta-panel p {
        font-size: 15px;
    }

    .section {
        padding: 76px 0;
    }

    .feature-grid,
    .service-grid,
    .cards-grid,
    .property-grid,
    .steps-grid,
    .testimonial-grid,
    .admin-stats,
    .contact-form,
    .admin-form,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .image-caption {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .price-row {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-line span {
        width: 100%;
    }

    .cta-panel {
        padding: 28px 18px;
    }

    .admin-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 34px;
    }
}
