/*
 * Next Vaga public website.
 *
 * Candidates remain the primary audience, with visible company navigation.
 * The approved symbol, wordmark lettering and proportions are preserved.
 *
 * Desktop hero columns use approximately a 1.618:1 ratio.
 * Responsive behavior and readable text take priority over fixed ratios.
 */

:root {
    --wine: #741f35;
    --wine-dark: #541426;
    --ink: #242326;
    --muted: #656067;
    --paper: #ffffff;
    --soft: #f6f4f2;
    --line: #ded8d5;
    --width: 1160px;

    --space-small: 13px;
    --space-medium: 21px;
    --space-large: 34px;
    --space-wide: 55px;

    /* Scale the symbol and wordmark with the user's base font size. */
    --brand-symbol-width: 3.4375rem;
    --brand-symbol-height: 2.125rem;
    --brand-gap: 0.125rem;
    --brand-font-size: 2.125rem;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

a {
    color: inherit;
    text-underline-offset: 0.25em;
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Keep keyboard focus visible on light and dark surfaces. */
:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}

section {
    scroll-margin-top: 24px;
}

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

h1,
h2,
h3,
h4 {
    line-height: 1.18;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    letter-spacing: -0.045em;
    font-weight: 550;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
}

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

.container {
    width: min(var(--width), calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 10;
    padding: 12px 20px;
    background: var(--paper);
    color: var(--wine);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-medium);
    padding-block: 25px;
}

/*
 * The decorative SVG sits beside the unchanged text wordmark.
 * Absolute positioning avoids inserting a gap between "next" and "vaga".
 */
.brand {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    padding-left: calc(var(--brand-symbol-width) + var(--brand-gap));
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    font-size: var(--brand-font-size);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1.2;
}

.brand::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--brand-symbol-width);
    height: var(--brand-symbol-height);
    transform: translateY(-50%);
    background-image: url("/images/nextvaga-simbolo.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.brand span:first-child {
    font-weight: 400;
}

/*
 * A geometric circle keeps the brand period round across fonts.
 * Explicit dimensions scale with the wordmark instead of the hidden glyph.
 */
.brand .brand-dot {
    display: inline-block;
    width: calc(var(--brand-font-size) * 0.17);
    height: calc(var(--brand-font-size) * 0.17);
    margin-left: calc(var(--brand-font-size) * 0.025);
    border: 0;
    border-radius: 50%;
    background: var(--wine);
    color: transparent;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    vertical-align: baseline;
    /* Align the circle's bottom edge, not the hidden period's line box. */
    overflow: hidden;
}

/* Navigation wraps and does not depend on JavaScript. */
nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

nav a,
.header-action {
    padding-block: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

nav a[href="/empresas"] {
    color: var(--wine);
    font-size: 1.0625rem;
    font-weight: 650;
}

nav a:hover,
.header-action:hover,
.text-link:hover {
    color: var(--wine);
    text-decoration: underline;
}

.header-action {
    color: var(--wine);
    font-weight: 650;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-wide);
    padding-block: 89px;
}

.eyebrow {
    color: var(--wine);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-medium);
}

h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.08;
    margin-bottom: 28px;
}

h1 span {
    color: var(--wine);
}

.lead {
    font-size: 1.12rem;
    max-width: 47ch;
}

.hero-aside {
    padding: var(--space-large);
    border-top: 3px solid var(--wine);
    background: var(--soft);
}

.hero-aside .eyebrow {
    font-size: 1.3125rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    text-transform: none;
    margin-bottom: var(--space-medium);
}

.hero-aside h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.125rem);
    letter-spacing: -0.04em;
}

.hero-aside > p:not(.eyebrow) {
    font-size: 1rem;
}

.hero-aside .text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--wine);
    font-size: 1rem;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: var(--space-large);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-large);
    min-height: 48px;
    padding: 13px 24px;
    background: var(--wine);
    color: white;
    border: 1px solid var(--wine);
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button:hover:not(:disabled) {
    background: var(--wine-dark);
}

.button-outline {
    background: transparent;
    color: var(--wine);
}

.button-outline:hover:not(:disabled) {
    color: white;
}

.button:disabled {
    background: #e3deda;
    border-color: #e3deda;
    color: #686066;
    cursor: not-allowed;
}

