@import "./section-common.css";

/* Clears the fixed navbar, the same way the contact page's first section does. */
.about-section {
    padding-top: calc(var(--nav-offset) + var(--sec-pad-y));
    /* The header row's left column ends at the headline, so a full section's
       bottom padding leaves an unusually tall void before Leadership picks up.
       Leadership is a --follow section and supplies its own top rhythm. */
    padding-bottom: calc(var(--sec-pad-y) * 0.35);
}

/* --- Leadership card ------------------------------------------------- */

.about-leadership .wwd-top-row {
    margin-bottom: var(--sec-gap);
}

.about-card {
    position: relative;
    max-width: 860px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    padding: clamp(28px, 3vw, 44px);
}

.about-card-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    color: var(--brand-bright);
    margin-bottom: 20px;
}

.about-card-name {
    font-family: DM Sans;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 16px;
}

.about-card-body {
    font-family: DM Sans;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-2);
    margin: 0;
    max-width: 62ch;
}

.about-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--brand-line);
    background: var(--brand-tint);
    color: var(--brand-bright);
    font-family: DM Sans;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.about-card-link:hover {
    background: var(--brand-line);
    border-color: var(--brand-bright);
}

.about-card-link:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 3px;
}

/* Reads as part of the label for sighted users; the anchor still announces the
   full "Vedant Makhija on LinkedIn" to a screen reader. */
.about-card-link-note {
    color: var(--text-4);
}

/* --- Values ---------------------------------------------------------- */

.about-values {
    list-style: none;
    margin: var(--sec-gap) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    overflow: hidden;
}

.about-value {
    background: var(--bg);
    padding: clamp(22px, 2.2vw, 30px);
}

.about-value-name {
    font-family: DM Sans;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 8px;
}

.about-value-desc {
    font-family: DM Sans;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 300;
    color: var(--text-3);
    margin: 0;
}

/* --- Closing CTA ------------------------------------------------------ */

.about-cta {
    margin-top: var(--sec-gap);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 2.6vw, 34px);
    border-radius: 20px;
    border: 1px solid var(--brand-line);
    background: var(--brand-tint);
}

.about-cta-title {
    font-family: DM Sans;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.about-cta-desc {
    font-family: DM Sans;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-3);
    margin: 6px 0 0;
}

.about-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    background: var(--brand-solid);
    color: var(--text);
    font-family: DM Sans;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    border-radius: 999px;
    padding: 14px 24px 14px 26px;
    transition: background-color 0.2s ease;
}

.about-cta-button:hover {
    background: var(--brand-hover);
}

.about-cta-button:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .about-values {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
