/* variables */
:root{
    /* restful retreat */
    --primary1: #2A3F33; 
    /* calm clay */
    --primary2: #EEEBE0;
    /* wellness taupe */
    --secondary1: #958D6F;
    /* soft sage */
    --secondary2: #CBD8AB;
    /* deep relief */
    --secondary3: #4E4B43;
    --white: #FDFEFFFF;
}

/* reset */
/* override default browser styles */
body,p,a,ul,li{
    margin: 0;
    padding: 0;
    text-decoration: none;
}

li{
    list-style-type: none;
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

/* base styles */
body{
    background: var(--primary1);
    overflow-x: hidden;
}

body.menu-open{
    overflow: hidden;
}

body.menu-open .top-bar__logo img{
    filter: invert(1);
    transition: filter 0.3s ease;
}

body.menu-open .top-bar::before { 
    opacity: 0; 
}

section {
    scroll-snap-align: start;
}

button{
    background: none;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 16px;
    display: inline-block;
}

button:hover{
    background-color: rgba(253, 254, 255, 0.1); 
    box-shadow: 0 0 8px rgba(253, 254, 255, 0.5);
    transition: all 0.2s ease;
}

a:hover{
    /* glow on hover */
    text-shadow: 0 0 8px rgba(253, 254, 255, 0.8);
    transition: text-shadow 0.2s ease;
}


/* fonts */
@font-face{
    font-family: "Aboreto";
    src: url('assets/fonts/Aboreto/Aboreto-Regular.ttf');
}

@font-face{
    font-family: "Work Sans";
    src: url("assets/fonts/Work_Sans/WorkSans-VariableFont_wght.ttf");
}

h1,h2,h3,h4{
    font-family: "Aboreto";
    color: var(--secondary3);
    font-weight: normal;
}

p,a,li{
    font-family: "Work Sans";
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    font-size: 1.0em;
}

h1{
    font-size: 1.6em;
}
h2{
    font-size: 1.4em;
}
h3{
    font-size: 1.2em;
}
h4{
    font-size: 1.0em;
}

/* mobile styles */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;    
    
    z-index: 1000;

    background: transparent;

    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    
    transition: 
        opacity 0.25s ease-out, 
        transform 0.25s ease-out,
        visibility 0s linear;
}

.top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        /* rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.2) 70%,
        rgba(0,0,0,0.1) 80%,
        rgba(0,0,0,0.03) 90%,
        rgba(0,0,0,0.01) 95%,
        rgba(0,0,0,0.0) 100% */

        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.7) 10%,
        rgba(0,0,0,0.55) 25%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.25) 55%,
        rgba(0,0,0,0.12) 70%,
        rgba(0,0,0,0.05) 85%,
        rgba(0,0,0,0.03) 90%,
        rgba(0,0,0,0.01) 95%,
        rgba(0,0,0,0.0) 100% 
    );
    opacity: var(--header-opacity, 0);
    pointer-events: none;
    z-index: 0;
}


.top-bar__inner{
    position: relative;
    z-index: 1;

    height: 90px;
    margin: 4px auto;
    padding: 0 20px;
    width: calc(100% - 32px);

    display: flex;
    align-items: center;
    background: transparent;

}

.top-bar__logo,
.top-bar_right {
    transform: translateY(-15px);
}

.top-bar__logo{
    display: flex;
    align-items: center;
}

.top-bar__logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.top-bar__logo img:hover{
    filter: drop-shadow(0 0 8px rgba(253, 254, 255, 0.8));
    transition: filter 0.2s ease;
}

.top-bar_right {
    display: flex;
    align-items: center;

    margin-left: auto;
}

/* BOOK NOW button */
.top-bar_cta {
    margin-left: 1em;
    margin-right: 1em;
    padding: 6px 14px;

    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;

    transition: opacity 0.3s ease, transform 0.3s ease;
}

.top-bar_cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* hamburger menu icon */
.top-bar__menu{
    margin-left: auto; 
    width: 40px; 
    height: 32px; 
    position: relative; 
    background: none; 
    border: none; 
    cursor: pointer;
}

