/*
 * To avoid overflow of the services table, we need to set the body-results to overflow-x: hidden;
 */

@font-face {
    font-family: 'Lato';
    src: url('../css/font/fonts/lato-v25-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../css/font/fonts/lato-v25-latin-300italic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../css/font/fonts/lato-v25-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../css/font/fonts/lato-v25-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../css/font/fonts/lato-v25-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../css/font/fonts/lato-v25-latin-700italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../css/font/fonts/lato-v25-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../css/font/fonts/lato-v25-latin-900italic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Domine';
    src: url('../css/font/fonts/domine-v25-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../css/font/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../css/font/fonts/montserrat-v31-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../css/font/fonts/montserrat-v31-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

section, .content-page-wrapper {
    overflow-x: hidden;
}
img {
     max-width: 100%;
     height: auto;
}
p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

ul.nav.nav-tabs {
    width: 100%;
}
.clickable-row {
    cursor: pointer;
}
#download {
    .masthead-subheading {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
        font-weight: 600;
    }

    .store-badge {
        height: 60px;
        width: auto;
        margin: 16px 0;
    }
    .alternatively {
        margin-top: 7rem;
    }
}
.rating {
    input {
        display: none;
    }

    label {
        font-size: 2rem;
        cursor: pointer;
        opacity: 0.4;
        transition:
                transform 0.2s ease,
                opacity 0.2s ease;
    }

    /* Hover effect */
    label:hover {
        transform: scale(1.2);
        opacity: 1;
    }

    /* Only selected emoji becomes fully visible */
    input:checked + label {
        opacity: 1;
        transform: scale(1.25);
    }
}

.rating-very-poor { color: #dc3545; }   /* red */
.rating-poor      { color: #fd7e14; }   /* orange */
.rating-okay      { color: #ffc107; }   /* amber */
.rating-good      { color: #20c997; }   /* teal-green */
.rating-excellent { color: #198754; }   /* green */

.billing-items-table {
    table.table {
        border-left: 1px solid black;
        border-right: 1px solid black;
    }
    .table-striped tbody tr:nth-last-child(2),
    .table-striped tbody tr:nth-last-child(3) {
        --bs-table-striped-bg: transparent;
        background-color: rgba(0, 0, 0, 0.01) !important;
        background-image: none !important;
    }
    tr.total {
        border-top: 1px solid black;
        border-bottom: 2px solid black;
        background-color: lightgray;
        font-weight: 600;
        td {
            padding-top: 0.1rem;
        }
    }
    tr.subtotal {
        border-top: 1px solid black;
    }
    tr.vat td, td.vat {
        font-size: 0.8rem;
        line-height: 1.55rem;
    }
}
.edit-billing-statement-table {
    tr.drafted-row {
        td {
            font-style: italic;
            color: darkgray;
        }
        &:hover td {
            color: darkgray;
        }
    }
}

:root {
    --ck-content-font-family: 'Lato';
}

.main-container {
    font-family: var(--ck-content-font-family);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.editor-container__sidebar_ckeditor-ai:has(.ck-tabs.ck-hidden) {
    max-width: 0;
    min-width: 0;
}

select:required:invalid {
    color: #6c757d; /* Bootstrap placeholder color for the empty Select... options */
}

.text-gold { color: #ffd700!important; }

header.landing-header {
    min-height: 840px;

    .language-selector-wrapper {
        text-align: right;
        z-index: 3;
        position: inherit;
    }
    .masthead {
        .masthead-avatar-wrapper {
            min-height: 110px;
        }
        .responsive-img {
            max-width: 500px;
            width: 100%;
            height: auto;

            &.d-print-block {
                max-width: 300px;
            }
        }
        .masthead-subheading {
            margin-top: 2rem;
            font-size: 1.5rem;
            letter-spacing: 0.05em;
            font-weight: 600;
        }
    }
}
.portfolio-modal-title {
    font-family: "Domine", serif;
}
.page-section {
    padding: 4rem 0 200px;

    .page-section-heading {
        font-family: "Domine", serif;
        line-height: 1.2!important;
        letter-spacing: 0.07rem;
    }
}
.text-justify {
    text-align: justify;
}

.contact-actions {
    .btn {
        padding-right: 1rem;
        padding-left: 1rem;

        &.whatsapp {
            font-size: 2rem;
        }
        &.phone {
            font-size: 1.6rem;
            padding: 11px 17px;
        }
    }
}

.candidate-features {
    ul {
        margin-bottom: 0!important;

        li {
            white-space: nowrap;
        }
    }
}

.contact-actions {
    min-height: 100px;

    #contact-action-form-resp {
        img {
            padding-bottom: 1rem;
        }
    }
}

.register-buttons {
    margin-top: 4rem;
}

.ck-editor {
    width: 100%!important;

    .ck-editor__editable_inline {
        min-height: 500px;
    }
}
.card {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.1);
}

section {
    break-after: always;
}

table.table {
    border: none;
    color: inherit;

    caption-side: top;
    caption {
        color: inherit;
    }

    tr, th, td {
        border: none;
    }

    & > :not(caption) > * > * {
        padding: 0;
    }

    th, td {
        padding: 0.2rem 0.25rem;
    }

    &.services-table {
        width: 100%;
        th {
            &.checkbox {
                width: 1%;
            }
            &.name {
                width: 30%;
            }
            &.summary {
                width: 60%;
            }
        }
    }
    &.locations-table {
        width: 100%;

        th {
            &.address {
                width: 30%;
            }
            &.state {
                width: 10%;
            }
        }

        /* Remove bullets and left padding for every nested list */
        ul,
        ul ul {
            list-style: none;
            margin: 0;
            padding-left: 0;
        }

        /* Optional: indent nested levels for readability */
        ul ul {
            padding-left: 1.25rem; /* adjust as needed */
        }
    }
}
b {
    font-weight: 600;
}

.content-page-wrapper {
    padding-bottom: 4rem;
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0));
    padding-top: calc(4.5rem + constant(safe-area-inset-top, 0));

    .content-page-heading {
        font-family: "Domine", serif;
        font-size: 2rem;
        font-weight: 600;
        padding-bottom: 0.5rem;
    }
    .content-page-body {

    }
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

/*
 * Taken and adapted from https://startbootstrap.github.io/startbootstrap-creative/
 */
#mainNav {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #143E3B;
    transition: background-color 0.2s ease;
    padding: 0.1rem 0;

    padding-top: calc(0.1rem + env(safe-area-inset-top, 0));
    padding-top: calc(0.1rem + constant(safe-area-inset-top, 0));

    .navbar-brand img {
        max-height: 80px;
        width: auto;
    }
    &.navbar-shrink .navbar-brand img {
        max-height: 65px;
        width: auto;
    }
    .navbar-toggler svg.fa-x {
        padding-left: 1px;
    }

    .navbar-toggler.collapsed {
        svg {
            &.fa-bars {
                display: inline-block;
            }
            &.fa-x {
                display: none;
            }
        }
    }
    .navbar-toggler:not(.collapsed) {
        svg {
            &.fa-bars {
                display: none;
            }
            &.fa-x {
                display: inline-block;
            }
        }
    }
    .nav-item {
        .nav-link {
            font-size: 1.15rem;
            letter-spacing: 0.025em;
        }

        &.login {
            margin-top: 0.3rem;
        }
    }
}
/* Ensure content doesn’t get cut off on Android notch devices */
@supports not (padding: env(safe-area-inset-top)) {
    .content-page-wrapper {
        padding-top: 6rem;
    }
    #mainNav {
        padding-top: 0.5rem; /* fallback for browsers that don’t support env() */
    }
}
#mainNav .navbar-collapse.show .navbar-nav .nav-item .nav-link:hover, #mainNav .navbar-collapse.show .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-collapse.collapsing .navbar-nav .nav-item .nav-link.active {
    color: #AD8F60;
}
#mainNav.service-area, footer.service-area {
    background-color: rgb(60, 95, 200);
}
#mainNav.admin-area, footer.admin-area {
    background-color: rgb(149, 175, 184);
}
nav.navbar.fixed-bottom {
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.15);
}
@media (min-width: 992px) {
    .lead {
        font-weight: 400;
    }
    #mainNav.index {
        box-shadow: none;
        background-color: transparent;
    }
    #mainNav .navbar-brand {
        color: rgba(255, 255, 255, 0.7);
    }
    #mainNav .navbar-brand:hover {
        color: #fff;
    }
    #mainNav .navbar-nav .nav-item .nav-link {
        color: rgba(255, 255, 255, 0.7);
        padding: 0 1rem;
    }
    #mainNav .navbar-nav .nav-item .nav-link:hover {
        color: #fff;
    }
    #mainNav .navbar-nav .nav-item:last-child .nav-link {
        padding-right: 0;
    }
    #mainNav.navbar-shrink {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        background-color: #143E3B;
        padding-top: 0.05rem;
        padding-bottom: 0.05rem;
        &.service-area {
            background-color: rgb(60, 95, 200);
        }
        &.admin-area {
            background-color: rgb(149, 175, 184);
        }
    }
    #mainNav.navbar-shrink .navbar-brand:hover {
        color: #AD8F60;
    }
    #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover {
        color: #AD8F60;
    }
}
.app-bottom-nav {
    height: 75px;
    padding: 0;
    border-top: 1px solid rgba(0,0,0,.1);
    transition: transform 0.25s ease-in-out;
    will-change: transform;

    &.nav-hidden {
        transform: translateY(100%);
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 0px;
        padding-right: 0px;
        line-height: 1;

        .small {
            font-size: 0.75rem;
        }
    }

    i {
        font-size: 1.25rem; /* ~fs-5 */
        line-height: 1;
    }

    .nav-link.active {
        background-color: transparent;
        color: var(--bs-primary);

        &::before {
            content: "";
            position: absolute;
            top: 1px;
            width: 40px;
            height: 4px;
            background: var(--bs-primary);
            border-radius: 0;
        }
    }
}

