@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400&display=swap');

:root {
    --bg: #ffffff;
    --ink: #0f1f3d;
    --accent: #1a4a8a;
    --muted: #5a6f8a;
    --border: #c0cedd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 17px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    padding: 12px 24px;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 18px;
    padding: 20px 0 0;
}

.header a {
    color: var(--muted);
}

.header a:hover {
    text-decoration: none;
}

.logo {
    display: block;
    width: 68px;
    height: auto;
    margin: 0 auto 4px;
}

h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.subtitle {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0;
}

.header-address {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 8px;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 16px;
    color: var(--ink);
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

li {
    margin-bottom: 8px;
}

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

a:hover {
    text-decoration: underline;
}

.section {
    margin-bottom: 40px;
}

.performance {
    font-family: 'DM Mono', monospace;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.performance strong {
    font-weight: 400;
    color: var(--ink);
}

.contact {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
    line-height: 2;
}

.contact a {
    color: var(--accent);
}

p {
    font-size: 18px;
    margin-bottom: 16px;
}

ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

ol li {
    margin-bottom: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    margin-bottom: 24px;
}

th, td {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
}

th:nth-child(2), th:nth-child(3), th:nth-child(4), th:nth-child(5),
td:nth-child(2), td:nth-child(3), td:nth-child(4), td:nth-child(5) {
    text-align: right;
}

/* Portfolio tables (5 cols): keep Ação column left-aligned */
table:has(th:nth-child(5)) th:nth-child(2),
table:has(th:nth-child(5)) td:nth-child(2) {
    text-align: left;
}

th {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--ink);
    padding-top: 0;
}

footer {
    margin-top: 48px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

/* Home icon navigation */
.home-link {
    position: absolute;
    top: 16px;
    left: 24px;
    color: var(--accent);
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.home-link:hover {
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-2px);
}

.home-link:active {
    color: var(--ink);
    transform: translateY(0) scale(0.92);
    transition-duration: 0.05s;
}

.home-link svg {
    display: block;
}

/* CTA button */
a.cta {
    display: inline-block;
    margin-top: 24px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--bg);
    padding: 10px 20px;
    border: 1px solid var(--ink);
    transition: background 0.18s ease, color 0.18s ease;
    text-decoration: none;
}

a.cta:hover {
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
}

/* Meta items */
.meta {
    display: flex;
    flex-direction: row;
    gap: 32px;
    flex-wrap: wrap;
    padding: 18px 0 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}

.meta-item .key {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 2px;
}

.meta-item .val {
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    color: var(--ink);
    display: block;
}

/* Home page two-column layout */
body.home {
    max-width: 960px;
}

.two-col {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: start;
}

.col-links h2 {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.intro-body {
    position: relative;
}

.intro-fade {
    display: none;
}

.read-more-btn {
    display: none;
}

@media (max-width: 680px) {
    body.home {
        max-width: 640px;
    }

    .two-col {
        display: block;
    }

    .col-links {
        margin-top: 40px;
    }

    .intro-body:not(.expanded) {
        max-height: 260px;
        overflow: hidden;
    }

    .intro-fade {
        display: block;
        height: 80px;
        margin-top: -80px;
        background: linear-gradient(transparent, #ffffff);
        pointer-events: none;
        position: relative;
        z-index: 1;
    }

    .intro-fade.hidden {
        display: none;
    }

    .read-more-btn {
        display: inline-block;
        background: none;
        border: none;
        color: var(--accent);
        cursor: pointer;
        font-family: 'DM Mono', monospace;
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        padding: 4px 0;
        margin-top: 4px;
    }

    .read-more-btn:hover {
        text-decoration: underline;
    }
}