.top-bar__menu span{
    /* display: block; */
    position: absolute; 
    left: 0; 
    height: 2px;
    width: 95%;
    background-color: var(--primary2);
    border-radius: 1px;
    transform-origin: center;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar__menu span:nth-child(1) { top: 2px; } 
.top-bar__menu span:nth-child(2) { top: 15px; } 
.top-bar__menu span:nth-child(3) { top: 28px; } 

.top-bar__menu:hover {
    box-shadow: none;
    background-color: transparent;
}

.top-bar__menu:hover span {
    filter:
        drop-shadow(0 0 2px rgba(255,255,255,0.8))
        drop-shadow(0 0 4px rgba(255,255,255,0.6));
    transition: all 0.2s ease;
}

.top-bar__menu.open span:nth-child(1) {
    width: 80%;
    transform: translateY(13px) rotate(45deg);
}

.top-bar__menu.open span:nth-child(2) {
    opacity: 0;
}

.top-bar__menu.open span:nth-child(3) {
    width: 80%;
    transform: translateY(-13px) rotate(-45deg);
}

.top-bar__menu.open span {
    filter: invert(1);
    transition: all 0.3s ease;
}

.top-bar__menu.open:hover span:not(:nth-child(2)) {
    filter:
        invert(1)
        drop-shadow(0 0 1px rgba(0,0,0,0.8))
        drop-shadow(0 0 2px rgba(0,0,0,0.6));
    transition: all 0.3s ease;
}

.mobile-nav{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8rem 0;

    background: var(--primary2);

    transform: translateY(-100%);
    opacity: 0;
    z-index: 999;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav.active{
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav ul{
    display: flex;
    flex-direction: column;
    padding: 1em;
    gap: 3em;
    text-align: center;

    list-style: none;
}

.mobile-nav li {
    font-size: clamp(1.6rem, 5vw, 10rem);
    font-weight: 500;
}

.mobile-nav li a {
    color: rgba(0,0,0,1);
}

#hero{
    min-height: 100vh;
    width: 100%;

    background-image: image-set(
        url("./assets/images/hero-bg--640w.webp") 1x,
        url("./assets/images/hero-bg--1024w.webp") 2x,
        url("./assets/images/hero-bg--1920w.webp") 3x,
        url("./assets/images/hero-bg--2560w.webp") 4x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: grid;
    place-items: center;
    position: relative;
}

.overlay{
    position: relative;
    display: grid;
    grid-auto-flow: row;
    gap: 16px;

    text-align: center;
    justify-items: center;

    padding: 24px;
    z-index: 0;
}

/* favicon */
.overlay img:first-of-type{
    width: clamp(80px, 10dvw, 150px);
}

/* logo */
.overlay img:nth-of-type(2){
    /* width: 360px; */
    width: clamp(300px, 40dvw, 500px);
    margin-bottom: 0px;
}

/* heading */
.overlay h1{
    margin-top: 0px;
    color: var(--primary2);
    font-size: 1.4em;
}

.overlay .main_cta {
    position: relative;
    z-index: 10;
    cursor: pointer;

    padding: 0.5em 1em;           /* keeps some padding, adjusts with font-size */
    border-radius: 20px;           /* preserve original rounding */
    font-size: clamp(1em, 1.2vw, 1.4em); /* grows gently on wider screens */
    border: 2px solid var(--white);
    background: none;
    color: var(--white);
}

/* book now button */
.overlay .main_cta button{
    margin-top: 24px;
}

.overlay .main_cta:hover{
    background-color: rgba(253, 254, 255, 0.1); 
    box-shadow: 0 0 16px 4px rgba(253, 254, 255, 0.5);
    transition: all 0.3s ease;
}

#placeholder{
    min-height: 90vh;
    width: 100%;

    display: grid;
    place-items: center;
    position: relative;
    justify-items: center;
    text-align: center;
}

#placeholder::before{
    content: "";
    position: absolute;
    inset: 0;

    background: 
        radial-gradient(
            rgba(0,0,0,0.35) 80%,
            rgba(0,0,0,0.7) 100%
        ),
        image-set(
            url("./assets/images/bed-full--640w.webp") 1x,
            url("./assets/images/bed-full--1024w.webp") 2x,
            url("./assets/images/bed-full--1920w.webp") 3x,
            url("./assets/images/bed-full--2560w.webp") 4x
        );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(8px)
        brightness(90%);
    z-index: -1;       /* behind content */
}

#placeholder h1{
    padding: 0 0.5em;
    font-weight: 900;
    font-size: clamp(2rem, 2vw, 4rem);
    color: var(--white);
    text-shadow: 
        0 0 2rem rgba(0,0,0,0.8),
        0 0 8rem rgba(0,0,0,0.8);
}

#careers-hero{
    min-height: 90vh;
    width: 100%;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0.5em;
}

#careers-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(
            rgba(0,0,0,0) 40%,
            rgba(0,0,0,0.15) 60%,
            rgba(0,0,0,0.35) 80%,
            rgba(0,0,0,0.7) 100%
        ),
        image-set(
            url("./assets/images/massage-closeup--640w.webp") 1x,
            url("./assets/images/massage-closeup--1024w.webp") 2x,
            url("./assets/images/massage-closeup--1920w.webp") 3x
        );
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(6px)
        brightness(100%);
    z-index: -1;       /* behind content */
}

#careers-hero h1{
    padding: 0 0.5em;
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--white);
    text-shadow: 
        0 0 2rem rgba(0,0,0,0.8),
        0 0 8rem rgba(0,0,0,0.8);
}

#careers-hero p{
    padding: 0 0.5em;
    font-size: clamp(1.2rem, 1.5vw, 2rem);
    color: var(--white);
    text-shadow: 
        0 0 2rem rgba(0,0,0,0.8),
        0 0 8rem rgba(0,0,0,0.8);
}

#careers-hero a{
    font-size: clamp(1rem, 1.5vw, 2rem);
    color: var(--white);
    text-shadow: 
        0 0 2rem rgba(0,0,0,0.8),
        0 0 8rem rgba(0,0,0,0.8);
}

#careers-hero a:hover {
    text-shadow: 0 0 8px rgba(253, 254, 255, 0.8);
    transition: text-shadow 0.2s ease;
}


#mission {
    min-height: 80dvh;
    height: auto;

    background-image: image-set(
        url("./assets/images/mission-bg--640w.webp") 1x,
        url("./assets/images/mission-bg--1024w.webp") 2x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: grid;
    grid-template-rows: auto auto;
    align-content: start;

    padding: 3em 3em;

    snap-scroll-align: bottom;
}

/* relief movement balance */
#mantra {
    text-align: left;
    justify-items: start;
    font-size: 1.6em;
}

#mantra h1{
    margin: 0px;
}

/* divider */
#mission #divider{
    width: 98%;
    height: 1px;
    background-color: var(--primary2);
    margin: -0.5em 0em 1.5em 1em;
    align-self: start;
}

/* mission statement */
#statement {
    text-align: left;
    justify-items: start;
    color: var(--primary2);
    padding-bottom: 0.5em;
}

#statement p {
    margin: 0;
    padding-bottom: 0;
}

#statement #highlight{
    text-align: left;
    justify-items: start;
    color: var(--secondary2);
    margin: 0;
    padding-top: 0;
}

#statement #about{
    font-family: "Aboreto";
    color: var(--primary2);
    font-weight: normal;
    text-decoration: underline;
    font-size: 1.0rem;
    margin-top: 2em;
}

#privacy-terms-main {
    position: relative;
    min-height: 80dvh;
    height: auto;

    display: grid;
    grid-template-rows: auto auto;
    align-content: start;

    padding: 4rem 1.5rem;
}

