
/* ODO - RESPONSIVE DESIGN */

/* Smartphones and portrait tablets */

@media (max-width: 767px),
       (max-width: 1024px) and (orientation: portrait) {

    /* Navigation */

    header.navbar-fixed-top {
        height: auto;
        min-height: 76px;
        background: #ffffff;
    }

    header nav ul.odo-bilingual-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 0 2px;
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
        padding: 5px 8px;
    }

    header nav ul.odo-bilingual-menu > li {
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        min-height: 36px;
        margin: 0;
    }

    header nav ul.odo-bilingual-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 0 2px;
        font-size: 10px;
        letter-spacing: 0.7px;
        line-height: 1.25;
        white-space: nowrap;
    }

    header .odo-language-item {
        margin: 0;
    }

    header .odo-language-switch {
        white-space: nowrap;
        font-size: 11px;
    }

    header .odo-language-switch a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
    }

    /* Homepage */

    #home {
        background: #ffffff !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        height: auto !important;
        min-height: 100vh;
        padding: 94px 0 30px;
    }

    /* Original logo, without graphic alteration */

    #home::before {
        content: "";
        display: block;
        flex: 0 0 auto;
        width: 100%;
        max-width: 620px;
        height: 240px;
        height: clamp(190px, 65vw, 330px);
        background-image: url(../img/home-bg-2.jpg);
        background-repeat: no-repeat;
        background-position: right center;
        background-size: 150% auto;
    }

    #home > .container {
        width: 100%;
        padding: 0 15px;
        text-align: center;
    }

    #home .disply-table,
    #home .table-cell {
        display: block;
        width: 100%;
        height: auto !important;
        text-align: center;
    }

    #home .odo-hero-name {
        font-size: 30px;
        font-size: clamp(26px, 8vw, 38px);
        line-height: 1.25;
        margin: 5px 0 12px;
    }

    #home .odo-hero-kicker {
        margin: 8px 0;
        font-size: 14px;
        line-height: 1.3;
    }

    #home .odo-hero-kicker::before {
        display: none;
    }

    #home .table-cell > br {
        display: none;
    }

    /* Section headings */

    h2.odo-section-title {
        font-size: 32px;
        line-height: 1.2;
        overflow-wrap: break-word;
    }

    h1.odo-project-title {
        font-size: 27px;
        line-height: 1.25;
        overflow-wrap: break-word;
    }

    #about,
    #experience,
    #projects,
    #google-reviews,
    #contact {
        scroll-margin-top: 90px;
    }
}

/* Larger smartphones and portrait tablets */

@media (min-width: 600px) and (max-width: 767px),
       (min-width: 600px) and (max-width: 1024px)
       and (orientation: portrait) {

    header.navbar-fixed-top {
        min-height: 65px;
    }

    header nav ul.odo-bilingual-menu {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 10px;
    }

    header nav ul.odo-bilingual-menu > li > a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    #home {
        padding-top: 80px;
    }

    #home .odo-hero-name {
        font-size: 38px;
    }

    h2.odo-section-title {
        font-size: 40px;
    }
}

/* ODO CONTACT FORM PREVIEW */
#contact .odo-contact-layout {
    clear: both; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 40px; padding: 0 15px; align-items: start;
}
#contact .odo-contact-details { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
#contact .odo-contact-details [class*="col-"] { float: none; width: 100%; padding: 0; min-width: 0; margin-left: 0; margin-right: 0; left: auto; right: auto; }
#contact .odo-contact-details .row { margin-left: 0; margin-right: 0; }
#contact .odo-contact-details img[src="img/widget.png"] { width: 110px; max-width: 100%; height: auto; }
#contact .odo-contact-details img { max-width: 100%; height: auto; }
#contact .odo-contact-email { display: inline-block; max-width: 100%; box-sizing: border-box;
    background: #9b090d; color: #fff; padding: 12px 18px; font: 400 15px/1.5 'Open Sans', sans-serif;
    overflow-wrap: anywhere; text-align: center; user-select: text; -webkit-user-select: text; }
#contact a:hover .odo-contact-email, #contact a:focus .odo-contact-email { background: #333; color: #fff; }
#contact a.odo-contact-phone { color: inherit; font: inherit; text-decoration: none; }
#contact a.odo-contact-phone:hover { color: #9b090d; }
#contact .odo-contact-invitation { font: 400 20px/1.5 'Open Sans', sans-serif; color: #333; margin: 18px 0 0; }
#contact .odo-contact-preview { min-width: 0; font: 400 14px/1.5 'Open Sans', sans-serif; color: #333; }
#contact .odo-contact-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
#contact .odo-contact-field { min-width: 0; }
#contact .odo-contact-message { grid-column: 1/-1; }
#contact .odo-contact-field label { display: block; font-weight: 400; margin: 0 0 5px; color: #444; }
#contact .odo-contact-field input, #contact .odo-contact-field textarea {
    width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #bdbdbd; border-radius: 0;
    background: #fff; color: #333; padding: 11px 12px; font: 400 16px/1.5 'Open Sans', sans-serif;
}
#contact .odo-contact-field textarea { resize: vertical; min-height: 120px; }
#contact .odo-contact-field input:focus, #contact .odo-contact-field textarea:focus { outline: 2px solid #9b090d; outline-offset: 1px; }
#contact .odo-contact-required, #contact .odo-contact-notice, #contact .odo-contact-pending { font-size: 12px; line-height: 1.6; color: #555; margin: 10px 0; }
#contact .odo-contact-notice a { color: #9b090d; text-decoration: underline; }
#contact .odo-contact-send { display: block; width: 100%; background: #000; color: #fff; border: 0;
    padding: 13px 18px; font: 600 12px/1.5 'Open Sans', sans-serif; letter-spacing: .5px; }
