/* Shared Public Base */
@import url("./footer.css");
@import url("./public-home.css");
@import url("./public-listings.css");
@import url("./public-listing-detail.css");
@import url("./public-offer.css");
@import url("./public-partner-application.css");

/* 1. Root Variables */
:root {
    --site-black: #050505;
    --site-ink: #0d0d0f;
    --site-carbon: #161618;
    --site-graphite: #26262b;
    --site-muted: #66666e;
    --site-line: #d9d9df;
    --site-line-dark: rgba(255, 255, 255, 0.18);
    --site-paper: #ffffff;
    --site-cloud: #f5f5f6;
    --site-soft: #ececef;
    --site-accent: #d1691d;
    --site-radius-sm: 10px;
    --site-radius-md: 16px;
    --site-radius-lg: 24px;
    --site-shadow-soft: 0 12px 34px rgba(5, 5, 8, 0.08);
    --site-shadow: 0 26px 70px rgba(5, 5, 8, 0.16);
    --site-width: 1240px;
}

/* 2. Base */
* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body,
body.showcase-body {
    background:
        radial-gradient(circle at 50% 0, rgba(0, 0, 0, 0.045), transparent 34rem),
        linear-gradient(180deg, #ffffff 0, #f7f7f8 100%);
    color: var(--site-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video {
    height: auto;
    max-width: 100%;
}

a {
    color: inherit;
}

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

.site-main {
    display: block;
    min-height: calc(100vh - 150px);
}

.page,
.section,
.site-section,
.home-premium-section,
.public-listings-section {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--site-width);
    padding-left: 24px;
    padding-right: 24px;
}

.page {
    padding-bottom: 72px;
    padding-top: 24px;
}

.page--home,
.home-premium {
    padding-top: 0;
}

.site-section {
    padding-bottom: 72px;
    padding-top: 48px;
}

.site-section--compact {
    padding-top: 26px;
}

.site-container {
    margin: 0 auto;
    max-width: 1040px;
}

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

h1 {
    font-size: clamp(30px, 4vw, 54px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(19px, 2.2vw, 28px);
    letter-spacing: -0.015em;
    line-height: 1.16;
}

h3 {
    font-size: 16px;
    line-height: 1.25;
}

p {
    color: var(--site-muted);
}

.section-kicker,
.section-eyebrow,
.showcase-kicker,
.home-premium-kicker,
.home-section-kicker,
.public-hero__kicker,
.eyebrow {
    color: currentColor;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-head,
.section-heading,
.home-premium-section-head,
.public-section-head {
    align-items: end;
    border-bottom: 1px solid var(--site-line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.section-head h2,
.section-heading h2,
.home-premium-section-head h2,
.public-section-head h2 {
    margin-bottom: 8px;
}

.section-head p,
.section-heading p,
.home-premium-section-head p,
.public-section-head p {
    margin-bottom: 0;
    max-width: 680px;
}

/* 3. Buttons */
.button,
.button-dark,
.btn,
.home-premium-btn,
.role-card-button,
.section-link,
.home-premium-section-link {
    align-items: center;
    background: var(--site-black);
    border: 1px solid var(--site-black);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    padding: 12px 16px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button-dark:hover,
.btn:hover,
.home-premium-btn:hover,
.role-card-button:hover,
.section-link:hover,
.home-premium-section-link:hover {
    background: #1a1a1d;
    border-color: #1a1a1d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.button-secondary,
.button--ghost,
.btn-glass,
.home-premium-btn--ghost,
.role-card-button--soft {
    background: #ffffff;
    border: 1px solid #bdbdc6;
    color: var(--site-ink);
}

.button-secondary:hover,
.button--ghost:hover,
.btn-glass:hover,
.home-premium-btn--ghost:hover,
.role-card-button--soft:hover {
    background: var(--site-cloud);
    border-color: #8e8e98;
    color: var(--site-black);
}

.btn-primary,
.home-premium-btn--primary,
.listing-public-hero__primary-action {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--site-black);
}

.btn-primary:hover,
.home-premium-btn--primary:hover,
.listing-public-hero__primary-action:hover {
    background: #ececef;
    border-color: #ececef;
    color: var(--site-black);
}

.role-card-button--approval {
    background: var(--site-carbon);
    border-color: var(--site-carbon);
}

.button:disabled,
.role-card-button:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.44;
    transform: none;
}

.site-actions,
.button-row,
.showcase-actions,
.home-premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 4. Shared Responsive */
.form-row,
.form-card {
    min-width: 0;
}

.form-row input:not([type="checkbox"]):not([type="radio"]),
.form-row select,
.form-row textarea {
    width: 100%;
}

@media (max-width: 768px) {
    body,
    body.showcase-body {
        font-size: 13px;
    }

    .page,
    .section,
    .site-section,
    .home-premium-section,
    .public-listings-section,
    .detail-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-head,
    .section-heading,
    .home-premium-section-head,
    .public-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .page,
    .section,
    .site-section,
    .home-premium-section,
    .public-listings-section,
    .detail-hero {
        padding-left: 12px;
        padding-right: 12px;
    }
}
