/*START FONT*/
.white {color: white !important;}
.black {color: #333 !important;}
a {transition: .2s;}
a:hover.arch-link {color: #e32625 !important; transform: scale(1.05);}
a:hover.project-card {color: #e32625 !important;}
.arch-h1 {
    margin: 0 !important;
}
.arch-h2 {
    color: color(display-p3 0.2 0.2 0.2);
    text-align: center;
    -webkit-text-stroke-color: #333;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: color(display-p3 0.2 0.2 0.2);
    font-family: "Kumbh Sans";
    font-size: 56px;
    font-style: normal;
    font-weight: 800;
    line-height: 64px;
}
.arch-h3 {
    text-align: center;
    font-family: "Kumbh Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
    position: relative;
    z-index: 3 !important;
}
.arch-box-title-2 {
    font-family: "Kumbh Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    line-height: 32px; 
    position: relative;
}
.arch-box-title-2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e32625;
}
.arch-link {
    color: #e32625;
    font-family: "Kumbh Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.arch-link-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}
.arch-galerie-title {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
    font-size: 56px;
    font-style: normal;
    font-weight: 800;
    line-height: 64px;
}
/*END FONT*/

/*START BOXES */
.arch-box {
    max-width: 450px !important;
}
.arch-box-text {
    padding-top: 16px;
}
.arch-box-content {
    padding: 40px !important;
    height: unset !important;
    border-radius: 12px;
    border: 0.5px solid #AEAEAE;
}
.arch-box-container, .arch-galerie-container {
    flex-direction: column;
}
.arch-box-container .row {
    justify-content: center;
}
/*END BOXES */
/*START GALERIE*/
.arch-galerie-top-row {
    align-items: end;
    width: 100%;
}
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: #e8e6e3;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.04);
}

.project-card__title {
    margin: 14px 0 0;
    font-size: 20px;
    font-weight: 700;
}
/*END GALERIE*/
.arch-bottom-position {
    padding-bottom: 60px;
}
.arch-spacer-y {
    padding-top: 120px ;
    padding-bottom: 120px ;
}
/*START PROFILE*/
.arch-profile-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.arch-profile-photo img {
    display: block;
    width: 100%;
    height: auto !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .18);
}
.arch-profile-text {
    padding-left: 96px;
}
/* nadpis: přebírá arch-h2, jen zarovnám doleva (arch-h2 má text-align:center) */
.arch-profile-name {
    text-align: left !important;
    margin: 0 0 12px !important;
}
.arch-profile-role {
    margin: 0 0 20px;
    color: #6B6B6B;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
}
.arch-profile-divider {
    margin: 32px 0px 32px;
    border: 0;
    border-top: 2px solid #E0DDD9;
}
.arch-profile-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* podnadpis "Náš přístup": přebírá arch-box-title-2, jen zmenším a udělám verzálky */
.arch-profile-label {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #e32625;
}
.arch-profile-label:after {
    display: none;   /* skryje červené podtržení z arch-box-title-2 */
}
.arch-profile-p {
    margin-bottom: 20px;
    font-family: "Kumbh Sans";
    font-size: 17px;
    line-height: 1.75;
    color: #565b62;
}
/*END PROFILE*/
/*START DIVIDER IMAGE*/
.full-width-img {
    background-image: url(/images/architektonice-studio/bottom.webp);
    background-size: cover;
    background-position: center;
    height: 600px;
}

/*END DIVIDER IMAGE*/

/*REFERENCE START*/
.arch-galerie-section {
    overflow: hidden;
}
.reference-link {
    display: flex !important;
    max-width: 590px;
    width: 100%;
    background-color: #fff;
    color: #333 !important;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    transition: box-shadow .3s ease-out, color .3s ease-out;
}
.reference-link:hover {
    color: #000 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}
.reference-link .reference-img-wrapper {
    padding: 0 !important;              /* zruší gutter sloupce → obrázek je na krok */
    min-height: 160px;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: .5s;
}
.reference-link:hover .reference-img-wrapper {
    background-size: 220% !important;
}
.reference-link:hover .reference-img-wrapper {
    transform: unset !important;         /* jemný zoom na hover */
}
.reference-img-wrapper-placeholder {
    background-size: 50% !important;
    transform: none !important;
}
.reference-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;                 /* kotva pro absolutní tlačítko */
    padding: 24px 28px 70px 28px !important;   /* spodní odsazení = místo pro tlačítko */
}
.arch-reference-arrows {
    padding-top: 50px;
}
.reference-titles {
    padding-bottom: 30px;
    line-height: 1.4em !important;
    min-height: 2.8em !important;
}
.reference-titles .title {
    line-height: 1.4em !important;
    min-height: 2.8em !important;
    padding-bottom: 10px !important;
}
.reference-titles .year {
    margin-bottom: 12px;
    color: #D5D5D5;
    font-size: 18px;
    font-weight: 800;
    line-height: normal;
}
.reference-titles .title {
    margin: 0 0 5px;
    color: #000;
    font-size: 20px;
    font-weight: 800;
    line-height: normal;
}
.reference-description {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.reference-description p:not(:first-of-type) {
    display: none;                      /* kdyby popisek přišel jako víc <p> */
}
.reference-button {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 42px;
    background-color: #e32625;
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    line-height: normal;
    border-radius: 9px 0 8px 0;         /* pravý dolní roh sladěný s rohem karty */
    transition: background-color .2s;
}
.reference-link:hover .reference-button {
    background-color: #F90000;
}
/*REFERENCE END*/
/*CONTACT CTA START*/
.contact-cta-section .contact-cta-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: center;
}
.contact-cta-box .btn {
    background-color: white;
}
/*CONTACT CTA END*/

/*MEDIA QUERIES*/
@media (min-width: 992px) {
    .d-mobile {
        display: none;
    } 
}
@media (max-width: 991px) {
    .d-desktop {
        display: none;
    } 
    .project-card__image {
        aspect-ratio: 6 / 3;
    }
    .arch-galerie-bottom-row {
        padding-top: 32px;
    }
    .arch-profile-name {
        font-size: 34px !important;
        line-height: 36px !important;
    }
    .full-width-img {
        height: 40vw;
    }
    .arch-h1 {
        margin: 0 !important;
    }
    .arch-h2 {
        font-size: 30px;
        font-weight: 800;
        line-height: 43px;
    }
    .arch-h3 {
        font-size: 20px;
        font-weight: 500;
        line-height: 30px;
    }
    .arch-box-title-2 {
        font-size: 20px;
        font-weight: 800;
        line-height: 30px; 
    }
    .arch-galerie-title {
        font-size: 45px;
        font-weight: 800;
        line-height: 54px;
    }
    .arch-galerie-top-row {
        flex-direction: column;
        align-items: center;
    }
    .arch-profile-photo {
        display: flex;
        justify-content: center;
    }
    .arch-profile-photo img {
        width: 60vw !important;
        object-fit: cover;
    }
    .arch-profile-row {
        gap: 50px;
    }
    .arch-profile-text {
        padding-left: 0px;
    }
}
@media (max-width: 600px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }
    .reference-link {
        display: flex !important;
        max-width: 190px;
        height: 100%;
        flex-direction: column;
    }
    .reference-link .reference-img-wrapper {
        min-height: 100px !important; 
        width: 100% !important;
    }
    .reference-text-wrapper {
        padding: 10px 10px 80px 10px !important;
    }
    .reference-titles {
        padding-bottom: 10px;
    }
    .reference-button {
        padding: 12px 12px;
        font-size: 14px;
    }
    .arch-reference-arrows {
        padding-top: 20px;
    }
}