#privacy-terms-main::before {
    content: "";
    position: absolute;
    inset: 0;

    background: 
        radial-gradient(
            rgba(0,0,0,0) 40%,
            rgba(0,0,0,0.15) 60%,
            rgba(0,0,0,0.35) 80%,
            rgba(0,0,0,0.8) 100%
        ),
        image-set(
            url("./assets/images/mission-bg--640w.webp") 1x,
            url("./assets/images/mission-bg--1024w.webp") 2x
        );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: 
        brightness(80%)
        blur(8px);
    z-index: -1;       /* behind content */
}

/* relief movement balance */
#privacy-terms-main #title {
    text-align: left;
    justify-items: start;
    font-size: 1.6em;
}

/* divider */
#privacy-terms-main #divider{
    width: 98%;
    height: 1px;
    background-color: var(--primary2);
    margin: -0.5em 0em 1.5em 1em;
    align-self: start;
}

#privacy-terms-main #statement h2 {
    color: var(--primary2);
    font-weight: 800;
}

#privacy-terms-main #statement h2:first-of-type {
    margin-top: 0;
}

#privacy-terms-main #statement ul {
    padding-left: 4rem;
}

#privacy-terms-main #statement li {
    list-style-type: disc;
}

#services{
    background: var(--primary2);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
}

.service {
    position: relative;
    width: 100%;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;
}


.service_card {
    position: relative;
    width: 70%;
    overflow: hidden;
    scroll-snap-align: start;
    padding: 4rem 0;
}

.service_card img{
    width: 100%;
    height: clamp(70vh, 70vh, 80vh);
    aspect-ratio: 9 / 16;
    filter: brightness(60%);
    object-fit: cover;
    object-position: center;
    display: block;
}

.service_desc {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service_desc h2,
.service_desc .service_info {
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.service_desc h2 {
    color: var(--primary2);

    max-width: 90%;
    text-align: center;

    font-size: clamp(1.0em, 4vw, 3.0em);
    hyphens: none;
    overflow-wrap: break-word;

    opacity: 1;
}

.service_desc .service_info{
    color: var(--primary2);
    margin: 1em;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.service_card.active .service_desc h2 {
    opacity: 0;
    transform: translateY(0);
}

.service_card.active .service_desc .service_info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.service_card.active img{
    filter: brightness(40%);
}

.service_info{
    text-align: start;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.service_info a{
    font-family: "Aboreto";
    color: var(--primary2);
    font-weight: normal;
    text-decoration: underline;
    clamp(1.1rem, 2.5vw, 1.3rem);
}

html:has(body.tiktok) {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body.tiktok #services {
    gap: 0;
    padding: 0;
    margin: 0;
    row-gap: 0;
}

body.tiktok .service {
    height: 100dvh;
}

body.tiktok .service_card {
    width: 100%;
    height: 100%;
}

body.tiktok .service_card img {
    width: 100%;
    height: 100%;
}

body.tiktok .service_card .service_info {
    padding: 0;
    margin: 0;
    font-size: clamp(0.8rem, 1.8vw, 1.2rem);
}

body.tiktok #text-top,
body.tiktok #text-bottom,
body.tiktok .service,
body.tiktok footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

body.tiktok:not(.is-initial-load):has(.service_card.active.visible) .top-bar {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    /* We slide it up 15px so it feels like it's "stowing" under the notch */
    transform: translateY(-15px);
    
    /* Faster exit (0.2s) makes the app feel "snappy" to user intent */
    transition: 
        opacity 0.2s ease-out, 
        transform 0.2s ease-out,
        visibility 0s linear 0.2s; /* Delay visibility until opacity is 0 */
}

body.tiktok .nav-btn {
    opacity: 0;
}

#about-main {
    position: relative;
    min-height: 80dvh;
    height: auto;

    display: grid;
    grid-template-rows: auto;
    align-content: start;

    padding: 3rem 0;

    color: black;
}

#about-main::before,
#about-main::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    z-index: -1;
}

#about-main::before {
    top: 0;
    height: 50%; /* top half */
    background-image: image-set(
        url("./assets/images/about-top--640w.webp") 1x,
        url("./assets/images/about-top--1024w.webp") 2x,
        url("./assets/images/about-top--1920w.webp") 3x,
        url("./assets/images/about-top--2560w.webp") 4x
    );
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center -40vh; 
    transform: scaleX(-1)
}

/* Bottom image */
#about-main::after {
    bottom: 0;
    height: 50%; /* bottom half */
    background: image-set(
        url("./assets/images/about-bottom--640w.webp") 1x,
        url("./assets/images/about-bottom--1024w.webp") 2x,
        url("./assets/images/about-bottom--1920w.webp") 3x,
        url("./assets/images/about-bottom--2560w.webp") 4x
    ) center bottom / cover no-repeat;
}

#about-main h2 {
    text-align: start;
    font-weight: bold;
    padding: 0 0 2rem 0;
    color: black;
}

#about-main p,li{
    text-align: start;
    color: var(--primary2);
}

#about-main img {
    width: 80vw;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
    margin: 0 auto;
}

#about-main #title {
    text-align: left;
    justify-items: start;
    font-size: 1.6em;
    margin: 1rem 0 0 1rem;
}

#about-main #title h1 {
    color: var(--primary2);
    font-weight: bold;
    padding: 0rem;
    margin: 0;
}

#about-main #summary {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
    align-items: center;
    margin: 0 1rem;
    max-width: 75ch;
}

/* #about-main #summary #text {
    padding: 1rem;
    background-color: rgba(238, 235, 224, 0.25);
    border-radius: 1rem;
} */


.curve1 {
position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Adjust height based on how much "wave" you want */
    overflow: hidden;
    line-height: 0;
    z-index: 0;
    /* Flip it here if needed, or better yet, flip the SVG paths */
    transform: scaleY(-1);
}

