:root {
    --ink: #182126;
    --cream: #f7f4ec;
    --sand: #ded6c6;
    --river: #274a59;
    --gold: #c59b45;
    --card: rgba(247, 244, 236, 0.94);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--ink);
    background: var(--cream);
}

.top-card {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1.25rem;
    background: var(--card);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(24, 33, 38, 0.2);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--sand);
}

.brand-name {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
}

.brand-tag {
    margin: 0.15rem 0 0;
    color: #43535d;
    font-size: 0.9rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--river);
}

.hero {
    min-height: 100vh;
    padding-top: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('/assets/hero/SC%20Hero.png') center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(16, 24, 29, 0.65), rgba(39, 74, 89, 0.35));
}

.hero-content {
    position: relative;
    max-width: 880px;
    margin: 0 1.25rem;
    background: rgba(24, 33, 38, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2rem;
    border-radius: 14px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.17em;
    margin-top: 0;
    color: #f3d9a2;
    font-size: 0.75rem;
}

.hero h1 {
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 4rem);
}

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

.cta {
    display: inline-block;
    margin-top: 0.75rem;
    background: var(--gold);
    color: #212121;
    text-decoration: none;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.cta.small {
    margin: 0;
}

.content-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 150px 1.25rem 4rem;
}

.content-section.narrow {
    max-width: 760px;
}

.content-section p {
    line-height: 1.7;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.listing-card {
    border: 1px solid #d3ccbc;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}

.listing-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.listing-location {
    font-weight: 700;
    margin: 0.3rem 0;
}

.listing-summary {
    margin: 0.5rem 0 0.8rem;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e6e0d3;
    padding-top: 0.7rem;
}

.contact-form {
    display: grid;
    gap: 0.45rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.7rem;
    border: 1px solid #c3bba8;
    border-radius: 8px;
    font: inherit;
}

.contact-form button {
    margin-top: 0.6rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--river);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.alert {
    padding: 0.8rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert.error {
    background: #f8d8d8;
    border: 1px solid #ce7676;
}

.alert.success {
    background: #d8f0dd;
    border: 1px solid #78ae87;
}

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #d4cdbf;
    border-radius: 12px;
}

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

th,
td {
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e8e2d4;
    padding: 0.7rem;
}

.site-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #ddd5c7;
    background: #f0ecdf;
}

@media (max-width: 820px) {
    .top-card {
        position: static;
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .content-section {
        padding-top: 1rem;
    }

    .hero-content {
        margin-top: 1rem;
    }
}