#contact .odo-contact-send:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 767px) {
    #projects, #google-reviews, #contact { padding-top: 60px; padding-bottom: 60px; }
    #projects .h-50, #google-reviews .h-50, #contact .h-50 { height: 25px; }
    #contact .odo-contact-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
    #contact .odo-contact-fields { grid-template-columns: minmax(0,1fr); gap: 12px; }
    #contact .odo-contact-details { gap: 16px; }
    #contact .odo-contact-invitation { font-size: 17px; }
    #contact .odo-contact-email { font-size: 13px; padding: 12px 10px; }
    header nav a:focus-visible { outline: 2px solid #9b090d; outline-offset: 2px; border-radius: 2px; }
}


/* ODO TABLET OPTIMIZATION */

/* Tablet navigation */

@media (min-width: 768px) and (max-width: 1366px)
       and (pointer: coarse) {

    header.navbar-fixed-top {
        height: auto;
        min-height: 65px;
        background: #fff;
    }

    header nav ul.odo-bilingual-menu {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: center;
        width: 100%;
        max-width: 860px;
        margin: 0 auto;
        padding: 8px 12px;
    }

    header nav ul.odo-bilingual-menu > li {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        min-width: 0;
        min-height: 44px;
    }

    header nav ul.odo-bilingual-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        font-size: 12px;
        letter-spacing: .8px;
        padding: 0 3px;
    }

    header .odo-language-switch {
        font-size: 12px;
        white-space: nowrap;
    }

    header .odo-language-switch a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    #about,
    #experience,
    #projects,
    #google-reviews,
    #contact {
        scroll-margin-top: 80px;
    }
}

/* Larger tablets - portrait */

@media (min-width: 900px) and (max-width: 1024px)
       and (orientation: portrait)
       and (pointer: coarse) {

    #home::before {
        width: 82%;
        max-width: 760px;
        height: auto;
        aspect-ratio: 620 / 330;
        background-size: 150% auto;
        background-position: right center;
    }

    #home .odo-hero-name {
        font-size: 40px;
    }

    #home .odo-hero-kicker {
        font-size: 15px;
    }
}

/* Tablets - landscape */

@media (min-width: 768px) and (max-width: 1366px)
       and (orientation: landscape)
       and (pointer: coarse) {

    #home {
        background: #ffffff !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        gap: 3%;
        height: auto !important;
        min-height: 100vh;
        padding: 80px 5% 35px;
    }

    /* Original logo on the right */

    #home::before {
        content: "";
        display: block;
        order: 2;
        flex: 0 1 56%;
        width: 56%;
        min-width: 0;
        max-width: 720px;
        height: auto;
        aspect-ratio: 620 / 330;
        background-image: url(../img/home-bg-2.jpg);
        background-repeat: no-repeat;
        background-position: right center;
        background-size: 150% auto;
    }

    /* Architects' names on the left */

    #home > .container {
        order: 1;
        flex: 0 1 40%;
        width: 40%;
        min-width: 0;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    #home .disply-table,
    #home .table-cell {
        display: block;
        width: 100%;
        height: auto !important;
        text-align: left;
    }

    #home .odo-hero-name {
        font-size: clamp(28px, 3.4vw, 44px);
        line-height: 1.25;
        margin: 8px 0 24px;
    }

    #home .odo-hero-kicker {
        font-size: 14px;
        line-height: 1.4;
        margin: 8px 0;
    }

    #home .table-cell > br {
        display: none;
    }
}

/* END ODO TABLET OPTIMIZATION */


/* ODO TABLET FULL LOGO */

@media (min-width: 768px) and (max-width: 1366px)
       and (pointer: coarse) {

    #home::before {
        background-image:
            url(../img/odo-logo-tablet.png) !important;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        height: auto;
        aspect-ratio: 1254 / 685;
    }
}

@media (min-width: 768px) and (max-width: 1024px)
       and (orientation: portrait)
       and (pointer: coarse) {

    #home::before {
        width: 82%;
        max-width: 760px;
        flex: 0 0 auto;
        margin: 0 auto 20px;
    }
}

@media (min-width: 768px) and (max-width: 1366px)
       and (orientation: landscape)
       and (pointer: coarse) {

    #home::before {
        width: 56%;
        max-width: 720px;
        flex: 0 1 56%;
        margin: 0;
    }
}

/* END ODO TABLET FULL LOGO */


/* ODO FAQ: preserve two navigation rows on small screens. */
@media (max-width: 599px) {
    header nav ul.odo-bilingual-menu.odo-menu-seven {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    header nav ul.odo-bilingual-menu.odo-menu-seven > li > a {
        white-space: normal; text-align: center;
        letter-spacing: .3px; overflow-wrap: anywhere;
    }
}
@media (min-width: 600px) and (max-width: 767px),
       (min-width: 600px) and (max-width: 1024px) and (orientation: portrait),
       (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {
    header nav ul.odo-bilingual-menu.odo-menu-seven {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
    header nav ul.odo-bilingual-menu.odo-menu-seven > li > a {
        white-space: normal; text-align: center; letter-spacing: .5px;
    }
}