.curve1 svg {
    position: relative;
    display: block;
    /* min-width: 1900px;  */
    object-fit: cover;
    object-position: bottom;
    width: 200%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.curve1 .shape-fill {
    fill: var(--primary2);
}

.curve2 {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 0;
}

.curve2 svg {
    position: relative;
    display: block;
    min-width: 1400px;
    height: 100%;
}

.curve2 .shape-fill {
    fill: var(--primary2);
}

#about-main #why {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
    align-items: center;
    margin: 0;
    z-index: 1;
    min-height: 600px; 
}

#about-main #why #text {
    position: relative;
    z-index: 2;
    max-width: 65ch;
}

#about-main #why #img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#about-main #why #img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#about-main #why #text h2,
#about-main #why #text p{
    color: black;
    padding: 2rem;
}

#about-main #why #text h2{
    text-align: right;
    padding-top: 6rem;
}

#about-main #approach, 
#about-main #environment, 
#about-main #commitment {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
    align-items: center;
}


#about-main #why #img {
    order: 1; /* Moves image to the first position */
}

#about-main #why #text {
    order: 2; /* Moves text to the second position */
}

#about-main #approach{
    background: var(--primary2);
    padding: 2rem 2rem;
    scroll-snap-align: start;
}

#about-main #approach #text p{
    color: black;
    padding: 2rem 0;
    z-index: 2;
}

#about-main #approach #text h2{
    padding: 0;
}

#about-main #approach #bullets {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    gap: 1rem ;
    justify-items: stretch;
    z-index: 2;
    scroll-snap-type: y proximity;
}

#about-main #approach #bullets .bullet {
    display: flex;
    width: 200px;           /* fixed width */
    max-width: 100%;        /* won’t overflow container */
    aspect-ratio: 1 / 1;
    box-sizing: border-box;   /* ← important */
    margin: 0 auto;
    padding: 0 1rem;
    background-color: rgba(136, 150, 113, 0.85);
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    z-index: 2;
    scroll-snap-align: center;
}

#about-main #approach #bullets p {
    color: var(--primary2);
    text-align: center;
    z-index: 2;
}

#about-main #approach #img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#about-main #approach #img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#about-main #environment {
    margin: 6rem 0 2rem 0;
    scroll-snap-align: center;
}

#about-main #environment #text,
#about-main #commitment #text {
    padding: 2rem;
    background-color: rgba(149, 141, 111, 0.85);
    border-radius: 1rem;
    max-width: 75ch;
}

#about-main #environment #text {
    justify-self: start;   /* aligns the div to the left of the grid cell */
}


#about-main #environment #text h2,
#about-main #commitment #text h2 {
    color: var(--primary2);
    padding: 0;
    margin-top: 0;
}

#about-main #commitment {
    margin-bottom: 4rem;
    scroll-snap-align: center;
}

#about-main #commitment #text {
    justify-self: end;   /* aligns the div to the left of the grid cell */
}


#about-main #commitment #text ul  {
    padding-left: 2rem;     /* Creates the indentation */
    margin: 1rem 0;           /* Adds space above and below the list */
    text-align: left;         /* Ensures the list block stays left-aligned */
    z-index: 2;
}

#about-main #commitment #text ul li {
    display: list-item;       /* Overrides any potential flex/grid interference */
    list-style-type: disc;    /* Brings back the round bullets */
    margin-bottom: 0.2rem;    /* Adds a little breathing room between items */
    line-height: 1.2;         /* Makes the text easier to read */
    list-style-position: outside; /* Keeps bullets in the margin, text aligned */
}

#about-main #ultimate-goal {
    padding: 2rem;
    background-color: rgba(238, 235, 224, 0.85);
    border-radius: 1rem;
    width: 80vw;
    justify-self: center;
    align-items: center;
    display: grid;
    scroll-snap-align: center;
}

#about-main #ultimate-goal #text {
    justify-self: center;
    padding: 3rem 2rem;
    max-width: 75ch;
}

#about-main #ultimate-goal #text h2,
#about-main #ultimate-goal #text p {
    text-align: center; 
    color: black;
}

#about-main #ultimate-goal #text h2 {
    margin: 0;
}

#services-main {
    position: relative;
    min-height: 80dvh;
    height: auto;

    display: grid;
    grid-template-rows: auto;
    align-content: start;

    padding: 3rem 0;

    color: black;
}

#services-main::before,
#services-main::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    z-index: -1;
    filter: brightness(80%);
}

#services-main::before {
    top: 0;
    height: 50%; /* bottom half */
    background: image-set(
        url("./assets/images/services-top--640w.webp") 1x,
        url("./assets/images/services-top--1024w.webp") 2x,
        url("./assets/images/services-top--1920w.webp") 3x,
        url("./assets/images/services-top--2560w.webp") 4x
    ) center top / cover no-repeat;
}

#services-main::after {
    bottom: 0;
    height: 50%; /* bottom half */
    background: image-set(
        url("./assets/images/services-bottom--640w.webp") 1x,
        url("./assets/images/services-bottom--1024w.webp") 2x,
        url("./assets/images/services-bottom--1920w.webp") 3x,
        url("./assets/images/services-bottom--2560w.webp") 4x
    ) center bottom / cover no-repeat;
    filter: saturate(150%) brightness(80%);
}

#services-main #text-top,
#services-main #text-bottom {
    color: white;
    height: calc(100dvh - 90px);

    position: relative;
    display: grid;
    place-items: center;
    align-items: center;
    padding: 3rem 0;
}

#services-main h1,
#services-main h4,
#services-main p,
#services-main ul {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    padding: 0.5rem 3rem;
}


#services-main #text-top h4 { 
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: bold;
}

#services-main #text-top {
    transform: translateY(-2rem);
}

#services-main #text-bottom {
    text-align: start;
    transform: translateY(-1rem);
}

#services-main #text-bottom h1,
#services-main #text-top h1 {
    font-size: clamp(2rem, 2vw, 3rem);
}

#services-main ul {
    padding: 1rem 5rem;
    list-style-type: disc;
}

#services-main li {
    list-style-type: disc;
    color: white;
}

#services-main #text-bottom p {
    margin-top: 2rem;
}

body.contact {
    background-color: var(--primary1);
}