/*
 * Taken from https://startbootstrap.github.io/startbootstrap-creative/
 */
header {
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    background: url(../img/bg/masthead-bg.jpg) no-repeat center fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}
.landing-header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures video fills area like background-size: cover */
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1; /* ensures text appears above video */
    color: white;
    top: 50%;
    transform: translateY(-50%);
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 0.5;
}
@media (min-width: 992px) {
    header {
        height: 100vh;
        min-height: 1100px;
        padding-top: 4.5rem;
        padding-bottom: 0;
    }
}

a:not(.no-icon)[target="_blank"]::after {
    font-family: "bootstrap-icons";
    content: "\f1c5"; /* box-arrow-up-right */
    font-size: 0.9em;
    margin-left: 0.3em;
    vertical-align: middle;
    font-weight: normal;
}

form {
    .contact-input-group {
        select.contact-type {
            max-width: 60px;
            text-align: left;
        }
        &.was-validated {
            select.contact-type {
                padding-right: inherit;
                background-image: none;
            }
        }
    }
    .comp-field {
        position: absolute;
        left: -10000px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
}

#app-bookings {
    .calendar-container {
        margin: auto; background: #fff;
        border: 1px solid #dee2e6; border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        overflow-x: auto;

        .calendar-header {
            background-color: rgb(60, 95, 200); color: white; text-align: center;
            padding: 10px; font-size: 1.25rem; font-weight: 500;
            a, a:hover, a:focus {
                color: white; text-decoration: none;
            }
        }
        .calendar-grid {
            display: grid; grid-template-columns: repeat(7, 1fr);
        }
        .day-header {
            text-align: center; background: #f8f9fa; font-weight: 600;
            padding: 10px; border-bottom: 1px solid #dee2e6;
        }
        .day-cell {
            border: 1px solid #dee2e6; min-height: 120px; padding: 3px;
            font-size: 0.9rem; overflow: hidden;
            &.today { background-color: rgba(250, 239, 236, 0.80); }
            &.off-month {
                background-color: #f1f3f3;
                .day-number {
                    color: #b4b9bd;
                }
            }
        }
        .day-number { font-weight: 600; color: #6c757d; margin-bottom: 4px; }
        .booking {
            background-color: #e7f1ff; border-top: 4px solid #0d6efd;
            padding: 4px 6px; margin-bottom: 3px; border-radius: 4px;
            font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

            &.important { background-color: #fde8e8; border-top-color: #dc3545; }

            .booking-header {
                font-weight: 600;
            }
        }
    }
    .week-container {
        margin: auto;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        overflow-x: auto;

        .week-header {
            background-color: rgb(60, 95, 200);
            color: white;
            text-align: center;
            padding: 10px;
            font-size: 1.25rem;
            font-weight: 500;
        }
        .week-header a { color: white; text-decoration: none; }

        .week-grid {
            display: grid;
            grid-template-columns: 80px repeat(7, 1fr);
        }

        .day-header {
            background: #f8f9fa;
            font-weight: 600;
            text-align: center;
            border-bottom: 1px solid #dee2e6;
            padding: 8px;

            .day {
                display: inline;

                &.mobile {
                    display: none;
                }
            }
        }

        .day-body {
            position: relative;
        }

        .time-cell {
            text-align: right;
            padding-right: 5px;
            font-size: 0.8rem;
            color: #6c757d;
            border-bottom: 1px solid #dee2e6;
            height: 50px;
        }

        .day-column {
            border-left: 1px solid #dee2e6;
            position: relative;
        }
        .day-column.today { background-color: rgba(250,239,236,0.8); }

        .hour-slot {
            border-bottom: 1px solid #dee2e6;
            height: 50px; /* must match JS hourHeight */
        }

        .booking {
            background-color: rgba(231,241,255,0.7);
            border-top: 4px solid #0d6efd;
            border-bottom: 1px solid #0d6efd;
            border-radius: 4px;
            padding: 4px 6px;
            font-size: 0.8rem;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .booking-header { font-weight: 600; white-space: nowrap; overflow: hidden; }

    }

    .booking {
        &.tentative { background-color: rgba(255,243,205,0.55); border-top-color: #ffc107;border-bottom: 1px solid #ffc107; }
        &.busy { background-color: rgba(217,250,206,0.55); border-top-color: #289a02;border-bottom: 1px solid #289a02; }
        &.free { background-color: rgba(231,241,255,0.55); border-top-color: #0d6efd;border-bottom: 1px solid #0d6efd; }
        &.out-of-office { background-color: rgba(248,249,250,0.55); border-top-color: #6c757d;border-bottom: 1px solid #6c757d; }
        &.important { border-top-color: #dc3545; }
        &:not(.appointment) { border-top-style: dotted }
    }
}


#schedulingAssistantModal {
    .modal-body {
        padding: 0;

        .time-header {
            position: sticky;
            top: 0;
            z-index: 10;
            background: white;
            border-bottom: 2px solid #dee2e6;
            height: 30px;
        }

        .time-label-spacer {
            position: absolute;
            left: 0;
            width: 180px;
            height: 100%;
            background: #f1f3f5;
            border-right: 1px solid #dee2e6;
        }

        .time-scale {
            margin-left: 180px;
            position: relative;
            height: 100%;
        }

        /* ===== Time markers ===== */
        .time-marker {
            position: absolute;
            top: 0;
            height: 100%;
            border-left: 1px solid #ced4da;
            font-size: 11px;
            padding-left: 4px;
            color: #495057;
        }

        .time-marker.half {
            border-left: 1px dashed #dee2e6;
        }

        /* ===== Rows ===== */
        .schedule-row {
            position: relative;
            border-bottom: 1px solid #dee2e6;
            height: 50px;
            cursor: pointer;
        }

        .schedule-row:hover {
            background-color: #f8f9fa;
        }

        .schedule-label {
            position: absolute;
            left: 0;
            width: 180px;
            height: 100%;
            padding: 10px;
            font-weight: 600;
            background-color: #f1f3f5;
            border-right: 1px solid #dee2e6;

            .fitness-score {
                font-weight: 400;
                font-size: 0.75em;
            }
        }

        .schedule-timeline {
            margin-left: 180px;
            position: relative;
            height: 100%;
        }

        /* ===== Bookings ===== */
        .booking {
            position: absolute;
            top: 2px;
            height: 44px;
            border-radius: 4px;
            padding: 2px 3px;
            font-size: 12px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            border-top: 2px solid transparent;
            border-bottom: 1px solid transparent;

            &.proposed { background-color: rgba(13,110,253,0.25); border: 2px dashed #0d6efd; }
            &.tentative { background-color: rgba(255,243,205,0.55); border-top-color: #ffc107;border-bottom-color: #ffc107; }
            &.busy { background-color: rgba(217,250,206,0.55); border-top-color: #289a02;border-bottom-color: #289a02; }
            &.free { background-color: rgba(231,241,255,0.55); border-top-color: #0d6efd;border-bottom-color: #0d6efd; }
            &.out-of-office { background-color: rgba(248,249,250,0.55); border-top-color: #6c757d;border-bottom-color: #6c757d; }
            &.important { border-top-color: #dc3545; }
            &:not(.appointment) { border-top-style: dotted }
        }
    }
}

#map {
    width: 100%;
    height: 50vh;

    .icon-text {
        font-size: 0.75rem;
        margin-top: 0px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        max-width: 80px; /* adjust as needed */
    }
}

#users {
    td {
        &.not-verified {
            color: #a8424b;
        }
    }
}

/* Make it visible on he print medium */
.divider-custom-line, #how-it-works .step-icon {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.divider-custom {
    text-wrap: nowrap;
}

footer.footer {
    padding-top: 2rem;
    padding-bottom: 2rem;

    h5 {
        font-family: "Domine", serif;
    }
    .lead {
        margin-bottom: 0.5rem;
    }
    .swiss-made {
        margin-top: 1.3rem;
        font-size: 0.85rem;
        font-weight: 400;
        letter-spacing: 0.05rem;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        img {
            width: 0.90rem;
            height: auto;
            margin: 0 0.25em; /* optional spacing */
        }
    }
    a::after {
        display: none!important;
    }
}

.contact-form-entries {
    table caption {
        font-family: "Domine", serif;
        font-size: 2rem;
        font-weight: 600;
        padding-bottom: 0.5rem;
    }
}

.users-table {
    .btn-sm {
        padding: 0 0.25rem;
        font-size: inherit;
    }
}

/* Print-specific styles */
@media print {
    .masthead {
        padding-top: 0;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .content-page-wrapper {
        padding-bottom: calc(4rem + 75px);
    }
    footer {
        padding-bottom: 75px; /* match app-bottom-nav height */
    }
    #mainNav {
        min-height: 48px;
    }

    #mainNav .navbar-brand img {
        height: 43px; /* smaller logo */
    }

    #mainNav .nav-link {
        padding-top: 0.125rem;
        padding-bottom: 0.125rem;
    }
    #app-bookings {
        .week-container {
            .day-header {
                .day {
                    display: block;
                }
            }
        }
    }
    .store-badge {
         height: 64px;
     }
}


@media (max-width: 480px) {
    #app-bookings {
        .week-container {
            .day-header {
                .day {
                    &.full {
                        display: none;
                    }
                    &.mobile {
                        display: block;
                    }
                }
            }
        }
    }
}