@media (max-width: 950px) {


#content h1,
#content h2,
#content h3,
#content p,
#content ul {
  margin: 0;
}

#wrapper {
 width: 95%;
 margin-top: 0.5rem
}
#subwrapper {
    padding-top: 0;
}

#header {
    display: none;
  }
#subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.2rem;
  }

 #headerImage {
    height: 180px;
    overflow: hidden;
  }

 #headerImage img#barn {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .logo-overlay img {
    max-width: 250px;
  }

  #subheader p#address {
    text-align: right;
    margin: 0;
  }

/*--end of general structure - beginning of navigation area  --*/

/* 1. The Container */

#primarynav {
  position: static;
  margin: 0;
  padding: 0;
}


/* 2. The icon, overlaid on the banner photo top-right */
#hamburgerBtn {
    display: inline-block;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    padding: 0;
    cursor: pointer;
    z-index: 10000;
}

/* 3. The Full-Screen Takeover Menu */

ul#primaryNavigation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 6rem 2rem 2rem;
  box-sizing: border-box;
  background-color: rgba(188, 220, 255, 0.75);   /* the site's own light blue, not stark white */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: none;
  overflow-y: auto;
  z-index: 9999;

opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;

}

/* The class JavaScript adds to open the menu */

ul#primaryNavigation.show-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay:0s;
}

body.menu-open {
  overflow: hidden;
}


/* 4. Inside the Menu */
ul#primaryNavigation li {
    margin: 0 0 0.4em 0;
    height: auto;
}

ul#primaryNavigation li a {
    display: block;
    padding: 0.4rem 1rem 0.4rem 0;
    text-align: left;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2E385C !important;
    text-decoration: none !important;
}

ul#primaryNavigation li a:hover {
    color: #000 !important;
    background-color: rgba(0,0,0,0.02);
}

#content ul#primaryNavigation li.subHead {
    font-size: 1.3rem;
}

/* Faint logo watermark behind the menu, independent of scroll position */
ul#primaryNavigation {
    position: fixed;   /* unchanged, listed for context */
}
ul#primaryNavigation::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/somaticLogo1.png");
    background-repeat: no-repeat;
    background-position: center 20%;
    background-size: 65% auto;
    opacity: 0.3;
    pointer-events: none;
}
ul#secondaryNavigation {
    list-style-type: circle;
}
/*--end of navigation area - beginning of main content area --*/

#contentBG {
  margin: 0;
  padding: 0 !important;
  max-width: 100%;
   min-height: auto;
  text-align: center;
}
#content {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 !important;
  gap: 0 !important;
  text-align: left;
  box-sizing: border-box;
  overflow-x: hidden;
}

#content > * + * {
  margin-top: 0.25rem;   /* ? consistent vertical rhythm */
}

#content p {
  padding: 0;
  line-height: 1.5;
}
#content p.heroQuote {
 width: 80%;
}

hr.quoteDivider {
width: 80%;
}
#content p.pageIntro {
  padding-top: 6.08px;
}
#content h1,
#content h2,
#content h3 {
  padding: 0;
}
#content h1 {
margin: .75rem 0 .75rem 0;
padding: 0;
  text-align: center;
}
#content img.float-left,
#content img.float-right,
#content img.float-right2 {
  max-width: 38%;
  height: auto;
  scale: 100%;   /* cancels float-right2's desktop 130% scale */
  margin: 0.25rem 0.75rem 0.5rem 0.75rem;
}

#content img.float-left {
  float: left;
  margin-left: 0;
}

#content img.float-right,
#content img.float-right2 {
  float: right;
  margin-right: 0;
}
#content ul:not(#primaryNavigation):not(#secondaryNavigation):not(.embedList):not(.testimonialsList) {
  padding-left: 0.8rem;   /* keeps bullets readable */
}
#content ul.testimonialsList,
[id^="testimon"] {
  margin: 0;
}

