/* Google fonts import */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Michroma&display=swap');

/* CSS Variables */
:root {
    --primary-font: "Inter", sans-serif;
    --secondary-font: "Michroma", sans-serif;
    --primary-color: #0A0A0A;
    /* shadow black */
    --secondary-color: #E7E3DB;
    /* bone */
    --third-color: #2B2F31;
    /* charcoal scan grey */
    --third-color-dark: #1a1d1f;
    /* charcoal hover */
    --third-color-light: #5a6165;
    /* charcoal light */
    --highlight-color: #B56A2B;
    /* warm rust amber */
    --light-highlight-color: #7D96A1;
    /* low saturation blue */
}

/* Global Styles */
body {
    background-color: var(--secondary-color);
    padding-top: 60px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--secondary-font);
}

p {
    font-family: var(--primary-font);
}

/* Hero Section */
.hero {
    background-image: url("../images/hero-section-image.3baedc7a9554.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--primary-color);
    padding: 100px 0;

    /* Fade bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

/* Navigation */
.navbar {
    font-family: var(--secondary-font);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
}

#navbar .logo {
    width: 50px;
    height: 50px;
}

/* Escape Room info cards */

#escape-rooms .card-img-top {
    width: 100%;
    height: 100%;
}

#escape-rooms .card-body {
    min-height: 340px;
}

#escape-rooms .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#escape-rooms .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    font-family: var(--secondary-font);
    background-color: var(--third-color);
    color: var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    color: var(--secondary-color);
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--third-color);
    border-color: var(--third-color);
}

.btn-primary:hover {
    background-color: var(--third-color-dark);
    border-color: var(--third-color-dark);
}

.btn-success:hover {
    background-color: var(--third-color);
    border-color: var(--third-color);
}

/* Custom theme classes (used across booking pages) */
.bg-custom {
    background-color: var(--third-color) !important;
    color: white !important;
}

.text-custom {
    color: var(--third-color) !important;
}

.btn-custom {
    background-color: var(--third-color);
    color: white;
    border: 1px solid var(--third-color);
}

.btn-custom:hover {
    background-color: var(--third-color-dark);
    color: white;
    border-color: var(--third-color-dark);
}

.btn-outline-custom {
    color: var(--third-color);
    border-color: var(--third-color);
    background-color: transparent;
}

.btn-outline-custom:hover {
    background-color: var(--third-color);
    color: white;
    border-color: var(--third-color);
}

.border-custom {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.badge.bg-custom {
    background-color: var(--third-color) !important;
}

.badge.bg-custom-light {
    background-color: var(--third-color-light) !important;
}

.card-header.bg-custom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

thead.bg-custom th {
    border: none;
}

.btn-group-sm>.btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

a.text-custom {
    text-decoration: none;
}

a.text-custom:hover {
    text-decoration: underline;
}

/* Contact us/Footer section */

.contact-footer {
    background-color: var(--third-color);
    color: white;
    padding: 3rem 0;
}

.contact-footer h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.contact-footer h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-footer p {
    color: #cbd5e0;
    line-height: 1.6;
}

.contact-footer a {
    color: #63b3ed;
    text-decoration: none;
}

.contact-footer a:hover {
    color: #90cdf4;
}

.map-link {
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #4a5568;
    text-align: center;
    color: #a0aec0;
    font-size: 0.875rem;
}

#social-links i {
    font-size: 2rem;
    margin: 4px;
}

/* Forms */
.form-control:focus {
    border-color: var(--third-color);
    box-shadow: 0 0 0 0.2rem rgba(43, 47, 49, 0.25);
}

/* Alerts */
.alert {
    background-color: var(--third-color);
    color: var(--secondary-color);
    border-radius: 8px;
}

/* Cards */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card .card-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card .card-footer {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Tables */
.table {
    background-color: white;
}

.table thead {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-confirmed {
    background-color: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.status-pending {
    background-color: #ffc107;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.status-cancelled {
    background-color: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
}

/* Booking Slots */
.booked-slot {
    display: inline-block;
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
}

/* Calendly-Style Calendar Styling */

/* Calendar Grid Styling */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-weight: 500;
}

.calendar-day:hover:not(.disabled):not(.past) {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.calendar-day.past {
    color: #adb5bd;
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.calendar-day.disabled {
    color: #ced4da;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid var(--third-color);
    font-weight: 700;
}

.calendar-day.selected {
    background-color: var(--third-color);
    color: white;
    border-color: var(--third-color);
}

/* Availability Dots */
.calendar-day::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.calendar-day.available::after {
    background-color: #28a745;
}

.calendar-day.limited::after {
    background-color: #ffc107;
}

.calendar-day.full::after {
    background-color: #dc3545;
}

/* Legend Dots */
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.dot-available {
    background-color: #28a745;
}

.dot-limited {
    background-color: #ffc107;
}

.dot-full {
    background-color: #dc3545;
}

/* Time Slots */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.time-slot {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.time-slot:hover {
    border-color: var(--third-color);
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.time-slot.selected {
    background-color: var(--third-color);
    color: white;
    border-color: var(--third-color);
}

.time-slot.booked {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.booked:hover {
    transform: none;
    border-color: #dee2e6;
}

/* Media queries */

/* Small devices (phones) */
@media screen and (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .time-slots-container {
        grid-template-columns: 1fr;
    }

    #currentMonth {
        margin: 2px;
    }

    .btn-text {
        display: none;
    }
}

/* Large devices (small laptops) */
@media screen and (max-width: 992px) {
    .time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        margin-bottom: 1rem;
    }
}

/* XL devices (large laptops) */
@media screen and (max-width: 1024px) {
    .card {
        margin-bottom: 1rem;
    }
}