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

:root {
    --primary-color: #F4F1EC;
}

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;
}

.header {
    display: flex;
    width: 100vw;
    height: 600px;
    background-image: url('Images/treatmentbanner.jpg');
    background-size: cover;
    background-position: center;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 2;
}

.header::before {
    position: absolute;
    content: '';
    width: 100vw;
    height: 600px;
    background-color: rgba(77, 77, 77, .5);
    z-index: 1;
}

.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-style: solid;
}

.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);
}

.hero {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
    align-self: center;
    text-align: center;
    margin-bottom: auto;
}

.hero p {
    z-index: 2;
    color: var(--primary-color);
    font-size: 4rem;
    align-self: center;
    max-width: 65%;
    margin-bottom: 1rem;
}

.hero h3 {
    z-index: 2;
    color: var(--primary-color);
    font-size: 1.17rem;
    align-self: center;
    max-width: 75%;
}

main {
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: row;
    padding: 2rem;
    background-image: url('Images/treatmentbackground.jpg');
    background-size: 100%;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.left{
    padding: 0 4rem;
    flex: 1;
    text-align: center;
}

.right{
    padding: 0 4rem;
    flex: 1;
}

.right a {
    color: #B79671;
}

.banner {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
}

.banner .left {
    flex: 1;
}

.banner .right {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.content {
    background-image: url("Images/Background3.png");
    background-size: 100%;
    background-position-x: center;
    background-position-y: bottom;
    background-repeat: no-repeat;
    padding-left: 5rem;
    padding-right: 5rem;
    padding-bottom: 5rem;
    margin-top: 0;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem
}

.content .left {
    text-align: left;
}

.top {
    grid-column: 1/3;
    padding-bottom: 5rem;
    text-align: center;
}

.content a {
    color: #B79671;
}

.content img {
    max-width: 100%;
    height: auto;
}

.faqSection {
    background-image: url('Images/faqBackground.png');
    background-size: cover;
    background-position: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-left: 5rem;
    padding-right: 5rem;
    margin-top: 0;
    padding-top: 5rem;
    color: var(--primary-color);
}
.faqSection h1 {
    text-align: center;
    grid-column: 1 / -1;
}

.faq {
  max-width: 600px;
  margin: 0 auto;
  font-family: sans-serif;
}

.faq-question {
  cursor: pointer;
  padding: 15px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--primary-color); /* underline always visible */
  font-weight: bold;
}

.chevron {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 10px;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-item.active .chevron {
  transform: rotate(180deg);
}

.bottomBanner{
    background-image: url('Images/treatment-bottom-banner.jpg');
    background-size: 100%;
    background-position-x: center;
    background-position-y: bottom;
    background-repeat: no-repeat;
    height: 600px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.bottomBanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(77, 77, 77, .5);
    z-index: 1;
}

footer {
    background-color: #ecf0f1;
    padding: 2rem;
    text-align: center;
    color: #363B4C;
}

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;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d6e6df;
    border-radius: 6px;
    background-color: #fbfeff;
    color: #2c3e50;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #bfe6c8;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.06);
}

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);
}

.bottomBanner h1 {
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.bottomBanner a {
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    z-index: 1000;
}

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

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    
    .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: rgba(51, 51, 51, 0.98);
        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%;
    }

    /* Hero section adjustments */
    .hero {
        padding: 1rem;
    }
    .hero p {
        font-size: 1.5rem;
        max-width: 90vw;
    }
    .hero h3 {
        font-size: 1rem;
        max-width: 90vw;
    }

    /* Container adjustments */
    .container {
        flex-direction: column;
        padding: 1rem;
        background-size: cover;
    }

    .container .left, .container .right {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .content .top{
        padding: 0;
    }

    .content .left, .content .right {
        padding-left: 0;
        padding-right: 0;
    }

    .faqSection {
            display: flex;
            flex-direction: column;
            padding-left: 1rem;
            padding-right: 1rem;
    }

    .left, .right{
        padding: 0;
    }
    
    .content .left, .content .right {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    footer {
        padding: 0 2rem;
    }

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

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

    .faqSection {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Bottom banner */
    .bottomBanner {
        height: 200px;
    }

    .bottomBanner a {
        font-size: 1.3rem;
    }

    @media (max-width: 600px) {
        .bottomBanner h1 {
            font-size: 1.5rem;
        }
    }

    .banner {
        flex-direction: column;
        padding: 1rem;
        margin-top: 0rem;
    }

    .banner {
        flex-direction: column;
        padding: 1rem;
        margin-top: 0rem;
    }

    .banner .left, .banner .right {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    button {
        width: 100%;
        padding-right: 0;
        box-sizing: border-box;
    }

    input, textarea {
        box-sizing: border-box;
    }
}    
