* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
    font-weight: 600;
}

/* desktop base */
html,
body {
    height: 100%;
}

body {
    font-family: "elza", sans-serif;
    font-weight: 600;
}

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

.container-fluid {
    padding: 0 2rem;
}

/* ======== Root sizes ======== */

/* iPad / tablet */
@media (max-width: 992px) and (min-width: 577px) {
    :root {
        font-size: 12px;
    }
}

/* telemóvel */
@media (max-width: 576px) {
    :root {
        font-size: 14px;
    }
}

/* ======== Container ======== */

@media (max-width: 992px) {
    .container-fluid {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 1rem 1rem;
    }
}

/* ======== Header ======== */

header {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem 0;
    font-size: 1.5rem;
    height: 4rem;
    line-height: 1;
}

header div:nth-child(2) {
    margin-left: auto;
}

header div:nth-child(3) {
    margin-left: 3rem;
}

/* ======== Footer ======== */

footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem 2rem;
    font-size: 1.5rem;
    height: auto;
    line-height: 1;
}

footer div:nth-child(2) {
    margin-left: auto;
}

footer div:nth-child(3) {
    margin-left: 3rem;
}

/* ======== iPad / tablet ======== */

@media (max-width: 1200px) and (min-width: 577px) {
    header {
        padding: 1.5rem 1.5rem 0;
        font-size: 1.9rem;
        height: 4rem;
    }

    footer {
        padding: 1.5rem 1.5rem 1.5rem;
        font-size: 1.9rem;
        height: auto;
    }

    header div:nth-child(3),
    footer div:nth-child(3) {
        margin-left: 3rem;
    }
}

/* ======== telemóvel ======== */

@media (max-width: 576px) {
    header {
        padding: 1rem 1rem 0;
        font-size: 1.1rem;
        height: 4rem;
    }

    footer {
        padding: 1rem 1rem 1rem;
        font-size: 1.1rem;
        height: auto;
    }

    header div:nth-child(3),
    footer div:nth-child(3) {
        margin-left: 1.25rem;
    }
}

/* ======== Main ======== */

main {
    min-height: calc(100vh - 10rem);
    min-height: calc((var(--vh, 1vh) * 100) - 10rem);
}

/* ======== Index image =========== */

.single-image-center {
    padding: 0 2rem;
    margin: 2rem 0 0;
}

.single-image-center img {
    width: 100%;
    height: auto;
    display: block;
}

/* tablet */
@media (max-width: 1200px) {
    body.index-page {
        overflow: hidden;
        min-height: 100dvh;
    }

    body.work-page {
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 100dvh;
    }

    .single-image-center {
        padding: 0 1.5rem;
        margin: 1rem 0 1.5rem;
        height: calc(100dvh - 4rem - 1rem - 1.5rem);
    }

    .single-image-center img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 75% center;
        display: block;
    }
}

/* telemóvel */
@media (max-width: 576px) {
    body.index-page {
        overflow: hidden;
        min-height: 100dvh;
    }

    body.work-page {
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 100dvh;
    }

    .single-image-center {
        padding: 0 1rem;
        margin: 1rem 0 1rem;
        height: calc(100dvh - 4rem - 1rem - 1rem);
    }

    .single-image-center img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 62% center;
        display: block;
    }
}

/* ======== Work =========== */

.communication-design {
    padding-top: 3rem; /* aumentado no desktop */
}

@media (max-width: 1200px) and (min-width: 577px) {
    .communication-design {
        padding-top: 3rem; /* mesmo espaço no iPad */
    }
}

@media (max-width: 576px) {
    .communication-design {
        padding-top: 0.1rem; /* mantém mobile como estava */
    }
}

.card {
    margin-bottom: 4rem;
}

/* Row com alinhamento de altura */
.card .row {
    display: flex;
    flex-wrap: wrap;
}

/* Imagem */
.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-position: center;
    background-size: cover;
}

/* Coluna do texto */
.card-text-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Título e texto */
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.card-text {
    margin: 0;
}

.card-text p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5rem;
    font-weight: 400;
}

/* remove espaço do último parágrafo */
.card-text p:last-child {
    margin-bottom: 0;
}

/* ======== Tablet (iPad) ======== */
@media (max-width: 1200px) {
    .card {
        margin-bottom: 3rem;
    }

    .card-title {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .card-text p {
        font-size: 1.3rem;
        line-height: 1.5rem;
    }
}

/* ======== Mobile ======== */
@media (max-width: 576px) {
    .card .row {
        flex-direction: column;
    }

    .card{
       margin-bottom: 2.1rem;
    }

    .card-text-col {
        justify-content: flex-start;
        margin-top: 0.8rem;
    }

    .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }

    .card-text p {
        font-size: 0.9rem;
        line-height: 1.3rem;
    }
}

