@font-face {
    font-family: "Roboto";
    font-weight: 300;
    font-style: normal;
    src:
        url("../font/roboto/Roboto-Light.69f8a0617ac4.woff2") format("woff2"),
        url("../font/roboto/Roboto-Light.3b813c2ae0d0.woff") format("woff"),
        url("../font/roboto/Roboto-Light.fc84e998bc29.ttf") format("truetype");
}

@font-face {
    font-family: "Roboto";
    font-weight: 400;
    font-style: normal;
    src:
        url("../font/roboto/Roboto-Regular.2751ee43015f.woff2") format("woff2"),
        url("../font/roboto/Roboto-Regular.ba3dcd8903e3.woff") format("woff"),
        url("../font/roboto/Roboto-Regular.3e1af3ef546b.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    background-color: #f3f5f9;
    font-family: "Roboto", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a,
a:hover {
    text-decoration: none;
}

/* Restore Bootstrap 4 gutter (15px each side).
   Bootstrap 5 default is --bs-gutter-x: 1.5rem (~12px each side).
   .container-fluid and .row each declare their own --bs-gutter-x, so
   CSS custom property inheritance does not bridge them — both must be
   overridden explicitly. .col-* have no own declaration and inherit
   from .row, so they are covered by the .row override. */
.container-fluid,
.row {
    --bs-gutter-x: 40px;
}

.wrapper {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    flex: 1 0 auto;
}

.wrapper .sidebar {
    width: 250px;
    height: 100%;
    background: #597694;
    padding: 30px 0px;
    position: fixed;
}

.wrapper .sidebar h2 {
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
}

.wrapper .sidebar ul li {
    padding: 15px;
    border-bottom: 1px solid #bdb8d7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wrapper .sidebar ul li a {
    color: #5a7694;
    display: block;
    text-decoration: none;
}

.wrapper .sidebar ul li a .fas {
    width: 25px;
}

.wrapper .sidebar ul li:hover {
    background-color: #8398af;
}

.wrapper .sidebar ul li:hover a {
    color: #fff;
    text-decoration: none;
}

.wrapper .sidebar ul {
    padding-left: 0;
    list-style: none;
}

.wrapper .sidebar .footer-bottom-0 {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.wrapper .sidebar .social_media {
    display: flex;
    justify-content: center;
}

.wrapper .sidebar .social_media a {
    font-size: x-large;
    display: block;
    width: 40px;
    line-height: 45px;
    text-align: center;
    margin: 0 5px 16px 5px;
    color: #5a7694;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-decoration: none;
}

.wrapper .main_content {
    width: 100%;
}

.header-about {
    background: #d6dde4;
}

.header-portfolio {
    background: #f6ece7;
}

.wrapper .main_content .header {
    padding: 10px;
    color: #717171;
    border-bottom: 1px solid #e0e4e8;
}

.wrapper .main_content .info {
    margin: 20px;
    color: #717171;
    line-height: 25px;
}

.wrapper .main_content .info div {
    margin-bottom: 20px;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

.no-ml {
    margin-left: 0px;
    flex-basis: 100%;
    flex-shrink: 0;
}

/* Content divs after mobile nav in .wrapper must also be full-width */
.wrapper > .no-ml ~ div {
    width: 100%;
}

.header-ml {
    margin-left: -300px;
}

#tirinha-portfolio {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

#tirinha-about {
    height: 70px;
    width: 100%;
    object-fit: cover;
}

@media (max-height: 670px) {
    #tirinha-portfolio {
        height: 150px;
    }
}

.titulo {
    font-size: 50px;
    font-weight: 200;
    text-align: center;
    margin-top: 0;
    margin-bottom: 75px;
    color: #5a7694 !important;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol", "Noto Color Emoji" !important;
}

@media (max-height: 670px) {
    .titulo {
        font-size: 40px;
        margin-top: 0;
    }
}

/* ════════════════════════════════════════════════
   UNIFIED PAGE HEADER BAR
   Used by portfolio and about pages on desktop.
   Extends behind the fixed sidebar via negative
   margin, matching the sidebar width exactly.
   ════════════════════════════════════════════════ */
.page-header-bar {
    width: calc(100% + 300px);
    margin-left: -300px;
    height: 140px;
    background: linear-gradient(135deg, #3d5f7a 0%, #597694 55%, #7a9eb8 100%);
    display: flex;
    align-items: center;
    padding-left: 316px;
    padding-right: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.page-header-title {
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.90);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ── Responsive layout: main content offset on desktop ── */
@media (min-width: 992px) {
    main.main-content {
        margin-left: 300px;
    }
}

main.main-content {
    flex: 1;
    min-width: 0;
}

/* ── Mobile: guarantee full width regardless of flex-basis calculation ── */
@media (max-width: 991px) {
    main.main-content {
        width: 100%;
        flex-basis: 100%;
    }
    /* Prevent flex-wrap from distributing extra vertical space between the
       mobile-menu row and the main-content row. Without this, align-content
       defaults to stretch and the mobile menu row expands, pushing main
       (and the filter chips inside it) toward the middle of the page. */
    .wrapper {
        align-content: flex-start;
    }
}

/* ── Main content info area (mirrors .wrapper .main_content .info for new layout) ── */
main.main-content .info {
    margin: 20px;
    color: #717171;
    line-height: 25px;
}

main.main-content .info div {
    margin-bottom: 20px;
}

/* ── Desktop content margin helper ── */
@media (min-width: 992px) {
    .margin-left-20 {
        margin-left: 20px !important;
    }
}

/* ── Site footer ── */
.site-footer {
    background-color: #597694;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.site-footer__privacy,
.site-footer__privacy:hover {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 11px;
}

.link_button {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: solid 1px #20538d;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 1px rgba(0, 0, 0, 0.2);
    background: #4479ba;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
}
