/* Serenity Ultrasound — styles for pages rendered from the original UX Builder
   content (inc/builder-content.php). One class per builder element, all on
   the brand palette. Loaded after extras.css.
   ------------------------------------------------------------------------- */

:root {
  --fs-brand: #8388da;
  --fs-brand-dark: #6c71c4;
  --fs-navy: #123a63;
  --fs-teal: #5ab4cc;
  --fs-ink: #4a4a4a;
  --fs-radius: 1.25rem;
}

.fs-page { color: var(--fs-ink); font-size: .95rem; line-height: 1.6; }

/* Sections -------------------------------------------------------------- */
.fs-section {
  position: relative;
  isolation: isolate;
  padding: 3rem 0;
  background-size: cover;
  background-position: center;
}
.fs-section__overlay { position: absolute; inset: 0; z-index: -1; }
.fs-section.fs-pattern::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 18px 18px;
}
.fs-container { max-width: 78rem; margin: 0 auto; padding: 0 5%; }
.fs-page .fs-dark { color: #fff; }
.fs-page .fs-dark h1, .fs-page .fs-dark h2, .fs-page .fs-dark h3, .fs-page .fs-dark h4, .fs-page .fs-dark h5, .fs-page .fs-dark h6, .fs-page .fs-dark strong { color: #fff; }
.fs-page .fs-light { color: var(--fs-ink); }
.fs-page .fs-light h1, .fs-page .fs-light h2, .fs-page .fs-light h3, .fs-page .fs-light h4, .fs-page .fs-light h5, .fs-page .fs-light strong { color: var(--fs-navy); }
.fs-page .fs-light h6 { color: var(--fs-brand); }
.fs-page .fs-light a:not(.fs-btn):not(.fs-imgbox__img):not(.fs-pages__card) { color: var(--fs-brand); }
.fs-page .fs-light i.fa-circle-check, .fs-page .fs-light i.fa-chevron-right { color: var(--fs-brand); }
.fs-page .fs-light li:not(:has(> i.fas))::before { color: var(--fs-brand); }

/* Hero: the first band on every builder page ---------------------------- */
.fs-hero { padding: 3.25rem 0; background-color: var(--fs-brand); }
.fs-hero.fs-dark .fs-section__overlay { background: linear-gradient(90deg, rgba(18,58,99,.72), rgba(18,58,99,.35)) !important; }
/* Light heroes (navy copy on a photo) get a soft white wash behind the words. */
.fs-hero:not(.fs-dark) { background-color: #eef0fa; }
.fs-hero:not(.fs-dark) .fs-section__overlay { background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,.05) 100%) !important; }
.fs-hero:not(.fs-dark) h1, .fs-hero:not(.fs-dark) h2, .fs-hero:not(.fs-dark) strong { color: var(--fs-navy); }
.fs-hero:not(.fs-dark) p { color: #2b3a4d; }
.fs-hero:not(.fs-dark) h3 { background: var(--fs-navy); color: #fff !important; }
.fs-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 700; margin: 0 0 .6rem; }
.fs-hero h3 {
  display: inline-flex; margin: .25rem 0 1rem;
  padding: .45rem 1.15rem; border-radius: 999px;
  background: #fff; color: var(--fs-brand) !important;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.fs-hero p { font-size: .95rem; line-height: 1.6; }
.fs-hero .fs-col { max-width: 44rem; }
.fs-hero .fs-btn { margin-top: .75rem; }

/* Slider (ux_slider): the home page hero -------------------------------- */
.fs-slider { position: relative; }
.fs-slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.fs-slider__track::-webkit-scrollbar { display: none; }
.fs-slider__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.fs-slider__slide > .fs-section { min-height: clamp(26rem, 60vh, 38rem); display: flex; align-items: center; padding: 3rem 0; }
.fs-slider__slide > .fs-section > .fs-container { width: 100%; }
.fs-slider__slide .fs-section.fs-hero h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.fs-slider__dots { position: absolute; left: 0; right: 0; bottom: 1.1rem; display: flex; justify-content: center; gap: .5rem; z-index: 2; }
.fs-slider__dots button {
  width: 2rem; height: .3rem; border: 0; border-radius: 999px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(18,58,99,.35); transition: background .2s, width .2s;
}
.fs-slider__dots button.is-active { background: #fff; width: 2.75rem; }
.fs-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.fs-slider__arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: .7rem; height: .7rem; border: solid var(--fs-navy); border-width: 0 2px 2px 0; }
.fs-slider__arrow--prev { left: 1rem; } .fs-slider__arrow--prev::before { transform: translate(-30%,-50%) rotate(135deg); }
.fs-slider__arrow--next { right: 1rem; } .fs-slider__arrow--next::before { transform: translate(-70%,-50%) rotate(-45deg); }
@media (max-width: 640px) {
  .fs-slider__slide > .fs-section { min-height: 0; padding: 2.5rem 0 3rem; }
  .fs-slider__arrow { display: none; }
}

/* Grid ------------------------------------------------------------------ */
.fs-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.fs-row + .fs-row { margin-top: 1.5rem; }
.fs-row--middle { align-items: center; }
.fs-row--center { justify-content: center; }
.fs-col { grid-column: span 12; min-width: 0; }
@media (min-width: 900px) {
  .fs-col[data-span="1"] { grid-column: span 1; }  .fs-col[data-span="2"] { grid-column: span 2; }
  .fs-col[data-span="3"] { grid-column: span 3; }  .fs-col[data-span="4"] { grid-column: span 4; }
  .fs-col[data-span="5"] { grid-column: span 5; }  .fs-col[data-span="6"] { grid-column: span 6; }
  .fs-col[data-span="7"] { grid-column: span 7; }  .fs-col[data-span="8"] { grid-column: span 8; }
  .fs-col[data-span="9"] { grid-column: span 9; }  .fs-col[data-span="10"] { grid-column: span 10; }
  .fs-col[data-span="11"] { grid-column: span 11; }
  /* A row whose columns do not fill 12 is centred, as the builder did. */
  .fs-row--center > .fs-col[data-span="8"]:only-child { grid-column: 3 / span 8; }
  .fs-row--center > .fs-col[data-span="6"]:only-child { grid-column: 4 / span 6; }
  .fs-row--center > .fs-col[data-span="10"]:only-child { grid-column: 2 / span 10; }
  .fs-row--center > .fs-col[data-span="7"]:only-child { grid-column: 3 / span 7; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .fs-col[data-span="3"], .fs-col[data-span="4"], .fs-col[data-span="6"] { grid-column: span 6; }
}
.fs-center { text-align: center; }
.fs-center .fs-btn { margin-left: auto; margin-right: auto; }

/* Cards: rows with a column background, and tinted columns -------------- */
.fs-row--cards > .fs-col,
.fs-col--card {
  background: var(--fs-col-bg, #fff);
  border-radius: var(--fs-col-radius, var(--fs-radius));
  padding: 1.75rem;
  box-shadow: 0 8px 30px rgba(18, 58, 99, .08);
}
.fs-col--tint {
  padding: 1.75rem;
  border-radius: var(--fs-radius);
  box-shadow: 0 8px 30px rgba(18, 58, 99, .08);
}
.fs-col--tint > *:first-child, .fs-col--card > *:first-child, .fs-row--cards > .fs-col > *:first-child { margin-top: 0; }
.fs-col--tint .fs-btn:not(.fs-btn--secondary):not(.fs-btn--white) { background: #fff; color: var(--fs-navy) !important; }
.fs-col--tint .fs-btn:not(.fs-btn--secondary):not(.fs-btn--white):hover { background: #f3f3fb; }
.fs-dark .fs-accordion .faq, .fs-col--tint .fs-accordion .faq {
  background: rgba(255,255,255,.96); color: var(--fs-ink);
  border-radius: .75rem; padding: 0 1rem; margin-top: .5rem; border: 0;
}
.fs-dark .fs-accordion .faq summary, .fs-col--tint .fs-accordion .faq summary { color: var(--fs-navy); }

/* Text block ------------------------------------------------------------- */
.fs-text > * + * { margin-top: .7rem; }
.fs-page h2 { font-size: 1.45rem; line-height: 1.2; font-weight: 700; color: var(--fs-navy); margin: 0; }
.fs-page h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 700; color: var(--fs-navy); margin: 0; }
.fs-page h4 { font-size: .98rem; font-weight: 700; color: var(--fs-navy); margin: 0; }
.fs-page h5 { font-size: 1.05rem; font-weight: 700; color: var(--fs-navy); margin: 0; }
.fs-page h6 {
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--fs-brand); margin: 0 0 .35rem;
}
.fs-dark h6 { color: rgba(255,255,255,.8); }
.fs-page h2 + h2 { margin-top: .25rem; font-size: 1.1rem; font-weight: 600; opacity: .85; }
.fs-page p { margin: 0; }
.fs-page * + p, .fs-page * + h2, .fs-page * + h3, .fs-page * + h4, .fs-page * + ul, .fs-page * + ol { margin-top: .7rem; }
.fs-page h2 + p, .fs-page h3 + p, .fs-page h3 + ul, .fs-page h2 + ul, .fs-page p + ul { margin-top: .4rem; }
.fs-page * + h2 { margin-top: 1.5rem; }
.fs-page * + h3 { margin-top: 1.1rem; }
.fs-page strong { color: var(--fs-navy); font-weight: 700; }
.fs-page a:not(.fs-btn):not(.fs-imgbox__img):not(.fs-pages__card) {
  color: var(--fs-brand); text-decoration: underline; text-underline-offset: 2px;
}
.fs-dark a:not(.fs-btn):not(.fs-imgbox__img):not(.fs-pages__card) { color: #fff; }
.fs-page ul, .fs-page ol { padding-left: 0; list-style: none; }
.fs-page li { position: relative; padding-left: 1.6rem; }
.fs-page li + li { margin-top: .3rem; }
.fs-page li > p { margin: 0; }
.fs-page li > i.fas, .fs-page li > i.fa { position: absolute; left: 0; top: .1em; font-style: normal; }
/* Icon glyphs (the old site used Font Awesome; the glyphs are drawn here). */
.fs-page i.fas, .fs-page i.fa { font-style: normal; display: inline-block; width: 1.15em; text-align: center; }
.fs-page i.fa-circle-check::before, .fs-page i.fa-check-circle::before, .fs-page i.fa-check::before { content: "\2714"; }
.fs-page i.fa-chevron-right::before { content: "\203A"; font-weight: 800; }
.fs-page i.fa-circle-check, .fs-page i.fa-chevron-right { color: var(--fs-brand); }
/* Lists with no icon still get a marker. */
.fs-page li:not(:has(> i.fas))::before {
  content: "\2022"; position: absolute; left: .35rem; top: 0; color: var(--fs-brand); font-weight: 800;
}
.fs-dark li:not(:has(> i.fas))::before { color: #fff; }
.fs-page small { font-size: .8em; font-weight: 500; opacity: .85; }
.fs-page hr.fs-divider { border: 0; border-top: 1px solid rgba(0,0,0,.1); margin: 2rem 0; }
.fs-gap { width: 100%; max-height: 1.25rem; }
.fs-anchor { display: block; position: relative; top: -6rem; visibility: hidden; height: 0; }

/* Accordions ------------------------------------------------------------ */
.fs-accordion { margin-top: 1rem; }
.fs-accordion .faq + .faq { border-top: 1px solid rgba(0,0,0,.08); }
.fs-faq > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .98rem; color: var(--fs-navy);
}
.fs-faq > summary::-webkit-details-marker { display: none; }
.fs-faq .faq-icon { position: relative; flex: 0 0 1.4rem; width: 1.4rem; height: 1.4rem; border-radius: 999px; background: var(--fs-brand); }
.fs-faq .faq-icon::before, .fs-faq .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .7rem; height: 2px; background: #fff; transform: translate(-50%,-50%);
}
.fs-faq .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .2s; }
.fs-faq[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(0); }
.fs-faq .faq-body { padding: 0 0 1.1rem; color: var(--fs-ink); }
.fs-faq .faq-body h3 { font-size: .98rem; }
.fs-faq .faq-body > * + * { margin-top: .6rem; }

/* Buttons --------------------------------------------------------------- */
.fs-btn {
  display: inline-block; margin-top: 1rem; margin-right: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  background: var(--fs-brand); color: #fff !important;
  font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none !important; text-align: center; line-height: 1.3;
  box-shadow: 0 6px 18px rgba(18, 58, 99, .15);
  transition: background-color .15s, transform .15s;
}
.fs-btn:hover { background: var(--fs-brand-dark); transform: translateY(-1px); }
.fs-btn--secondary { background: var(--fs-navy); }
.fs-btn--secondary:hover { background: #0d2c4c; }
.fs-btn--white { background: #fff; color: var(--fs-navy) !important; }
.fs-btn--white:hover { background: #f3f3fb; }
.fs-btn--expand { display: block; margin-right: 0; width: 100%; }
.fs-btn + .fs-btn { margin-top: .6rem; }

/* Images ---------------------------------------------------------------- */
.fs-image { margin: 0; }
.fs-image img { display: block; width: 100%; height: auto; border-radius: var(--fs-radius); box-shadow: 0 8px 30px rgba(18, 58, 99, .1); }
.fs-col > .fs-image:first-child { margin-top: 0; }
/* A photo beside a block of copy is cropped to a sensible height rather than
   towering over it (the site has a couple of tall portrait uploads). */
.fs-col--media .fs-image img { max-height: 26rem; object-fit: cover; object-position: center; }
.fs-page * + .fs-image { margin-top: 1rem; }

/* Image boxes (service cards on the hub pages) -------------------------- */
.fs-imgbox {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--fs-radius); overflow: hidden;
  box-shadow: 0 8px 30px rgba(18, 58, 99, .08); border: 1px solid rgba(18,58,99,.08);
}
.fs-imgbox__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.fs-imgbox__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
a.fs-imgbox__img:hover img { transform: scale(1.04); }
.fs-imgbox__body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.fs-imgbox__body .fs-text { text-align: left !important; }
.fs-imgbox__body h5, .fs-imgbox__body h3 { font-size: 1.1rem; }
.fs-imgbox__body .fs-btn { margin-top: .75rem; align-self: flex-start; }
.fs-imgbox__body .fs-btn--expand { align-self: stretch; }
.fs-imgbox__body .fs-btn:first-of-type { margin-top: auto; padding-top: .8rem; }
.fs-imgbox__body ul { margin-top: .75rem; }

/* Feature boxes (the three "Your Appointment" cards) -------------------- */
.fs-featured { text-align: center; }
.fs-featured__icon { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; display: block; object-fit: contain; }
.fs-featured__body h3 { font-size: 1.1rem; }
.fs-featured__body p { margin-top: .5rem; font-size: .9rem; }
/* The icon artwork is a white rounded tile with a lilac glyph; it sits as-is on tinted cards. */
.fs-col--tint .fs-featured__icon, .fs-dark .fs-featured__icon { border-radius: 1.1rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }

/* Related pages grid (ux_pages) ----------------------------------------- */
.fs-pages { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin-top: 1.5rem; }
.fs-pages__card {
  display: block; background: #fff; border-radius: 1rem; overflow: hidden;
  text-decoration: none !important; color: var(--fs-navy) !important;
  box-shadow: 0 8px 30px rgba(18, 58, 99, .12); transition: transform .15s;
}
.fs-pages__card:hover { transform: translateY(-2px); }
.fs-pages__card img, .fs-pages__noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9e9f7; }
.fs-pages__title { display: block; padding: .8rem .9rem; font-weight: 700; font-size: .9rem; text-align: center; }

/* Latest posts grid (blog_posts) ---------------------------------------- */
.fs-posts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; text-align: left; }
.fs-posts__card { display: flex; flex-direction: column; background: #fff; border-radius: var(--fs-radius); overflow: hidden; box-shadow: 0 8px 30px rgba(18, 58, 99, .12); }
.fs-posts__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.fs-posts__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-posts__body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.fs-posts__body h3 { font-size: 1.02rem; margin: 0; }
.fs-posts__body h3 a { color: var(--fs-navy) !important; text-decoration: none !important; }
.fs-posts__body p { font-size: .9rem; margin-top: .5rem; }
.fs-posts__date { font-size: .75rem; color: var(--fs-brand); font-weight: 600; margin-bottom: .35rem; }
.fs-posts__more { margin-top: auto; padding-top: .75rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* Columns the builder left empty do not take up room. */
.fs-col:empty { display: none; }
@media (min-width: 900px) {
  .fs-row:has(> .fs-col:empty) > .fs-col[data-span="6"]:not(:empty) { grid-column: span 12; max-width: 52rem; }
}

/* Service pages: the band after the hero ---------------------------------
   Copy runs as an article on the left; the image column becomes a sticky
   side panel instead of drifting down the page. Plain bullet lists inside
   the article run in two columns on wide screens so the page reads shorter
   without a word being cut. ----------------------------------------------- */
.fs-main { padding-top: 2.75rem; }
.fs-main > .fs-container > .fs-row { align-items: start; }
.fs-main .fs-col--media { align-self: start; }
.fs-main .fs-col--media .fs-image img { box-shadow: 0 14px 40px rgba(18, 58, 99, .14); }
.fs-main .fs-text h3, .fs-main .fs-col > h3 { padding-top: .75rem; border-top: 1px solid rgba(18,58,99,.1); }
.fs-main .fs-text h6 + h2, .fs-main .fs-text h2:first-child { border: 0; padding-top: 0; }
.fs-main .fs-text > p:first-child, .fs-main .fs-text > h2 + p { font-size: 1rem; }
.fs-main .fs-col--tint, .fs-main .fs-row--cards > .fs-col { padding: 1.25rem 1.5rem; }
.fs-main .fs-col--tint .fs-accordion, .fs-main .fs-col--card .fs-accordion { margin-top: 0; }
.fs-main .fs-btn--expand { margin-top: 1.25rem; }
@media (min-width: 900px) {
  .fs-main .fs-col--media { position: sticky; top: 6.5rem; }
  .fs-main .fs-col:not(.fs-col--media) > .fs-text ul:not(:has(li > p)):not(:has(a)),
  .fs-main .fs-col:not(.fs-col--media) > ul:not(:has(li > p)):not(:has(a)) {
    columns: 2; column-gap: 2rem;
  }
  .fs-main .fs-col:not(.fs-col--media) > .fs-text ul:not(:has(li > p)):not(:has(a)) li,
  .fs-main .fs-col:not(.fs-col--media) > ul:not(:has(li > p)):not(:has(a)) li {
    break-inside: avoid; margin-top: 0; padding-bottom: .3rem;
  }
  .fs-main .fs-col[data-span="7"]:not(.fs-col--media) { grid-column: span 8; }
  .fs-main .fs-col[data-span="4"].fs-col--media, .fs-main .fs-col[data-span="5"].fs-col--media { grid-column: span 4; }
}
@media (max-width: 899px) {
  .fs-main .fs-col--media { order: -1; }
  .fs-main .fs-col--media .fs-image img { aspect-ratio: 16 / 9; object-fit: cover; }
}

/* Small screens ---------------------------------------------------------- */
@media (max-width: 640px) {
  .fs-section { padding: 2.25rem 0; }
  .fs-hero { padding: 2.5rem 0; }
  .fs-row--cards > .fs-col, .fs-col--card, .fs-col--tint { padding: 1.25rem; }
  .fs-btn { display: block; margin-right: 0; }
}
