@import "../shared/design-tokens.css";

/* ========== Quick Edit ========== */
/* Shared colors, font stack, widths, radius, and shadows live in ../shared/design-tokens.css. */

/* ========== Base Layout ========== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
}

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

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

.page-hero {
    display: grid;
    min-height: 330px;
    place-items: center;
    padding: 60px 20px;
    background:
        linear-gradient(rgba(10, 25, 40, 0.5), rgba(10, 25, 40, 0.56)),
        var(--hero-image) center / cover;
    color: #fff;
    text-align: center;
}

.page-hero p,
.page-hero h1,
.page-hero span {
    margin: 0;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
}

.page-hero h1 {
    margin-top: 8px;
    font-size: clamp(36px, 6vw, 56px);
    letter-spacing: 0;
}

.page-hero span {
    max-width: 760px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.toolbar,
.content-grid {
    width: var(--space-content-width);
    margin-inline: auto;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 52px 0 24px;
}

.toolbar h2 {
    margin: 0;
    font-size: 30px;
}

.toolbar p {
    margin: 6px 0 0;
    color: var(--muted);
}

.contact-button,
.content-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.contact-button:hover,
.content-link:hover {
    background: var(--primary-dark);
}

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

.content-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.content-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #edf3f5;
}

.content-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.content-body h3 {
    min-height: calc(1.3em * 2);
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.content-body p {
    display: -webkit-box;
    min-height: calc(1.7em * 3);
    margin: 0 0 20px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.content-link {
    margin-top: auto;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 980px) {
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

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