.contact-main,
.team-main {
    background-color: var(--primary2);
}

.contact-main h1,
.team-main h1 {
    color: black;
}

.contact-main h2, 
.contact-main p,
.team-main p {
    color: var(--secondary3);
}

.team-main .team-member .name {
    color: black;
    font-size: 1.2rem;
    margin-top: 0.8rem;
}

.team-main .team-member .title {
    font-size: 1rem;
}

.team-main .team-member .book-specific-person {
    /* Apply modified base button styles */
    background: none;
    border: 2px solid black;
    color: black;
    padding: 8px 12px;
    border-radius: 2rem;
    display: inline-block;
    margin-top: 1rem;

    font-size: 0.8rem;
    font-weight: 400;

    /* Necessary anchor resets */
    text-decoration: none; 
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-main .team-member .book-specific-person:hover {
    text-shadow:
        0 0 0.5px rgba(78,75,67,0.5),   /* tiny dark edge for contrast */
        0 0 0.5px rgba(78,75,67,0.8); /* your original glow */
    box-shadow: 0 0 0.25rem 0.25rem rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

/* 1. The Glow for the Image */
.team-main .team-member a:first-of-type:hover img {
    box-shadow: 0 0 0.5rem 0.5rem rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

/* 2. The Glow for the Text (Name & Title) */
.team-main .team-member a:first-of-type:hover p {
    text-shadow:
        0 0 0.5px rgba(0,0,0,0.5),   /* tiny dark edge for contrast */
        0 0 0.5px rgba(0,0,0,0.8); /* your original glow */
    transition: all 0.2s ease;
}

.team-member-page {
    position: relative;
    /* min-height: 80dvh; */
    height: auto;

    display: grid;
    grid-template-rows: auto;
    align-content: start;

    padding: 4rem 0;

    background: var(--primary2);
}

.team-member-page #team-member-img{
    display: none;
}

.team-member-page #team-member-bio {
    padding: 0 2rem 2rem 2rem;
    margin-top: 0;
}

#team-member-bio h1,
#team-member-bio h2,
#team-member-bio p {
    margin: 0;
    padding: 0;
}

#team-member-bio h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 0.25rem; /* Extra space specifically under the name */
    color: black;
}

#team-member-bio h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary3);
    margin-bottom: 1.5rem; /* Larger gap before the bio starts */
}

#team-member-bio p {
    line-height: 1.6; /* Makes the bio much easier to read */
    font-size: 1.0rem;
    white-space: pre-line;
}

#team-member-bio .book-btn {
    margin-top: 2rem;
    font-size: 1rem;
    text-decoration: underline;
    font-family: "Aboreto";
    color: black;
    font-weight: normal;
}

#contact-form {
    padding: 4rem 3rem 2rem 3rem;
    display: grid;
    max-width: 834px;
}

.contact-main #contact-form form[name="contact"] #name {
    display: flex;
    flex-direction: column;
}

/* Container for each form group */
#contact-form form[name="contact"] p {
    margin-bottom: 1.5rem;
    width: (100%-3rem);
}

/* Make the label a column flexbox so input is under the text */
#contact-form form[name="contact"] label {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between the text and the input */
}

/* Style the inputs and textarea to be full width */
#contact-form form[name="contact"] input,
#contact-form form[name="contact"] textarea {
    width: calc(100% - 1.5rem);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

/* Give the message box some height */
#contact-form form[name="contact"] textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form form[name="contact"] button {
    color: var(--secondary3);
    border: 2px solid var(--secondary3);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

#contact-form form[name="contact"] button:hover {
    text-shadow:
        0 0 0.5px rgba(78,75,67,0.5),   /* tiny dark edge for contrast */
        0 0 0.5px rgba(78,75,67,0.8); /* your original glow */
    box-shadow: 0 0 8px rgba(78, 75, 67, 0.5);
    transition: all 0.2s ease;
}

.contact-main #contact-divider {
    width: calc(100% - 3rem);
    height: 1px;
    background-color: var(--secondary3);
    margin: 1.5em auto;
    display: block;
}

.contact-main #location {
    padding: 2rem 0;
}

.contact-main #location h1,
.contact-main #location h3 {
    padding: 0 2rem;
}

.contact-main #location #directions {
    display: flex;
    flex-direction: column;
    padding: 1rem; /* Slightly smaller for mobile screens */
    gap: 0.5rem;     /* Even spacing between text and images */
    background: var(--primary2);
    
    /* CRITICAL: Ensure no fixed height or overflow-hidden is here */
    height: auto;
    overflow: visible; 
}

.contact-main #location #directions img {
    margin: 1rem 0;
    max-width: 1024px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
}

.contact-main #location #directions h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    color: black;
}

.contact-main #location #directions p {
    line-height: 1.6;
    font-size: 1rem;
    max-width: 100ch;
}

.contact-main .map {
    width: 100%;
    /* This ensures the map stays at a consistent proportion */
    aspect-ratio: 4 / 5; 
    margin-top: 3rem;
    border-radius: 8px; /* Optional: matches your form style */
    overflow: hidden;
    max-width: 1025px;
}

.contact-main .map iframe {
    width: 100%;
    height: 100%;
}

.contact-main #contact-img {
    display: none;
}

body.team section {
    scroll-snap-type: none !important;
}

#team-header {
    padding: 5rem 0 0 0;
    display: grid;
    place-items: center;
}

#team-header h1{
    font-size: clamp(2rem, 1rem + 3vw, 6rem);
    padding: 1rem;
    margin: 0;
}

#team-header p {
    font-size: clamp(1rem, 2vw, 3rem);
    font-weight: 300;
}

#team-members {
    width: 100%;
    height: auto;
    padding: 2rem 0;
}

#team-members img {
    border-radius: 2rem;
}

.team-member {
    width: 70%; /* Adjust this to control the overall size */
    margin: 0 auto; /* Optional: centers the container */
    overflow: hidden;
    text-align: center;
    padding: 1rem 1rem 4rem 1rem;
}

