
/* ==========================================
   LOMISA · PROJECT CARD
   Tarjetas de proyectos
   ========================================== */


/* Tarjeta */

.lm-project-card {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}


/* Enlace completo */

.lm-project-card__link,
.lm-project-card__link:visited,
.lm-project-card__link:hover,
.lm-project-card__link:focus {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}


/* ==========================================
   Imagen
   ========================================== */

.lm-project-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: #edf1f3;
}

.lm-project-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;

    transition: transform 0.8s
        cubic-bezier(0.22, 1, 0.36, 1);
}

.lm-project-card__link:hover
.lm-project-card__image {
    transform: scale(1.055);
}


/* ==========================================
   Contenido
   ========================================== */

.lm-project-card__content {
    padding: 20px 0 0;
}


/* Seccion y flecha */

.lm-project-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin: 0 0 8px;
}


/* Arquitectura / Seccion */

.lm-project-card__section {
    color: #16b9dc;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* Flecha */

.lm-project-card__arrow {
    display: inline-block;
    flex-shrink: 0;

    color: #16b9dc;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    transition: transform 0.35s ease;
}

.lm-project-card__link:hover
.lm-project-card__arrow {
    transform: translate(4px, -4px);
}


/* ==========================================
   Titulo
   ========================================== */

.lm-project-card__title {
    margin: 0 0 6px;
    padding: 0;

    color: #002e60;
    font-size: clamp(25px, 2.1vw, 34px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.015em;

    text-decoration: none;
}


/* ==========================================
   Tipologia e intervencion
   ========================================== */

.lm-project-card__meta {
    margin: 0;
    padding: 0;

    color: #617386;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}


/* ==========================================
   Linea inferior
   ========================================== */

.lm-project-card__line {
    display: block;
    width: 100%;
    height: 1px;

    margin-top: 18px;

    background: #dce5eb;

    transition: background-color 0.35s ease;
}

.lm-project-card__link:hover
.lm-project-card__line {
    background: #16b9dc;
}


/* ==========================================
   Accesibilidad
   ========================================== */

.lm-project-card__link:focus-visible {
    outline: 2px solid #16b9dc;
    outline-offset: 6px;
}


/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1024px) {

    .lm-project-card__title {
        font-size: 27px;
    }

    .lm-project-card__meta {
        font-size: 13px;
    }
}

@media (max-width: 767px) {

    .lm-project-card__media {
        aspect-ratio: 4 / 3;
    }

    .lm-project-card__content {
        padding-top: 18px;
    }

    .lm-project-card__title {
        font-size: 27px;
    }
}


/* ==========================================
   LOMISA · PROJECT GRID
   Alineacion con el hero
   ========================================== */

/* Grupo exterior */

body.no-sidebar .entry-content
.wp-block-group.alignfull.lm-project-grid {

    box-sizing: border-box;

    width: 100%;
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;

    padding: 70px clamp(32px, 6.5vw, 120px) 100px;
}


/* Contenedor interior de Gutenberg */

body.no-sidebar .entry-content
.lm-project-grid > .wp-block-group__inner-container {

    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
    padding: 0;
}


/* Columnas */

.lm-project-grid .wp-block-columns {
    width: 100%;
    max-width: none;
    margin: 0;
}


/* Movil */

@media (max-width: 767px) {

    body.no-sidebar .entry-content
    .wp-block-group.alignfull.lm-project-grid {

        padding: 45px 24px 70px;
    }
}


/* ==========================================
   Movimiento reducido
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .lm-project-card__image,
    .lm-project-card__arrow,
    .lm-project-card__line {
        transition: none;
    }
}