[id^="testimon"] {
  width: 100%;                /* fills available space */
  max-width: 100%;            /* prevents overflow */
  padding: 0.4rem;
  box-sizing: border-box;     /* ? prevents right overflow */
}
#content ul.testimonialsList {
  list-style:disc;
  width: 100%;
  padding: 0;
  margin: 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
}
#content ul.testimonialsList li {
padding: 0;
  margin: 0;
  line-height: 1.3;

}

#content ul.testimonialsList li.list-header {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

#contentBottom {
 clear: both;
  width: 100%;
  height: 2em;
 text-align: center;
 background: transparent ;
 padding: 0;
 margin: 0 auto;
}




#content #scrollable {
  height: auto;
}
#content h2#slogan {
  padding: 0;
  width: 100%;
  font-size: 130%;
}

#content img#delineator {
    display: block;
    margin: 0 auto;
    width: 90%;
    max-width: 300px; /* fallback; hamburger.js sets this to match #slogan's rendered width */
}

#content * {
  box-sizing: border-box;
}
.ratesHoursWrapper {
    justify-content: center;
}
.ratesTable,
.hoursTable {
    width: auto;
    border-left: none;
    padding-left: 0;
    border-top: 1px dotted #000;
    padding-top: 1.5em;
    margin-top: 0.5em;
}

/*--end of main content area - beginning of footer area --*/

#footer {
 width: 100%;
 text-align: center;
 font-size: 80%;
 color: #777;
 background: transparent;
 flex-direction: column;
 align-items: center;
 gap: 0.1rem;
 padding: .75rem;
}

#footer p{
 margin: 0;
 font-size: 70%;
  padding: 0.5em 0;
}

#footer p#footslogan {
  font-size: 130%;
  text-align: center;
  font-variant:small-caps;
  padding-bottom: 2em;
  font-weight: bold;
}

ul#secnavigation {
 margin: 0;
 padding: .67em 0 0;
 width: auto;
 color: #000;
 background: transparent;
 float: none;
 font-size: 80%;
 list-style-type: none;
 text-align: left;
}
ul#secnavigation li {
  display: inline;
}

ul#secnavigation li a:link, ul#secnavigation li a:visited{
 color: #777;
 background: transparent;
 text-decoration: none;
 text-align: center;
}

ul#secnavigation li a:hover{
 color: #000;
 background: transparent;
 text-decoration: underline;
}

#footer a:link, #footer a:visited {
   color: #777;
   text-decoration: none;
}

#footer a:hover {
   color: #000;
    text-decoration: underline;
}

/*--end of footer area --*/
#content .recipeList ul.embedList > li.list-header {
    padding: 0.5em 0 0.15em 16px;   /* was inheriting 1rem/0.5rem from the testimonials-list-header rule */
    margin-bottom: 0.15em;        /* was inheriting 0.5rem from that same rule */
}
#content .recipeList ul.embedList > li.list-header > ul {
    margin-left: 0.6em;      /* moved left, bullets included — was 1.5em */
    margin-top: 0.2em;
    margin-bottom: 0.2em;    /* was picking up the browser's default ~1em, causing the big jump before the next group */
}

#content .recipeList ul.embedList > li.list-header > ul > li {
    font-size: 0.85rem;      /* was silently inheriting 1.1rem from the bold header above it — that's the "odd" size you're seeing */
    padding-bottom: 0.15em;  /* tighter than the 0.4em it's currently getting (that duplicate rule I flagged earlier is why it was 0.4em, not 0.15em) */
}
#content .recipeList ul.embedList {
    margin-left: 0.6rem;
    padding-left: 0;
}
#content .recipeList ul.embedList > li.list-header::before {
    left: 0;
}
#content ol.termsList li {
  padding-left: 1.5em;
}
#content ol.termsList li::before {
  left: 0;
}
#content ol.conditionsList {
    padding-right: 0;
}
#content ol.conditionsList > li {
    padding-left: 2em;
}
#content ol.conditionsList > li::before {
    left: 0;
}
.sessionBlock {
    column-gap: 0;
    }
