/* ================================================
   Bootstrap 5 theme overrides — matches original
   site design: WorkSans font, night-blue/moss-green
   ================================================ */

:root {
    /* Font */
    --bs-font-sans-serif: 'WorkSans', system-ui, -apple-system, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: #1d1d1b;

    /* Primary = Night Blue */
    --bs-primary: #003255;
    --bs-primary-rgb: 0, 50, 85;

    /* Secondary = Moss Green */
    --bs-secondary: #959e6c;
    --bs-secondary-rgb: 149, 158, 108;

    /* Info = Sea Blue */
    --bs-info: #4678C8;
    --bs-info-rgb: 70, 120, 200;

    /* Light = card bg */
    --bs-light: #EFF4F7;
    --bs-light-rgb: 239, 244, 247;

    --bs-border-radius: 0.5rem;
    --bs-border-radius-lg: 1.25rem;

    /* Site-specific */
    --site-night-blue: #003255;
    --site-night-blue-rgb: 0, 50, 85;
    --site-moss-green: #959e6c;
    --site-sea-blue: #4678C8;
    --site-container-width: 72rem;
    --site-medium-width: 46rem;
}

/* ========================
   BASE
   ======================== */
body {
    background-image: url("../images/background.webp");
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: var(--bs-body-color);
}

.icon {
    height: 1.5rem;
    width: 1.5rem;
    flex-shrink: 0;
}

/* ========================
   BUTTONS
   ======================== */
.btn-primary {
    --bs-btn-bg: var(--site-night-blue);
    --bs-btn-border-color: var(--site-night-blue);
    --bs-btn-hover-bg: rgba(0, 50, 85, 0.8);
    --bs-btn-hover-border-color: rgba(0, 50, 85, 0.8);
    --bs-btn-active-bg: var(--site-night-blue);
    --bs-btn-active-border-color: var(--site-night-blue);
    --bs-btn-color: white;
    --bs-btn-hover-color: white;
    --bs-btn-active-color: white;
    font-weight: 600;
}

.btn-info {
    --bs-btn-bg: var(--site-sea-blue);
    --bs-btn-border-color: var(--site-sea-blue);
    --bs-btn-color: white;
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: rgba(70, 120, 200, 0.85);
    --bs-btn-hover-border-color: rgba(70, 120, 200, 0.85);
    font-weight: 600;
}

/* ========================
   HEADER / NAVBAR
   ======================== */
.site-header {
    position: sticky;
    top: 1rem;
    z-index: 1030;
    min-height: 5rem;
    margin: 1rem;
    backdrop-filter: blur(0.5em);
    background-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 0.1em 0.02em rgba(0, 0, 0, 0.05);
    border-radius: 1.25rem;
}

@media (min-width: 72rem) {
    .site-header {
        max-width: var(--site-container-width);
        margin-inline: auto;
    }
}

.site-header .header__logo-icon {
    height: 3rem;
    max-height: 100%;
}

.site-header .nav-link {
    color: var(--bs-body-color);
}

.site-header .navbar-toggler {
    border: none;
    box-shadow: none;
}

.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,50,85,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-header .navbar-collapse {
    padding-bottom: 1rem;
}

/* ========================
   SITE CONTAINER
   ======================== */
.site-container {
    max-width: var(--site-container-width);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

@media (min-width: 72rem) {
    .site-container {
        padding-inline: 0;
    }
}

/* ========================
   MESSAGES / DETAILS BOXES
   ======================== */
.site-messages {
    background-color: white;
    border-radius: 1.25rem;
    box-shadow: 0 2px 4px 0 rgba(0, 50, 85, 0.18);
    border: 1px solid rgba(0, 50, 85, 0.2);
    padding: 2rem;
    margin: 2rem 1.5rem;
}

@media (min-width: 72rem) {
    .site-messages {
        margin-inline: auto;
        max-width: var(--site-container-width);
    }
}

/* ========================
   BOOKED ACTIVITY ROWS
   ======================== */
.booked-activity {
    display: inline-flex;
    height: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background-color: white;
    padding: 0 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px 0 rgba(0, 50, 85, 0.18);
}

/* ========================
   TASK FILTER
   ======================== */
.tasks-filter-heading {
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ========================
   TASK CARDS  (moss-green with special radius)
   ======================== */
.task-card {
    background-color: var(--site-moss-green);
    color: white;
    border: none;
    height: 100%;
}

/* ========================
   TASK DETAIL: DURATION STRIP
   ======================== */
.task-duration-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2rem;
    background-color: var(--site-moss-green);
    box-shadow: 0 2px 4px 0 rgba(0, 50, 85, 0.18);
    color: white;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .task-duration-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.task-duration-strip .duration-label {
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

/* ========================
   PAGINATION
   ======================== */
.pagination {
    justify-content: center;
    gap: 0.5rem;
    max-width: var(--site-container-width);
    margin-inline: auto;
    padding: 2rem 1.5rem;
}

.pagination .page-link {
    border-radius: 100vw !important;
    background-color: var(--site-sea-blue);
    color: white;
    border: none;
    font-weight: bold;
    padding: 0.5rem 1.25rem;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: rgba(70, 120, 200, 0.8);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--site-night-blue);
}

.pagination .page-item.active .page-link:hover {
    background-color: rgba(0, 50, 85, 0.8);
}

/* ========================
   FORMS
   ======================== */
.form-control,
.form-select {
    border-color: #f0e9e1;
    font-family: inherit;
    font-size: inherit;
    background-color: inherit;
}

.form-label {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn-submit-pill {
    display: inline-block;
    padding: 1rem;
    background-color: var(--site-night-blue);
    color: white;
    border-color: var(--site-night-blue);
    cursor: pointer;
    border-radius: 100vw;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
}

.btn-submit-pill:hover {
    background-color: rgba(0, 50, 85, 0.8);
    color: white;
}

/* ========================
   ACTIVITY NAVIGATION
   ======================== */
.activity-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    color: var(--site-night-blue);
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid rgba(0, 50, 85, 0.2);
    line-height: 125%;
    height: fit-content;
}

.activity-nav-btn--solid {
    background-color: #5F8CB4;
    color: white;
    border-color: #5F8CB4;
}

/* ========================
   PRESENTATION CARD
   ======================== */
.presentation-card {
    background-color: #EFF4F7;
    color: var(--site-night-blue);
    border: 1px solid rgba(0, 50, 85, 0.2);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 2px 4px 0 rgba(0, 50, 85, 0.18);
}

/* ========================
   BOOKING CARD
   ======================== */
.booking-card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 50, 85, 0.2);
    box-shadow: 0 2px 4px 0 rgba(0, 50, 85, 0.18);
    color: var(--site-night-blue);
    margin-top: -1rem;
}

.booking-icon {
    height: 3rem;
    flex-shrink: 0;
}

/* ========================
   TIMESLOT
   ======================== */
.timeslot-label {
    padding: 0 1rem;
    align-items: center;
    border: 1px solid var(--site-night-blue);
    border-radius: 0.5rem;
    background: white;
    display: inline-flex;
    justify-content: start;
    gap: 1rem;
    height: 3rem;
    cursor: pointer;
    max-width: 100%;
    width: 200px;
}
