:root {
    --sm-bg: #f6f0e6;
    --sm-surface: #fffdf8;
    --sm-ink: #211817;
    --sm-muted: #6f625a;
    --sm-primary: #7d1514;
    --sm-primary-dark: #4f0d0c;
    --sm-gold: #c7a45a;
    --sm-gold-dark: #8b6b2f;
    --sm-green: #315f4d;
    --sm-line: #e1d4c2;
    --sm-shadow: 0 14px 34px rgba(56, 24, 17, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--sm-bg);
    color: var(--sm-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid var(--sm-line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
}

.logo img {
    border: 1px solid rgba(199, 164, 90, 0.42);
    border-radius: 6px;
    height: 58px;
    object-fit: cover;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text-main {
    color: var(--sm-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    letter-spacing: 0;
}

.logo-text-sub {
    color: var(--sm-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
}

.main-nav a,
.boas-vindas {
    color: var(--sm-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.main-nav a.cta {
    color: #fff;
    background: var(--sm-primary-dark);
    padding: 5px 10px;
    border-radius: 6px;
}

.main-nav a.cta:hover,
.btn:hover {
    text-decoration: none;
}

.language-switcher {
    display: flex;
    gap: 6px;
}

.language-switcher a {
    border: 1px solid var(--sm-line);
    border-radius: 6px;
    color: var(--sm-muted);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 6px;
}

.language-switcher a.active {
    background: var(--sm-gold-dark);
    border-color: var(--sm-gold-dark);
    color: #fff;
}

main.container {
    padding: 28px 0 48px;
}

.hero {
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.96) 0%, rgba(249, 241, 226, 0.94) 48%, rgba(239, 226, 202, 0.92) 100%),
        radial-gradient(circle at top right, rgba(199, 164, 90, 0.26), transparent 38%);
    border: 1px solid rgba(199, 164, 90, 0.38);
    border-radius: 8px;
    box-shadow: var(--sm-shadow);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 34px;
    padding: clamp(24px, 4vw, 48px);
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3.25vw, 3.45rem);
    line-height: 1.05;
    margin: 0 0 18px;
    max-width: 760px;
}

.hero p {
    color: var(--sm-muted);
    font-size: 1.08rem;
    max-width: 760px;
}

.hero-panel {
    align-self: stretch;
    background: linear-gradient(160deg, #871817 0%, #5f1110 54%, #2e1512 100%);
    border: 1px solid rgba(238, 210, 151, 0.38);
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    padding: 24px;
}

.hero-panel-logo {
    align-self: center;
    background: #fff8e8;
    border: 1px solid rgba(238, 210, 151, 0.58);
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(38, 6, 6, 0.24);
    height: auto;
    max-height: 310px;
    max-width: 260px;
    object-fit: contain;
    padding: 10px;
    width: 78%;
}

.hero-panel span,
.eyebrow {
    color: var(--sm-gold-dark);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hero-panel span {
    color: #edd297;
}

.hero-panel strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    line-height: 1.1;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.btn {
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    min-height: 40px;
    padding: 9px 14px;
}

.btn-primary {
    background: var(--sm-primary-dark);
    color: #fff;
}

.btn-secondary {
    border: 1px solid var(--sm-gold-dark);
    color: var(--sm-primary-dark);
}

.btn-link {
    color: var(--sm-gold-dark);
    padding-left: 0;
}

.section {
    margin-top: 28px;
}

.section-heading h2,
.section h2,
.card h1,
.card h2 {
    font-family: Georgia, "Times New Roman", serif;
    margin: 0 0 12px;
}

.section-heading.compact h2 {
    font-size: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature,
.card,
.list-item {
    background: var(--sm-surface);
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(46, 31, 24, 0.05);
}

.feature {
    padding: 18px;
}

.feature h3,
.list-item h3 {
    margin-top: 0;
}

.feature p,
.list-item p,
.card p {
    color: var(--sm-muted);
}

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

.split > div {
    border-top: 4px solid var(--sm-gold);
    padding: 18px 0 0;
}

.list {
    display: grid;
    gap: 12px;
}

.list-item,
.card {
    padding: 18px;
}

.listing-thumb {
    border-radius: 8px;
    display: block;
    height: 170px;
    margin-bottom: 12px;
    object-fit: cover;
    width: 100%;
}

.property-card {
    display: grid;
    align-items: start;
    gap: 18px;
    grid-template-columns: 260px minmax(0, 1fr);
    padding: 14px;
}

.property-card .listing-thumb {
    height: 150px;
    margin: 0;
}

.property-summary h3 {
    font-size: 1.08rem;
    margin: 2px 0 8px;
}

.property-summary p {
    margin: 0 0 8px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.property-meta span {
    color: var(--sm-ink);
}

.property-meta span::before {
    color: var(--sm-muted);
    content: "•";
    margin-right: 10px;
}

.property-carousel {
    overflow: hidden;
    position: relative;
}

.property-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.property-carousel-track img {
    border-radius: 8px;
    flex: 0 0 100%;
    height: 142px;
    object-fit: cover;
    scroll-snap-align: start;
    width: 100%;
}

.property-carousel-nav {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
}

.property-carousel-nav a {
    background: var(--sm-line);
    border-radius: 999px;
    display: block;
    height: 8px;
    width: 8px;
}

.property-carousel-nav a:hover {
    background: var(--sm-primary);
}

.visual-card {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 14px;
}

.visual-card h3,
.job-card h3 {
    font-size: 1.08rem;
    margin: 2px 0 8px;
}

.visual-card p,
.job-card p {
    margin: 0 0 8px;
}

.visual-card-image {
    border-radius: 8px;
    display: block;
    height: 132px;
    object-fit: cover;
    width: 100%;
}

.home-property-card {
    grid-template-columns: 150px minmax(0, 1fr);
}

.home-property-card .visual-card-image {
    height: 112px;
}

.job-card {
    padding: 14px;
}

.job-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-card-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-image-card {
    display: block;
    min-height: 0;
    padding: 14px;
}

.compact-image-card .property-carousel,
.compact-image-card .visual-card-image {
    margin-bottom: 12px;
}

.compact-image-card .property-carousel-track img,
.compact-image-card .visual-card-image {
    height: 132px;
}

.compact-image-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0 0 8px;
}

.compact-image-card p {
    font-size: 0.94rem;
    line-height: 1.45;
    margin: 0 0 8px;
}

.compact-image-card .property-meta {
    color: var(--sm-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.job-grid .job-card {
    box-shadow: none;
    min-height: 220px;
}

.job-grid .job-card h3 {
    line-height: 1.25;
}

.job-grid .property-meta {
    color: var(--sm-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.job-grid .job-card p:not(.property-meta) {
    font-size: 0.94rem;
    line-height: 1.45;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.property-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.property-gallery img {
    border-radius: 8px;
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.about-card {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    padding: clamp(22px, 4vw, 42px);
}

.about-logo-panel {
    align-items: center;
    background: linear-gradient(135deg, #fffaf3 0%, #f7eee2 100%);
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 330px;
    padding: 28px;
}

.about-logo-panel img {
    height: auto;
    max-width: 320px;
    width: 100%;
}

.about-copy {
    max-width: 760px;
}

.about-copy ul {
    padding-left: 22px;
}

.form-card form,
.form-card fieldset {
    display: grid;
    gap: 14px;
}

.form-card fieldset {
    margin: 0 0 14px;
}

.form-card label {
    color: var(--sm-ink);
    font-weight: 700;
}

.form-card label input,
.form-card label select,
.form-card label textarea {
    font-weight: 400;
}

.approval-section {
    border-top: 1px solid var(--sm-line);
    margin-top: 22px;
    padding-top: 18px;
}

.approval-list {
    display: grid;
    gap: 12px;
}

.approval-item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.approval-item p {
    margin: 0 0 5px;
}

.approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-card {
    max-width: 880px;
}

.article-hero-image {
    border-radius: 8px;
    display: block;
    margin-bottom: 22px;
    max-height: 430px;
    object-fit: cover;
    width: 100%;
}

.article-body {
    color: var(--sm-ink);
    font-size: 1.03rem;
    line-height: 1.75;
}

.article-source {
    border-top: 1px solid var(--sm-line);
    margin-top: 24px;
    padding-top: 16px;
}

.blog-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
    background: #fff;
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(46, 31, 24, 0.05);
    overflow: hidden;
}

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

.blog-card-body {
    padding: 16px;
}

.blog-card h3 {
    margin-top: 0;
}

.supporter-strip {
    align-items: center;
    background: #fff;
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 110px minmax(250px, 1fr) minmax(250px, 1fr) 150px 150px;
    gap: 14px;
    margin-top: 28px;
    padding: 18px;
}

.supporter-strip span {
    color: var(--sm-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.supporter-banner {
    align-items: center;
    background: #f9f5ee;
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    display: flex;
    height: 126px;
    justify-content: center;
    padding: 14px 18px;
}

.supporter-banner:hover {
    border-color: rgba(167, 35, 36, 0.38);
    text-decoration: none;
}

.supporter-banner img {
    max-height: 98px;
    max-width: 96%;
    object-fit: contain;
}

.supporter-join {
    align-items: center;
    background: var(--sm-primary);
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-weight: 800;
    height: 126px;
    justify-content: center;
    line-height: 1.18;
    padding: 14px;
    text-align: center;
}

.supporter-join:hover {
    background: var(--sm-primary-dark);
    color: #fff;
    text-decoration: none;
}

.supporter-join-alt {
    background: var(--sm-green);
}

.supporter-join-alt:hover {
    background: #17633e;
}

.supporter-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.supporter-card {
    background: #fff;
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(46, 31, 24, 0.05);
    color: var(--sm-ink);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 18px;
}

.supporter-card:hover {
    border-color: rgba(167, 35, 36, 0.38);
    box-shadow: 0 12px 28px rgba(46, 31, 24, 0.1);
    text-decoration: none;
}

.supporter-logo-frame {
    align-items: center;
    background: #f9f5ee;
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    display: flex;
    height: 150px;
    justify-content: center;
    margin-bottom: 18px;
    padding: 16px;
}

.supporter-logo-frame img {
    max-height: 118px;
    max-width: 96%;
    object-fit: contain;
}

.supporter-card h3 {
    color: var(--sm-primary-dark);
    margin: 0 0 8px;
}

.supporter-card p {
    color: var(--sm-muted);
    margin-bottom: 0;
}

.supporter-placeholder {
    color: var(--sm-primary);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    border: 1px solid #d8cfc6;
    border-radius: 6px;
    font: inherit;
    margin-top: 5px;
    padding: 9px 10px;
    width: 100%;
}

fieldset {
    border: 1px solid var(--sm-line);
    border-radius: 8px;
    padding: 14px;
}

legend {
    color: var(--sm-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

ul.erros,
.notice {
    border-radius: 8px;
    padding: 12px 14px;
}

ul.erros {
    background: #fdeceb;
    border: 1px solid #f5b7b1;
    color: #9b1c1f;
}

.notice {
    background: #edf7f1;
    border: 1px solid #b8dec7;
    color: #1e6241;
}

.footer {
    border-top: 1px solid var(--sm-line);
    color: var(--sm-muted);
    padding: 24px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

@media (max-width: 900px) {
    .topbar-inner,
    .hero,
    .split,
    .two-columns,
    .about-card,
    .feature-grid,
    .blog-grid,
    .supporter-grid,
    .supporter-strip,
    .property-gallery,
    .property-card,
    .visual-card,
    .home-property-card,
    .job-grid,
    .compact-card-grid,
    .approval-item {
        grid-template-columns: 1fr;
    }

    .supporter-join {
        text-align: left;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero-panel {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .logo {
        min-width: 0;
    }

    .logo-text-sub {
        max-width: 220px;
    }

    .footer-grid,
    .supporter-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}
