/* common.css */
:root {
    --color-charcoal: #2b3237;
    --color-charcoal-rgb: 43, 50, 55; /* RGB values for #2b3237 */
    --color-coral-red: #F87060;
    --color-cadet_grey: #869D96;
    --color-cadet_grey-rgb: 134, 157, 150; /* RGB values for #869D96 */
}

*, *::before, *::after {
    box-sizing: border-box;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* inputs */
input {
    border: 1px solid #eaeaea;
    border-radius: 0.5em;
}

div.page_wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

div.top_bar, div.footer {
    width: 100%;
    background-color: var(--color-charcoal);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

div.top_bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0.75em 0;
}

div.top_bar .content, div.footer .content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

div.top_bar div.content a.site_identity {
    display: flex;
    align-items: center;
    margin-left: 2em;
    text-decoration: none;
    cursor: pointer;
}

div.top_bar div.content a.site_identity img.site_logo {
    height: 2em;
    margin-right: 1em;
}

div.top_bar div.content a.site_identity .site_title {
    font-size: 1.5rem;
    font-weight: bold;
}

div.top_bar div.content a.site_identity .site_title span:first-child {
    color: #eee;
    margin-right: -0.175em;
}

div.top_bar div.content a.site_identity .site_title span:nth-child(2) {
    color: #aaa;
}

div.top_bar .search-input {
    padding: 0.5em 1em;
    font-size: 0.95rem;
    border: none;
    border-radius: 0.5em;
    width: 20em;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

div.footer {
    padding: 2em;
}

div.footer_bottom {
    margin-top: 1em;
    font-size: 0.8125rem;
    color: #bbb;
}

div.footer_item h3 {
    font-family: 'Quicksand', sans-serif; /* Ensure the header font is consistent */
    margin-bottom: 10px;
    font-size: 1rem; /* Smaller header text */
    text-align: left; /* Left-align the headers */
}

div.footer_item {
    width: calc(25% - 1em);
    text-align: left;
}

div.footer_item ul {
    list-style: none;
    padding: 0;
}

div.footer_item ul li {
    margin: 5px 0;
    font-size: 0.9rem; /* Smaller list item text */
}

div.footer_item ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem; /* Smaller link text */
}

div.footer_item ul li a:hover {
    text-decoration: underline;
}

div.footer_bottom p {
    margin: 0;
    font-size: 0.8rem; /* Smaller footer bottom text */
    color: #bbb;
}

div.header {
    width: 100%;
    text-align: center;
    color: white;
    height: 20em;
    background-image: url('../images/img_yogaretreats_header_bg.jpg');
    background-repeat: no-repeat;
    background-position: center 63%;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

div.header div.header_texts {
    margin: 0 1em;
}

div.header div.header_texts .title {
    font-family: 'Mr Dafoe', cursive;
    font-size: 4rem;
    font-weight: bold;
    width: 100%;
    margin: 0;
}

div.header div.header_texts .mission_statement {
    font-size: 1.125rem;
    text-align: center;
    max-width: 25em;
    margin: 1em 0 0 0;
}

.container {
    max-width: 1210px;
    margin: 0 auto;
    flex: 1;
}

@media (max-width: 820px) {
    div.top_bar .search-input {
        width: 15em;
        left: calc(100% - 2em);
        transform: translateX(-100%);
    }
}

@media (max-width: 680px) {
    div.header div.header_texts .title {
        font-size: 3rem;
    }

    div.header div.header_texts .mission_statement {
        font-size: 1.0rem;
    }

    div.top_bar .content, div.footer .content {
        align-items: flex-start;
    }

    div.footer_item {
        width: calc(50% - 1em);
    }
}

@media (max-width: 480px) {
    div.top_bar .search-input {
        display: none;
    }
}