/* ======== Video ======== */

.video-container {
    margin-bottom: 1.5rem;
    position: relative;
    height: auto;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: black;
}

@media (max-width: 992px) {
    .video-container {
        margin-bottom: 0.75rem;
    }
}

/* ======== SINGLE PAGE ======== */

.single-images {
    margin: 3rem 0 1rem 0; /* aumentado no desktop */
}

.single-images .row {
    justify-content: center;
}

.single-images .col-9 {
    padding: 0;
}

.single-image {
    margin-bottom: 1.5rem;
}

.single-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1200px) and (min-width: 577px) {
    .single-images {
        margin: 3rem 0 2rem 0; /* mesmo espaço no iPad */
    }
}

@media (max-width: 576px) {
    .single-images {
        margin: 0.1rem 0 1rem 0; /* mantém mobile como estava */
    }

    .single-images .row {
        margin: 0;
    }

    .single-images .col-9 {
        width: 100%;
        padding: 0;
    }
}

/* ====== INFO SECTION ====== */

.single-info {
    margin-bottom: 3rem;
}

.single-info .row {
    justify-content: flex-start;
}

.single-info .col-9 {
    padding: 0;
}

.single-info .col-sm-6 {
    padding-left: 0;
    padding-right: 24px;
}

/* ====== TITLE ====== */

.single-info-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.4rem;
}

/* ====== TEXT ====== */

.single-info-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5rem;
    font-weight: 400;
    text-align: left;
    max-width: 750px;
    width: 100%;
}

/* ===== TABLET ===== */
@media (max-width: 1200px) {
    .single-image {
        margin-bottom: 1rem;
    }

    .single-info {
        margin-bottom: 2rem;
    }

    .single-info-title {
        font-size: 2.1rem;
        line-height: 2rem;
        font-weight: 600;
        margin-bottom: 2rem;
    }

    .single-info-text {
        font-size: 1.5rem;
        line-height: 2.1rem;
        margin-bottom: 1.2rem;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .single-images .col-9,
    .single-info .col-9 {
        width: 100%;
    }

    .single-info .row {
        margin: 0;
    }

    .single-info .col-9 {
        padding: 0;
    }

    .single-info .col-sm-6 {
        width: 100%;
        padding: 0;
    }

    .single-info-title {
        font-size: 1.5rem;
        line-height: 1.8rem;
        margin-bottom: 1rem;
    }

    .single-info-text {
        font-size: 0.95rem;
        line-height: 1.4rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .single-info {
        margin-bottom: 1.5rem;
    }
}

/* ======== About Page ======== */

.info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100vh - 4rem);
    padding-bottom: 2rem;
}

.info .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ======== Texto ======== */
.info-text {
    font-size: 1.1rem;
    margin-top: 31rem;
    max-width: 55rem;
    line-height: 1.4;
    font-weight: 400;
}

/* ======== Contactos ======== */
.contacts-title {
    font-size: 1.1rem;
    margin-top: 31rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.contacts {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 400;
    line-height: 1.3;
}

.contacts a {
    font-weight: 400;
}

.contacts:first-of-type {
    margin-top: 10rem;
}

/* ======== MOBILE ONLY ======== */
@media (max-width: 576px) {
    html,
    body.about-page {
        height: 100%;
        overflow: hidden;
    }

    body.about-page {
        min-height: 100svh;
    }

    .info {
        justify-content: flex-end;
        min-height: calc(100dvh - 4rem);
        padding-bottom: 0.75rem;
    }

    .info .container-fluid {
        padding: 0 1rem;
    }

    .info .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-text-col,
    .contacts-col {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .info-text {
        margin-top: 0;
        margin-bottom: 2rem;
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.4rem;
    }

    .contacts-col {
        margin-bottom: 0;
    }

    .contacts-title {
        margin-top: 0;
        font-size: 0.95rem;
    }

    .contacts {
        line-height: 1.2rem;
        font-size: 0.95rem;
    }

    .contacts:first-of-type {
        margin-top: 0;
    }

    .contacts:last-child {
        margin-bottom: 0.3rem;
    }
}

/* ======== iPad / tablet ======== */
@media (max-width: 1200px) and (min-width: 577px) {
    .info-text {
        font-size: 1.5rem;
        line-height: 2.1rem;
    }

    .contacts-title {
        font-size: 1.5rem;
    }

    .contacts {
        font-size: 1.5rem;
    }

    .info {
        padding-bottom: 1.5rem;
    }
}