.text-link {
    font-weight: 600;
    font-size: 0.95rem;
}

.section {
    padding-block: 70px;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.section-heading > p {
    font-size: 0.9rem;
}

.status {
    padding-block: 20px;
}

.job {
    padding-block: 25px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.job h3,
.job p {
    margin-bottom: 8px;
}

.job-meta {
    color: var(--wine);
    font-size: 0.85rem;
}

.process-section {
    background: var(--soft);
    padding-block: 75px;
}

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

.process-columns > article > h3 {
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.035em;
}

/* Ordered lists retain the process sequence for assistive technologies. */
.steps {
    list-style: none;
    counter-reset: process;
    padding: 0;
    margin: var(--space-large) 0 0;
}

.steps li {
    counter-increment: process;
    position: relative;
    padding: 0 0 32px 48px;
    margin-left: 16px;
    border-left: 1px solid #c9b5bb;
}

.steps li:last-child {
    border-color: transparent;
    padding-bottom: 0;
}

.steps li::before {
    content: counter(process, decimal-leading-zero);
    position: absolute;
    left: -17px;
    top: -4px;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--wine);
    border: 1px solid #c9b5bb;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}

.steps h4 {
    font-size: 1rem;
    margin-bottom: 9px;
}

.steps p {
    margin-bottom: 0;
    max-width: 38ch;
    font-size: 0.95rem;
}

.contact-panel,
.company-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-wide);
}

.contact-panel p {
    max-width: 50ch;
}

.pending-action {
    justify-self: end;
    max-width: 260px;
}

.small {
    font-size: 0.85rem;
    margin-top: 14px;
}

.company-section {
    background: var(--wine);
    color: white;
    padding-block: 70px;
}

.company-section p {
    color: #f0e2e6;
}

.company-section .eyebrow {
    color: white;
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-transform: none;
    margin-bottom: var(--space-medium);
}

.company-section h2 {
    font-size: clamp(2rem, 3.8vw, 3rem);
}

.company-inner > div:last-child > p:first-child {
    font-size: 1.125rem;
}

.footer-inner {
    padding-block: 35px;
}

.footer-inner p,
.footer-inner > a:last-child {
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 1000px) {
    .header-inner {
        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
        gap: 28px;
    }
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-large);
        padding-block: var(--space-wide);
    }

    .hero-aside {
        max-width: none;
    }

    .process-columns,
    .contact-panel,
    .company-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-heading {
        display: block;
    }

    .pending-action {
        justify-self: start;
    }

    .footer-inner {
        flex-wrap: wrap;
    }
}

/* Keep the complete brand composition proportional on small screens. */
@media (max-width: 540px) {
    :root {
        --brand-symbol-width: 2.75rem;
        --brand-symbol-height: 1.7rem;
        --brand-gap: 0.1rem;
        --brand-font-size: 1.7rem;
    }

    .header-inner {
        gap: 13px 21px;
    }

    .header-action {
        font-size: 0.85rem;
    }

    nav {
        gap: 21px;
    }

    .hero-aside {
        padding: 26px;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 32px);
    }

    .section,
    .process-section,
    .company-section {
        padding-block: 48px;
    }
}

/* Keep the text wordmark visible when background images are suppressed. */
@media (forced-colors: active) {
    .brand {
        padding-left: 0;
    }

    .brand::before {
        display: none;
    }

    .brand .brand-dot {
        background: CanvasText;
        border: 1px solid CanvasText;
    }
}

/* Sticky navigation keeps the direct CV action available while scrolling. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
}

.header-inner {
    flex-wrap: wrap;
    padding-block: 18px;
}

.header-inner nav {
    gap: 20px;
}

.header-action.button {
    color: var(--paper);
    font-size: 0.9rem;
    gap: 14px;
    padding: 11px 18px;
    white-space: nowrap;
}

.header-action.button:hover {
    color: var(--paper);
    text-decoration: none;
}

nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

html {
    scroll-padding-top: 190px;
}

[id] {
    scroll-margin-top: 12px;
}

.page-intro {
    padding-block: 65px 35px;
}

.page-intro h1 {
    max-width: 20ch;
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
}

.page-intro .lead {
    max-width: 65ch;
}

.page-section {
    padding-bottom: 65px;
}

.section-end {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.section-end p {
    margin: 0;
}

.button-light {
    background: var(--paper);
    color: var(--wine);
    border-color: var(--paper);
}

.button-light:hover:not(:disabled) {
    background: var(--soft);
}

.company-section .text-link {
    color: var(--paper);
}

.footer-links {
    padding-bottom: 35px;
    gap: 12px 26px;
}

.footer-links a {
    font-size: 0.9rem;
}

.audience-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    padding-bottom: 40px;
}

.audience-links a {
    color: var(--wine);
    font-weight: 650;
    padding-block: 8px;
}

/* Native disclosure elements work without JavaScript. */
.faq-list {
    max-width: 880px;
}