.team-member .name {
    font-size: 1.2rem;
}

.team-member img {
    width: 100%;
    height: auto; /* Let the height scale naturally */
    aspect-ratio: 3 / 4; 
    object-fit: cover;
    display: block;
}

.smooth-details .details-content {
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* Optional: Rotate the icon */
.smooth-details[open] .icon {
    transform: rotate(180deg);
}

/* Remove default arrow for Chrome/Edge/Firefox */
summary {
    list-style: none;
}

/* Remove default arrow for Safari */
summary::-webkit-details-marker {
    display: none;
}

/* Optional: Layout for your custom symbol */
summary {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}

.icon {
    font-size: 1.5rem;
    font-weight: 300; /* Light weight looks more premium for Shellmont */
    width: 24px;
    text-align: center;
    user-select: none;
}

/* #info {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    gap: 0;
    justify-items: stretch;
}

#info .left,
#info .right {
    display: grid;
}

#info .map {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 60vh;
}

#info .map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(20%) contrast(1.05) brightness(0.95);
}

#info h1{
    position: relative;
    display: inline-block;
    color: black;
} */
/* 
#info h1::after {
    content: '';
    position: absolute;
    left: 50%;              
    bottom: -0.1em;            
    transform: translateX(-50%); 
    height: 1px;
    background-color: black;
    width: 110%;
} */


/* #info .right{
    width: 100%;
    min-height: 60vh;
    background-image: url("./assets/symbol3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 2em;
}

#info .right p{
    color: black;
    font-size: 1em;
}

#info .right a{
    font-family: "Work Sans";
    color: black;
    font-weight: normal;
    text-decoration: underline;
    font-size: 1em;
}

#info .right a:hover{
    text-shadow:
        0 0 0.1rem rgba(0,0,0,0.2),  
        0 0 0.1rem rgba(0,0,0,0.4); 
    transition: text-shadow 0.2s ease;
} */


.footer {
    margin: 0;
    padding: 0 1rem 1.5rem 1rem;
    background-color: var(--primary1);
    color: var(--primary2);
    font-weight: 200;
}

.footer .social-media {
    padding: 1rem 0;
    text-align: center;
    display: flex;
    align-items: center;
}

.footer .social-media a {
    align-items: center;
    display: inline-flex;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--primary2);
    margin-right: 0.3rem;
}

.footer .social-media #bookButton {
    font-size: 0.8rem;
    padding: 0.4rem;
    margin-left: 1.2rem;
}

.footer #address,
.footer #email,
.footer #phone {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
}

.footer #hours {
    margin: 3rem 0;
}

.footer #hours #hours-header {
    font-size: 1.8rem;
    padding: 1rem 0;
}

.footer #hours #sched {
    display: flex;
    gap: clamp(2rem, 11vw, 12rem);
}

.footer a,
.footer p {
    color: var(--primary2);
    font-size: 1rem;
}

.footer-main {
    margin: 1rem 0;
    text-align: center;
}

.footer-main a {
    text-decoration: underline;
    color: var(--primary2);
}

.footer-main p,
.footer-main a {
    font-size: 0.8rem;
}

#footer-divider{
    width: 100%;
    height: 1px;
    background-color: var(--primary2);
    margin: 1.5em 0;
}

.land-acknowledgement{
    text-align: center;
}

.land-acknowledgement p {
    font-size: 0.8rem;
}




/* small tablet styles */
@media screen and (min-width: 481px){
    .footer {
        padding: 2rem;
    }

    /* #about-main img {
        height: auto;
        max-height: 80vh;
        width: 60vw;
        aspect-ratio: 4 / 5;
    } */

    #about-main #why #img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(200px, 80%, 400px);
        height: auto;
        z-index: 1;
    }

    #about-main #why #img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .contact-main .map {
        aspect-ratio: 16 / 9; 
        border-radius: 20px; /* Looks more "finished" on desktop */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .contact-main #location{
        padding: 2rem;
    }

    .contact-main #location h1,
    .contact-main #location h3 {
        padding: 0;
    }
    
}

