/* Imports & Variables */
@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css?family=Lato:400,400italic,700,700italic");

:root {
    --color-primary: #a36975;
    --font-main: "Lato", sans-serif;
    --color-text-base: #888;
    --color-text-heading: #777;
    --color-text-light: #fff;
    --color-bg-base: #fff;
    --color-bg-dark: #222;
    --color-border: #e4e4e4;
    --color-border-light: #f4f4f4;
    --radius-default: 5px;
    --color-sidebar-text: #d2f2e9;
}

/* Base Resets & Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg-base);
    color: var(--color-text-base);
    font-family: var(--font-main);
    font-size: 16pt;
    line-height: 1.75em;
    padding-right: 23em;
    overflow-x: hidden;
}

.container {
    margin: 0 auto;
    max-width: calc(100% - 4.5em);
    width: 45em;
}
section {
    padding: 4em 0;
    border-top: 6px solid var(--color-border-light);
}
section#header {
    padding: 0;
    border: none;
}
section#one {
    padding-top: 0;
    border-top: 0;
}

/* Typography */
a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s;
}
a:hover {
    color: var(--color-primary);
    border-color: transparent;
}
h1,
h2,
h3 {
    color: var(--color-text-heading);
    font-weight: 700;
    margin-bottom: 0.5em;
}
h2 {
    font-size: 2em;
}
h3 {
    font-size: 1.75em;
}
p {
    margin-bottom: 2.25em;
}
strong {
    color: var(--color-text-heading);
    font-weight: 700;
}

header.major h2 {
    color: var(--color-primary);
    font-size: 2.5em;
    margin-bottom: 0.5em;
}
header.major p {
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 0.2em;
}

/* Flexbox Info Panels */
.info-container {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    margin-top: 2em;
}
.info-panel {
    flex: 1 1 45%;
    min-width: 300px;
}
.info-panel h3 {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.75em;
}

/* Padding Helpers */
.single {
    padding: 0 5%;
}
.double {
    padding: 0 10%;
}

/* Lists & JS Status Classes */
.info-list {
    list-style: none;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    padding-top: 0.05em;
    padding-bottom: 0.05em;
    border-radius: var(--radius-default);
}
.info-list .day {
    font-weight: 700;
}

.hidden-closure {
    display: none;
    margin-bottom: 15px;
    color: red;
}
.bold-text {
    font-weight: bold;
}

.is-open {
    background-color: rgba(0, 255, 0, 0.1);
}
.is-open .hours {
    color: green;
    font-weight: bold;
}
.is-closed {
    background-color: rgba(255, 0, 0, 0.1);
}
.is-closed .hours {
    color: red;
    font-weight: bold;
}

/* Images */
.image.main {
    display: block;
    height: 20em;
    margin-bottom: 2em;
}
.image.main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image.avatar {
    width: 8em;
    border-radius: 100%;
    overflow: hidden;
    margin: 0 auto 2em auto;
    display: block;
}
.image.avatar img {
    width: 100%;
    display: block;
}

/* Sidebar Header */
#header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--color-primary);
    color: var(--color-sidebar-text);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    width: 23em;
    text-align: center;
    padding: 0;
    z-index: 100;
}
#header > header {
    height: 20em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2em;
}
#header h1 {
    color: var(--color-text-light);
    font-size: 1.75em;
    margin: 0;
}
#header a {
    color: inherit;
    border: none;
}
#header nav {
    width: 100%;
}
#header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#header nav ul li {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}
#header nav ul li a {
    display: block;
    padding: 0.85em 0;
    color: var(--color-text-light);
}
#header nav ul li a.active {
    background: var(--color-bg-base);
    color: var(--color-primary);
}

/* FAQ Details */
.faq details {
    border-bottom: 1px solid rgba(144, 144, 144, 0.2);
    margin-bottom: 0.5em;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    padding: 0.6rem 0;
    outline: none;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::before {
    content: "+";
    color: var(--color-primary);
    margin-right: 0.75rem;
    font-weight: 700;
}
.faq details[open] summary::before {
    content: "−";
}
.faq details p,
.faq details ul {
    margin: 0.25rem 0 0.75rem 1.5rem;
}
.insurance-list {
    list-style: disc;
    margin-left: 1.5em;
}

/* Mobile Menu Bar (Vanilla JS Target) */
#mobile-bar {
    display: none;
    height: 44px;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 0 1em;
}
#mobile-bar .toggle {
    font-size: 1.5em;
    cursor: pointer;
    color: var(--color-text-light);
    border: none;
    background: transparent;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
    body {
        padding-right: 0;
        padding-top: 44px;
    }
    .container {
        width: 100%;
        padding: 0 2em;
    }
    #mobile-bar {
        display: flex;
    }
    #header {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    body.nav-open #header {
        transform: translateX(0);
    }
}

@media screen and (max-width: 736px) {
    body {
        font-size: 12pt;
    }
    .container {
        width: calc(100% - 2em);
        max-width: none;
        padding: 0;
    }
    .double {
        padding: 0 5%;
    }
    .info-panel {
        flex: 1 1 100%;
    }
    #header {
        width: 17em;
    }
    header.major h2 {
        font-size: 2em;
    }
    .image.main {
        height: 12em;
    }
}