.faq-item {
    border-top: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    padding: 23px 28px 23px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-item summary::marker,
.faq-item[open] summary {
    color: var(--wine);
}

.faq-answer {
    max-width: 75ch;
    padding-bottom: 16px;
}

/* Equal-height service columns align their final links horizontally. */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 34px;
}

.service-list article {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-top: 1px solid var(--line);
    padding-top: 25px;
}

.service-list h2 {
    margin-top: 16px;
    font-size: 1.5rem;
}

.service-list article > .text-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 8px;
}

/* Public form layout; module stylesheets may refine these defaults. */
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 70px;
}

.form-layout > aside h2,
.form-layout > div > h2 {
    font-size: 2rem;
}

.form-panel {
    padding: 32px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.form-notice {
    border-left: 3px solid var(--wine);
    padding-left: 16px;
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

legend {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 3px;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:disabled,
select:disabled,
textarea:disabled {
    color: var(--muted);
    opacity: 1;
    cursor: not-allowed;
}

input[type="file"] {
    font-size: 0.85rem;
}

.field-help {
    font-size: 0.85rem;
    margin-block: 8px 18px;
}

.route-links {
    display: grid;
    margin-top: 30px;
}

.route-links a {
    padding-block: 18px;
    border-top: 1px solid var(--line);
    color: var(--wine);
    font-weight: 600;
}

.plain-list {
    padding-left: 20px;
    color: var(--muted);
}

.plain-list li {
    margin-bottom: 10px;
}

.application-context {
    color: var(--wine);
    font-weight: 600;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.job-title a {
    text-decoration: none;
}

.job-title a:hover {
    text-decoration: underline;
}

.job .text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--wine);
}

.detail-eyebrow {
    margin-top: 35px;
}

.job-description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 75ch;
    padding-block: 20px;
}

.prose {
    max-width: 850px;
}

.prose h2 {
    font-size: 1.6rem;
    margin-top: 30px;
}

@media (max-width: 1100px) {
    .header-inner nav {
        order: 3;
        width: 100%;
        gap: 8px 22px;
    }
}

@media (max-width: 800px) {
    .service-list,
    .form-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-intro {
        padding-block: 40px 25px;
    }

    .form-panel {
        padding: 24px;
    }
}

@media (max-width: 420px) {
    .header-inner {
        gap: 10px;
        padding-block: 12px;
    }

    .header-inner nav {
        gap: 2px 16px;
    }

    .header-inner nav a {
        font-size: 0.85rem;
    }

    .header-action.button {
        padding: 9px 12px;
        font-size: 0.8rem;
        gap: 8px;
    }

    .form-panel {
        padding: 18px;
    }
}

/*
 * One vacancy per row.
 * Pagination counts are controlled by application logic, not CSS.
 * Full content remains available on the vacancy detail page.
 */
.job-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.job {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 28px;
    padding-block: 22px;
    min-width: 0;
}

.job-title,
.job-meta,
.job-summary {
    grid-column: 1;
}

.job-title {
    font-size: 1.2rem;
}

.job-title a,
.job-meta,
.job-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;

    /* Keep standard and prefixed declarations together. */
    -webkit-line-clamp: 2;
    line-clamp: 2;

    overflow: hidden;
    overflow-wrap: anywhere;
}

.job-summary {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.job > .text-link {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0;
    padding: 12px 0;
}

.faq-company-heading {
    margin-top: 35px;
}

@media (max-width: 800px) {
    .job {
        grid-template-columns: 1fr;
    }

    .job > .text-link {
        grid-column: 1;
        grid-row: auto;
        padding-bottom: 0;
    }
}