/* large tablets and laptop styles */
@media screen and (min-width: 834px){
    body{
        font-size: 18px;
    }

    body.menu-open{
        overflow: auto;
    }

    body.menu-open .page-content{
        filter: blur(4px)
            brightness(50%);
        background-color: rgba(0, 0, 0, 0.5);
        pointer-events: none;
        opacity: 0.8;
        transition: filter 0.3s ease;
    }

    body.menu-open .top-bar__logo img{
        filter: none;
    }

    .mobile-nav{
        inset: unset;
        top: 0;
        right: 0;

        height: 100vh;
        width: 350px;

        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 8rem 0;

        background: var(--primary2);

        transform: translateX(100%);
        opacity: 0;
        z-index: 999;

        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-nav.active{
        transform: translateX(0);
        opacity: 1;
    }

    .mobile-nav ul{
        display: flex;
        flex-direction: column;
        padding: 0em 2em;
        gap: 0em;
        text-align: left;

        list-style: none;
    }

    .mobile-nav li {
        font-size: clamp(1.4rem, 1.8vw, 2rem);
        font-weight: 500;
        padding: 1em 0em; /* space above divider */
    }

    .mobile-nav li:not(:last-child) {
        border-bottom: 1px solid rgba(0,0,0,1); /* subtle divider */
    }

    .mobile-nav li a:hover{
        text-decoration: underline;
        color: rgba(0,0,0,1);
        text-shadow:
            0 0 1px rgba(0,0,0,0.5),   /* tiny dark edge for contrast */
            0 0 1px rgba(0,0,0,0.8); /* your original glow */
    }

    #privacy-terms-main {
        padding: 4rem 4rem;
    }

    #about-main #approach #bullets {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        align-items: center;
        padding: 0 2rem;
        gap: 1rem;
    }

    #services {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
        padding: 0;
    }

    .service {
        width: 100%;
        padding: 6em 0;
    }

    .service_card {
        width: 80%;
    }

    .service_desc h2 {
        color: var(--primary2);

        max-width: 90%;
        text-align: center;

        font-size: clamp(0.9em, 2vw, 1.4em);
        hyphens: auto;
        overflow-wrap: anywhere;
    }

    .service_info{
        text-align: start;
        font-size: clamp(1.1rem, 1.6vw, 1.3em);
    }

    .service_card.active img{
        filter: brightness(40%);
    }

    .service_card:hover img{
        filter: brightness(40%);
        pointer-events: auto;
    }

    html:has(body.tiktok) {
        scroll-snap-type: y proximity;
        scroll-behavior: smooth;
    }

    body.tiktok .service-carousel {
        position: relative;
        width: 100vw;
        height: 100dvh;
    }

    body.tiktok #services {
        display: flex;                  /* horizontal layout */
        overflow-x: auto;               /* allow horizontal scrolling */
        overflow-y: hidden;             /* prevent vertical scroll */
        scroll-snap-type: x mandatory;  /* snap horizontally */
        scroll-behavior: smooth;
        width: 100vw;
        height: 100dvh;                 /* full viewport height */
        gap: 0;                         /* no gap if you want full-screen cards */

        margin: 0;                       /* remove any margins */
        padding: 0;                     /* remove padding */

        scroll-snap-align: start;
        /* scroll-snap-stop: always; */
        /* --- HIDE SCROLLBAR LOGIC --- */
        -ms-overflow-style: none;       /* IE and Edge */
        scrollbar-width: none;          /* Firefox */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    body.tiktok #services::-webkit-scrollbar {
        display: none;
    }

    body.tiktok .service {
        flex: 0 0 100vw;                /* fill entire viewport width */
        height: 100dvh;                 /* fill viewport height */
        scroll-snap-align: start;       /* snap at start of each panel */

        display: flex;            
        flex-shrink: 0;      
        justify-content: center;        
        align-items: center;            
        padding: 0;                     /* optional: remove extra padding */
        box-sizing: border-box;         
    }

    /* Card inside each service */
    body.tiktok .service_card {
        width: 100%;
        height: 100%;                   /* fill the service panel */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Image inside the card */
    body.tiktok .service_card img {
        width: 100%;
        height: 100%;
        object-fit: cover;              /* fill container without stretching */
        display: block;
    }

    body.tiktok .service_card.active img{
        filter: brightness(40%) !important;
    }

    body.tiktok .service_card:hover img{
        filter: brightness(60%);
        pointer-events: auto;
    }

    /* Base button styles */
    body.tiktok .nav-btn {
        position: absolute;
        top: 50%;
        z-index: 10;
        color: var(--primary2);
        border: none;
        cursor: pointer;
        font-size: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.4; /* Dimmed when not in use */
        transition: opacity 0.3s ease;
    }

    body.tiktok .nav-btn:hover {
        opacity: 1;
        background-color: transparent !important; 
        box-shadow: none !important;
        transition: none !important;
        text-shadow:
            0 0 0.1rem rgba(0,0,0,0.2),   /* tiny dark edge for contrast */
            0 0 8px rgba(255,255,255,0.8); /* your original glow */
        transition: text-shadow 0.2s ease;
    }

    /* Positioning */
    body.tiktok .prev { 
        left: 0px;
        justify-content: flex-start;
    }
    body.tiktok .next { 
        right: 0px; 
        justify-content: flex-end;
    }

    body.tiktok:has(.service_card.active) .top-bar {
        opacity: 1 !important;        /* Force visibility */
        pointer-events: auto !important; /* Re-enable clicks */
        transition: 
            opacity 0.25s ease-out, 
            transform 0.25s ease-out,
            visibility 0s linear;
        transform: translateY(0);
    }

    body.tiktok:not(.is-initial-load):has(.service_card.active.visible) .top-bar_cta {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        /* Slide it up slightly as it fades out for a more polished effect */
        transform: translateY(-10px);
        /* Shorter duration for the exit makes the UI feel responsive to your action */
        transition: 
            opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
            visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .contact-main #contact-form form[name="contact"] #name {
        flex-direction: row;
        gap: 1.5rem;
    }

    .contact-main #contact-form form[name="contact"] #name p {
        flex: 1; /* Makes both fields take up equal width (50/50) */
    }

    .team-main #team-members {
        display: grid;
        justify-content: center;
        align-items: center;
    }

    /* .team-main #team-members #owners {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* max-width: calc((100% / 3) * 2 + 2em); */
        /* max-width: calc(((100% - (3 * 2em)) / 3) * 2);
        justify-content: center;
        justify-self: center;
        align-items: center;
        gap: 2em;
        padding: 0em 3em;
    } */

    /* .team-main #team-members #staff {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: stretch;
        gap: 2em;
        padding: 3em;

    }  */

    .team-main #team-members {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: stretch;
        gap: 2em;
    }

    .team-member-page {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
        gap: 2rem;
        padding: 6rem 2rem 4rem 2rem;
        margin: 0 auto;
    }

    .team-member-page #team-member-img {
        display: block;
    }

    #team-member-img img {
        width: 100%;           /* Fills the grid column width */
        max-width: 450px;      /* Prevents it from getting "too large" on big monitors */
        height: auto;          /* Maintains the correct aspect ratio */
        object-fit: cover;     /* Ensures it crops nicely if you set a fixed height */
        border-radius: 2rem;   /* Keeps your Shellmont branding consistent */
        display: block;
    }
        
    .footer {
        padding: 2em;
    }

    .footer .social-media {
        padding: 1rem 0;
        text-align: start;
    }

}

