@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --primary-color: #F4F1EC;
    --font-color: #363B4C;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    background: #F4F1EC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
}

.h1-style {
    font-size: 2em;
    font-weight: bold;
    margin-top: 0.67em; /* Adjust margins to match h1 default more closely */
    margin-bottom: 0.67em;
}

.h2-style {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0.83em; /* Adjust margins to match h2 default more closely */
    margin-bottom: 0.83em;
}

.h3-style {
    font-size: 1.17em;
    font-weight: bold;
    margin-top: 1em; /* Adjust margins to match h3 default more closely */
    margin-bottom: 1em;
}

.PlainBackground{
    text-align: center;
}

header {
    display: flex;
    width: 100vw;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #363B4C;
    z-index: 2;
}

.header-top {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding-left: 1rem;
    margin-right: 3rem;
}

header h1 {
    font-weight: 600;
    color: var(--primary-color);
    z-index: 2;
}

header h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

nav {
    transform: translateY(-50%);
    z-index: 3;
}

nav ul {
    list-style: none;
    margin: 0 2rem;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.95;
}

nav ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

nav ul li.current a {
    text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1001;
    width: 30px;
    height: 24px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
    border: solid;
    border-width: 1px;
    border-color: #363B4C;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

main {
    margin: 0;
    padding: 0;
}

.practitioner{
    display: flex;
    flex-direction: row;
    text-align: left;
    background: transparent;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.left {
    flex: 4;
    object-fit: contain;
    padding: 0;
    background: transparent;
    padding: 2rem;
}

.left img {
    width: 100%;
    height: auto;
}

.center{
    flex: 7;
    padding: 0;
    background: transparent;
    padding: 2rem;
}

.right{
    flex: 3;
    padding: 0;
    background: transparent;
    padding: 2rem;
}

footer {
    background-color: #ecf0f1;
    padding: 2rem;
    text-align: center;
    color: #363B4C;
    border-top: 30px solid #B79671;
}

footer .footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

footer .footer-section {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
    text-align: left;
}

footer .footer-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

footer a {
    color: #B79671;
}

button {
    background-color: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.12s ease, transform 0.08s ease;
}

button:hover {
    background-color: #219a52;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------- */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    header h1 {
        font-size: .95rem;
    }

    .PlainBackground {
        text-align: center;
        width: 100%;
        background-color: var(--primary-color);
        position: relative;
    }
    nav {
        position: static;
        margin-bottom: 1rem;
    }
    nav ul {
        flex-direction: column;
        margin-top: 0;
    }
    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li button {
    background-color: #9A8164;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    }

    nav ul li button:hover {
        background-color: #B79671;
        transform: translateY(-1px);
    }

    .hamburger {
        display: flex;
        position: fixed;
        top: 18px;
        right: 1.5rem;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1200;
    }
    
    header h1 {
        font-size: .95rem;
        left: 1rem;
        max-width: calc(100% - 90px);
        white-space: wrap;
    }

    nav {
        position: fixed;
        top: 72px;
        right: -110%;
        width: 100%;
        max-width: 360px;
        height: calc(100vh - 72px);
        background-color: var(--font-color);
        box-shadow: -6px 0 20px rgba(0,0,0,0.3);
        transform: none;
        transition: right 0.28s ease;
        overflow-y: auto;
        z-index: 1100;
        display: flex;
        align-items: flex-start;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem;
        margin: 0;
        align-items: stretch;
        width: 100%;
    }

    nav ul li {
        margin: 0.25rem 0;
        width: 100%;
        text-align: left;
        list-style: none;
    }

    nav ul li a {
        font-size: 1.05rem;
        display: block;
        padding: 0.75rem 1rem;
        color: #fff;
        text-decoration: none;
        width: 100%;
    }

    .practitioner{
        flex-direction: column;
        padding: .5rem;
        margin-bottom: .5rem;
    }

    .left, .center, .right {
        padding: .5rem;
    }

    footer .footer-content {
        flex-direction: column;
    }

    footer .footer-section {
        padding: 0;
        text-align: center;
    }
}