.sessionBlock > ul.embedList {
    flex: 1 1 280px;
    min-width: 280px;
    max-width: none;
    }
.sessionBlock > img {
    max-width: 250px;
    margin: 1rem 0.6rem 0 auto;
    }
#content p.frontPage, #content p.moveClasses {
    padding: 0.6rem;
    }
#content h2.subhead {
    padding-left: 0;
    padding-right: 0;
    }
#content h2.subhead.recipeSubhead {
    padding-left: 0.6rem;
    }
#content ul.embedList, #content ul.conditions-list {
    margin-left: 0.6rem;
    }
#content p.reference, #content .referenceList {
    margin-left: 0.6rem;
    }
#content p.reference.termsExit {
    margin-left: 0.6rem;
    }
.sessionBlock.recipeBlock img#SI3 {
    margin-right: 0.6rem;
    }
#feedback {
    padding-top: 0.5rem;
    }
#feedback h4#feedbacktitle {
    margin-top: 0;
    padding: 0 0.6rem;
    }
#feedback h5#feedbacksubtitle {
    padding: 0 0.6rem;
    }
#feedback blockquote {
    margin: 0.5em 0;
    padding: 0 0.6rem 0 1.6rem;
    }
#feedback p {
    padding: .5rem 0.6rem 0 1.6rem;
    text-align: left;
    }
.locationBlock {
    padding: 0.5em 0.6rem 0;
    }
}

@media (max-width: 44em) {

#wrapper {
 width: 95%;
 max-width: 500px;
 margin: 0 auto;
 box-sizing: border-box;
}

#header {
padding: 0.5rem 0;
}

#subheadLogo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: .2rem;
}

/* Centers the main logo cleanly */
#subheadLogo img#logoOne {
    display: block !important;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0 auto .5rem auto;
}


#subheader p#address {
    text-align: left;
}

/*--end of general structure - beginning of navigation area  --*/

/*--end of navigation area - beginning of main content area --*/
#content h1 {
    padding-left: 6.08px;
    padding-right: 6.08px;
}

#contentBottom {
 clear: both;
  width: 100%;
  height: 2em;
 text-align: center;
 background: transparent ;
 padding: 0;
 margin: 0 auto;
}

.contentLeft {
    vertical-align:top;
    margin: 0 .5em 0 0;
}

#contactForm {
   float: none;
    width: 100%;
}

form#contactus input,
form#contactus textarea,
form#contactus select {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}
fieldset {
    margin: 0 auto;
    padding: 0;
}

#mailform {
    display: block;
}

form#contactus #formRight {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

form#contactus #formRight address {
    text-align: center;
    font-style: normal;
}

#mailform img.float-left {
    float: none;
    display: block;
    margin: 1rem auto;
}

form#contactus input,
form#contactus textarea,
form#contactus select {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: .3rem auto;
}
form#contactus p {
    padding: 0;
    margin: 0 0 .3rem 0;
    line-height: 1.0;

}
form#contactus .requiredNote {
    display: block;
    margin: .3rem 0 0 0;
}
form#contactus .g-recaptcha {
    max-width: 400px;
    margin: .3rem auto;
    padding: 0;
}
.contentRight {
    width: 100%;
    max-width: 100%;
    margin:0;
    padding: 0;
    vertical-align:top;
}

#content .contentRight  p.frontPage {
    margin: 0;
    padding: 0;
    line-height:normal;
    font-size: 100%;
}

#content .contentRight p.booking {
    margin: 0;
    padding: .5rem 0;
    font-style: italic;
}

#content p.frontPage, #content p.moveClasses{
  text-align: justified;
  font-size: 95%;
  line-height: 130%;
  padding: .6em;

}
#content ul.embedList, #content ul.conditions-list {
    margin-left: .6rem;
    column-count: 1;
}
#content ul.embedList {
    margin-left: 0.6em;
}
.sessionBlock > ul.embedList {
    min-width: 0;
}
#content ul.testimonialsList li {
    height: auto;
    padding: 0.2em 0;
    border-bottom: none;
}
.sessionBlock {
    display: block;
}
.sessionBlock > ul.embedList > li:not(:last-child) {
    margin-bottom: 0;
}
.sessionBlock img {
    display: block;
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 1rem auto;
}
#hoursRates {
    display: none;
}