/* desktop styles */
@media screen and (min-width: 1025px){
    body{
        font-size: 20px;
    }

    #mission{
        display: grid;
        grid-template-columns: auto 1px 1fr;
        grid-template-rows: 1fr;
        align-items: center;
        gap: 2em;
        padding: 6em 3em;
    }

    /* divider */
    #mission #divider {
        width: 1px;
        height: 105%;
        background-color: var(--primary2);
        margin: 0 0 -1.5rem 0;
    }

    #mission #statement {
        margin: 0 0 0 1em;
    }

    #about-main {
        padding: 3rem 0rem 6rem 0rem;
    }

    #about-main #img {
        display: grid;
        align-items: center;
    }

    #about-main img {
        width: auto;
        height: 100%;
        max-height: 40vh;
        aspect-ratio: 1 / 1;
        object-fit: fill;
        display: block;
        box-sizing: border-box;
        margin: 0 auto;
    }

    #about-main #summary {
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        gap: 5rem;
        padding: 6rem 3rem 0 3rem;
        margin: -5rem 0rem 1rem 0rem;
        background: rgba()
    }


    #about-main #summary #text{
        flex: 0 1 clamp(100px, 40vw, 500px);

        display: flex;
        align-items: center;
        justify-content: center;
    }

    #about-main #why,
    #about-main #commitment {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    #about-main #commitment {
        grid-template-columns: 0.3fr 1fr;
    }

    #about-main #why #text {
        justify-self: end;
        padding: 2rem 2rem;
    }

    #about-main #why #text h2 {
        padding: 0 2rem;
        text-align: right;
    }

    #about-main #why #img {
        justify-self: left;
        position: relative;
        z-index: 2;
    }

    #about-main #approach {
        display: grid;
        grid-template-columns: 1fr 1fr; /* left = text, right = image */
        align-items: center;            /* align vertically to top */
        gap: 2rem;
        position: relative;            /* keep stacking context */
        height: auto;
        margin-bottom: 3rem;
    }

    #about-main #approach #text,
    #about-main #approach #bullets {
        grid-column: 1 / -1;  /* span all columns */
        position: relative;
        z-index: 2;           /* above the image */
    }

    #about-main #approach #bullets {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: stretch;
        padding: 0 2rem;
        gap: 1rem;
    }

    #about-main #approach #img {
        grid-column: 2;
        z-index: 1;
    }

    #about-main #approach #img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        z-index: 1;
    }

    #about-main #commitment #text {
        grid-column: 2;
    }


    #services {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
        padding: 0;
    }

    .service {
        width: 100%;
        padding: 6em 0;
    }

    .service_card {
        width: 80%;
    }

    .service_desc h2 {
        color: var(--primary2);

        max-width: 90%;
        text-align: center;

        font-size: clamp(1.0em, 2vw, 1.4em);
        hyphens: auto;
        overflow-wrap: anywhere;
    }

    .service_info{
        text-align: start;
        font-size: clamp(0.8rem, 1.6vw, 1em);
    }

    /* override default tap to show desc */
    .service_card.active .service_desc h2{
        opacity: 0;
        pointer-events: none;
    }

    .service_card:hover .service_desc h2{
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: auto;
    }

    /* override default tap to show desc */
    .service_card.active .service_desc .service_info{
        opacity: 1;
    }
    .service_card:hover .service_desc .service_info {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .service_card.active img{
        filter: brightness(40%);
    }

    .service_card:hover img{
        filter: brightness(40%);
        pointer-events: auto;
    }

    body.tiktok .service_card.active img{
        filter: brightness(40%) !important;
    }

    body.tiktok .service_card:hover img{
        filter: brightness(60%);
        pointer-events: auto;
    }

    body.tiktok .service_desc h2,
    body.tiktok .service_desc .service_info {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* 1. Reset Hover: Make hover look exactly like the normal state */
    body.tiktok .service_card:hover .service_desc h2 {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    /* 2. Active State: This is now the ONLY trigger for hiding the element */
    body.tiktok .service_card.active .service_desc h2 {
        opacity: 0 !important;
        transform: translateY(0px); /* Optional: slight slide up when vanishing */
        pointer-events: none !important;
        transition: all 0.3s ease; /* Smooth transition for the toggle */
    }

    body.tiktok .service_card:hover .service_desc .service_info {
        opacity: 0 !important;
        transform: none !important;
    }

    /* 4. Active state for the Info (showing it when the title hides) */
    body.tiktok .service_card.active .service_desc .service_info {
        opacity: 1 !important;
        transform: translateY(-10px) !important;
        pointer-events: auto !important;
    }

    .contact-main #contact-section {
        display: grid;
        grid-template-columns: 0.7fr 0.3fr;
        align-items: center;
        gap: 1rem; 
    }

    .contact-main #contact-img {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centers the stack vertically */
        align-items: center;    /* Centers the stack horizontally */
        position: relative;
        height: 100%;
    }

    .contact-main #contact-img img {
        position: absolute;
        width: 100%; 
        aspect-ratio: 9 / 10;
        object-fit: cover;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    /* The first image stays at the top-left anchor */
    .contact-main #contact-img img:first-child {
        width: 80%; 
        transform: translate(-20%, 30%);
        z-index: 1;
    }

    /* The second image shifts down and to the right */
    .contact-main #contact-img img:last-child {
        width: 70%;
        transform: translate(5%, -30%);
        z-index: 2;  /* Pulls it to the front */
    }

    .contact-main .map {
        margin: 3rem auto;
        aspect-ratio: 18 / 9;
    }

    #team-header {
        padding: 6rem 0 2rem 0;
        display: grid;
        place-items: center;
    }



    /* #info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4em;
        align-items: stretch;
        min-height: 80vh;
        padding: 0;
    } */

    /* #info .left{
        display: grid;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    #info .map{
        width: 100%;
        height: 100%;
        margin-left: 0;
    }

    #info .map iframe {
        width: 100% !important;
        height: 100% !important;
        border: 0;
    }


    #info .right{
        display: grid;
        place-content: center;
        text-align: center;
        gap: 3em;
    } */

}
/* TODO: Change book an appointment button placement on desktop */

@media screen and (min-width: 2000px){

    #about-main #why {
        height: 115%;
    }
    .curve1 svg {
        height: 100%;
    }

    #about-main #approach {
        margin-bottom: 7rem;
    }
}