.ratesHoursWrapper {
    justify-content: center;
}
.ratesTable,
.hoursTable {
    width: auto;
    border-left: none;
    padding-left: 0;
    border-top: 1px dotted #000;
    padding-top: 1.5em;
    margin-top: 0.5em;
}

/*--end of main content area - beginning of footer area --*/

#footer {
 width: 100%;
 text-align: center;
 font-size: 80%;
 color: #777;
 background: transparent;
 flex-direction: column;
 align-items: center;
 gap: 0.5rem;
}


#footer p {
  padding: 0.5em 0;
}


#footer p#footslogan {
  font-size: 130%;
  text-align: center;
  font-variant:small-caps;
  padding-bottom: 2em;
  font-weight: bold;
}

#content h2#slogan {
  padding: 0;
  width: 100%;
  font-size: 100%;
}
#content h2.subhead {
    padding: 0;
}

#content img#delineator {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 300px; /* fallback; hamburger.js sets this to match #slogan's rendered width */
}

ul#secnavigation {
 margin: 0;
 padding: .67em 0 0;
 width: 30%;
 color: #000;
 background: transparent;
 float: right;
 font-size: 80%;
 list-style-type: none;
 text-align: left;
}

ul#secnavigation li {
  display: inline;
}

ul#secnavigation li a:link, ul#secnavigation li a:visited{
 color: #777;
 background: transparent;
 text-decoration: none;
 text-align: center;
}

ul#secnavigation li a:hover{
 color: #000;
 background: transparent;
 text-decoration: underline;
}

#footer a:link, #footer a:visited {
   color: #777;
   text-decoration: none;
}

#footer a:hover {
   color: #000;
    text-decoration: underline;
}

/*--end of footer area --*/

}

/* 4. The Responsive Fix - Safely separated from the 850px wrapper */
@media (max-width: 60rem) {
    .testimonials-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        margin:0;
        padding: 0;
    }
.testimonials-wrapper {
    padding-top: 6.08px;
}
#content ul.testimonialsList {
    flex: 0 0 auto;
    }
}
@media (min-width: 951px) and (max-width: 1099px) {
  .sessionBlock { column-gap: 0; }
  .sessionBlock > ul.embedList { flex: 1 1 220px; min-width: 220px; max-width: none; }
  .sessionBlock > img { max-width: 190px; margin: 1rem 40.584px 0 auto; }
    .sessionBlock > img#nvr7, .sessionBlock > img#vm4, .sessionBlock > img.nativeSize { max-width: 190px; }
}
@media (min-width: 1100px) {
    .sessionBlock:not(.recipeBlock) { margin-right: 40.584px; column-gap: 1rem; }
}

/* Footer override - must stay LAST in this file */
@media (max-width: 950px) {
    #content #sloganDelin {
        left: 0;
    }
    #footer {
        font-size: 100%;
        color: #000;
        align-items: stretch;
        gap: .9rem;
        padding: 1.5rem 1rem 1.25rem;
        text-align: center;
    }
    #footer p {
        font-size: 90%;
        padding: 0;
        color: #000;
    }
    #footer p#footPhone {
        font-size: 140%;
        color: #16355E;
    }
    #footer a:link, #footer a:visited {
        color: #000;
        text-decoration: underline;
    }
    #footer a:hover {
        color: #16355E;
    }
}
@media (max-width: 44em) {
    #footer ul#footLinks {
        flex-direction: column;
        align-items: center;
    }
    #footer ul#footLinks li {
        padding: .3em 0;
    }
    #footer ul#footLinks li + li {
        border-left: none;
    }
    #footer span.footSep {
        display: none;
    }
    #footer br.footBreak {
        display: inline;
    }
}