/*
 Theme Name:   Hello Child Theme
 Description:  Wellness Sanctuary by Isa Carstens. Brand colours, type and buttons live in the Elementor kit; this file holds only what Elementor's controls cannot express (the brand motifs).
 Author:       Oliver
 Author URI:   https://wellness-sanctuary.local
 Template:     hello-elementor
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Base */
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-wrap:pretty}

/* Header stays in view: CSS sticky rather than Elementor's scripted sticky */
.elementor-location-header{position:sticky;top:0;z-index:50}
@media (min-width:783px){.admin-bar .elementor-location-header{top:32px}}

/* Mobile booking bar (in the footer template, class ws-bookbar): slides in once
   the hero (class ws-hero) has scrolled away. Without the script it simply stays visible. */
@media (max-width:767px){
  .ws-bookbar{transition:transform .3s ease}
  .ws-js .ws-bookbar:not(.is-visible){transform:translateY(110%)}
  body:has(.ws-bookbar){padding-bottom:86px}
}
@media (prefers-reduced-motion:reduce){.ws-bookbar{transition:none}}

/* ── Brand motifs ───────────────────────────────────────────────────────
   Add these classes in Elementor under Advanced → CSS Classes.          */

/* Three-dot marker from the logo, centred above a heading.
   Class: ws-dots (on the heading widget) */
.ws-dots::before{content:"";display:block;width:35px;height:9px;margin:0 auto 24px;
  background:
    radial-gradient(circle closest-side,#AEC5A4 96%,transparent) 0 1px/7px 7px no-repeat,
    radial-gradient(circle closest-side,#6A784D 96%,transparent) 14px 0/9px 9px no-repeat,
    radial-gradient(circle closest-side,#D3DECC 96%,transparent) 30px 2px/5px 5px no-repeat}
@media (max-width:767px){.ws-dots::before{margin-bottom:20px}}

/* Dotted sage arc bleeding off the top-right corner of a section.
   Class: ws-arc (on the section container) */
.e-con.ws-arc{position:relative;overflow:hidden;isolation:isolate}
.e-con.ws-arc::after{content:"";inset:auto;position:absolute;right:-120px;top:-140px;width:360px;height:360px;z-index:-1;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='47' fill='none' stroke='%23AEC5A4' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='0 7.4'/%3E%3C/svg%3E") center/contain no-repeat}

/* The brand icon as a single-tone watermark, half off the right edge.
   Class: ws-watermark (on the section container) */
.e-con.ws-watermark{position:relative;overflow:hidden;isolation:isolate}
.e-con.ws-watermark::before{content:"";inset:auto;position:absolute;z-index:-1;right:-380px;top:40px;width:760px;height:787px;pointer-events:none;
  background:#D3DECC;-webkit-mask:url(assets/brand-mark.svg) center/contain no-repeat;mask:url(assets/brand-mark.svg) center/contain no-repeat}
@media (max-width:1024px){.e-con.ws-watermark::before{right:-240px;top:-40px;width:480px;height:497px}}
@media (max-width:767px){.e-con.ws-watermark::before{right:-110px;top:-120px;width:290px;height:300px}}

/* Sage hero panel on secondary pages: warm-white dotted arc low right and a
   vertical three-dot marker. Class: ws-hero-motif (on the copy container) */
.e-con.ws-hero-motif{position:relative;overflow:hidden;isolation:isolate}
.e-con.ws-hero-motif::after{content:"";inset:auto;position:absolute;right:-110px;bottom:-130px;width:300px;height:300px;opacity:.85;z-index:-1;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='47' fill='none' stroke='%23F9F7F3' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='0 7.4'/%3E%3C/svg%3E") center/contain no-repeat}
.e-con.ws-hero-motif::before{content:"";inset:auto;position:absolute;left:58px;top:50%;margin-top:-23px;width:10px;height:46px;z-index:-1;pointer-events:none;
  background:radial-gradient(circle,#F9F7F3 4px,transparent 4.6px) 0 0/10px 10px no-repeat,
             radial-gradient(circle,#6A784D 4px,transparent 4.6px) 0 18px/10px 10px no-repeat,
             radial-gradient(circle,#2E3321 4px,transparent 4.6px) 0 36px/10px 10px no-repeat}
@media (max-width:767px){.e-con.ws-hero-motif::before{display:none}.e-con.ws-hero-motif::after{width:220px;height:220px;right:-120px;bottom:-150px}}

/* Inset sage panel: a pale "cell" shape and circle breaking in at the top right.
   Class: ws-panel-motif (on the rounded sage container) */
.e-con.ws-panel-motif{position:relative;overflow:hidden;isolation:isolate}
.e-con.ws-panel-motif::before{content:"";inset:auto;position:absolute;right:-70px;top:-58px;width:300px;height:150px;z-index:-1;opacity:.38;transform:rotate(-24deg);pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cpath fill='%23F9F7F3' d='M50 10C75 10 85 28 100 28S125 10 150 10A40 40 0 0 1 150 90C125 90 115 72 100 72S75 90 50 90A40 40 0 0 1 50 10Z'/%3E%3C/svg%3E") center/contain no-repeat}
.e-con.ws-panel-motif::after{content:"";inset:auto;position:absolute;right:190px;top:-34px;width:84px;height:84px;border-radius:50%;background:#F9F7F3;opacity:.38;z-index:-1;pointer-events:none}

/* Swipe rail on phones: a row of cards scrolls sideways with snap points.
   Class: ws-rail (on the row container) */
@media (max-width:767px){
  .ws-rail,.e-con.ws-rail{flex-wrap:nowrap !important;overflow-x:auto !important;scroll-snap-type:x mandatory;scrollbar-width:none;
    margin-inline:-24px;padding-inline:24px;scroll-padding-inline:24px}
  .ws-rail::-webkit-scrollbar{display:none}
  .ws-rail>.e-con,.ws-rail>.elementor-element{flex:0 0 296px !important;scroll-snap-align:start}
}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto !important}}

/* "Available at" pills from [ws_category_sanctuaries], sat on the sage booking panel */
.ws-avail{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px}
.ws-avail li>a,.ws-avail li.is-off{display:inline-flex;align-items:center;gap:9px;height:40px;padding:0 18px;border:1px solid #2E3321;
  border-radius:999px;color:#2E3321;font:400 14px/1 Raleway,sans-serif;text-decoration:none}
.ws-avail li>a:hover{background:rgba(249,247,243,.45)}
.ws-avail li.is-off{border-style:dashed;border-color:rgba(46,51,33,.35);color:#3C4133}

/* Three-dot marker, left-aligned variant. Class: ws-dots ws-dots-start */
.ws-dots.ws-dots-start::before{margin-left:0}

/* Dark variant of the watermark, for forest sections. Class: ws-watermark ws-watermark-dark */
.e-con.ws-watermark.ws-watermark-dark::before{right:-140px;top:-90px;width:520px;height:538px;background:rgba(174,197,164,.14)}
@media (max-width:767px){.e-con.ws-watermark.ws-watermark-dark::before{right:-120px;top:-100px;width:300px;height:310px}}

/* Team portrait placeholder: the brand icon, pale, until a photo is supplied. Class: ws-portrait-placeholder */
.e-con.ws-portrait-placeholder{position:relative;isolation:isolate}
.e-con.ws-portrait-placeholder::before{content:"";inset:auto;position:absolute;left:50%;top:50%;width:150px;height:155px;margin:-90px 0 0 -75px;z-index:-1;pointer-events:none;
  background:rgba(46,51,33,.14);-webkit-mask:url(assets/brand-mark.svg) center/contain no-repeat;mask:url(assets/brand-mark.svg) center/contain no-repeat}

/* Links inside JetEngine dynamic fields (phone, email, breadcrumb) take their field's colour,
   so they stay legible on forest and sage surfaces. */
.elementor .jet-listing-dynamic-field__content a{color:inherit;text-decoration:none}
.elementor .jet-listing-dynamic-field__content a:hover{text-decoration:underline}

/* In-page anchors (Dynamic Field output, class ws-anchor) clear the sticky header when jumped to */
.ws-anchor{display:block;scroll-margin-top:96px}

/* JetEngine listing whose items sit inline at their natural width (chips). Class: ws-inline-grid */
.ws-inline-grid .jet-listing-grid__items{display:flex !important;flex-wrap:wrap}
.ws-inline-grid .jet-listing-grid__item{width:auto !important;max-width:none !important;flex:0 0 auto}

/* Skin Journeys index: a ruled row of five; the first cell has no left rule. Class: ws-journey-index */
.ws-journey-index .jet-listing-grid__item:first-child .ws-jx{border-left:0;padding-left:0}
@media (max-width:1024px){.ws-journey-index .jet-listing-grid__item .ws-jx{border-left:0;padding-left:0;border-bottom:1px solid #E1DFDA}}

/* Alternating journey sections: sage-wash ground on odd rows, image on the left on even rows. Class: ws-zigzag */
.ws-zigzag .jet-listing-grid__item:nth-child(odd) .ws-journey{background:#ECF1E8}
@media (min-width:768px){.ws-zigzag .jet-listing-grid__item:nth-child(even) .ws-journey > .e-con-inner{flex-direction:row-reverse}}

/* JetFormBuilder: two fields side by side (a Columns block with class ws-form-two inside the form).
   Needed because the block-library stylesheet is not loaded on the front end. */
.ws-form-two{display:flex;gap:20px}
.ws-form-two>.wp-block-column{flex:1 1 0;min-width:0}
@media (max-width:767px){.ws-form-two{flex-direction:column;gap:0}}
/* Form controls (radios, checkboxes) in the brand green rather than the browser's blue */
.jet-form-builder input[type=radio],.jet-form-builder input[type=checkbox]{accent-color:#6A784D}

/* JetSmartFilters radio shown as the design's segmented switch (Shop: All Sanctuaries / Stellenbosch / Pretoria).
   Class: ws-seg-filter on the Radio Filter widget */
.ws-seg-filter fieldset{display:inline-flex;flex-wrap:wrap;margin:0;padding:3px;border:1px solid #E1DFDA;border-radius:999px;background:#fff;min-width:0}
.ws-seg-filter .jet-radio-list__row{margin:0 !important}
.ws-seg-filter .jet-radio-list__item{display:inline-flex;align-items:center;height:32px;padding:0 16px;border-radius:999px;cursor:pointer;
  font:500 13px/1 Raleway,sans-serif;color:#3C4133;text-transform:none;letter-spacing:0;white-space:nowrap}
.ws-seg-filter .jet-radio-list__input{position:absolute;opacity:0;width:1px;height:1px}
.ws-seg-filter .jet-radio-list__decorator{display:none}
.ws-seg-filter .jet-radio-list__item:has(.jet-radio-list__input:checked){background:#2E3321;color:#F9F7F3}
.ws-seg-filter .jet-radio-list__item:has(.jet-radio-list__input:focus-visible){outline:2px solid #2E3321;outline-offset:2px}
/* Sorting filter as a pill select. Class: ws-sort-filter */
.ws-sort-filter select{min-width:190px;height:40px;padding:0 36px 0 18px;border:1px solid #E1DFDA;border-radius:999px;background-color:#fff;font:500 13px/1 Raleway,sans-serif;color:#2E3321;cursor:pointer}
/* Single product. Classes: ws-crumb (breadcrumb), ws-gallery (product images), ws-prose (accordion text) */
.ws-crumb .woocommerce-breadcrumb{margin:0;font:400 13px/1.4 Raleway,sans-serif;color:#3C4133}
.ws-crumb .woocommerce-breadcrumb a{color:#2E3321;text-decoration:none}
.ws-crumb .woocommerce-breadcrumb a:hover{color:#6A784D}
.ws-gallery .woocommerce-product-gallery{width:100%!important;float:none!important;margin:0!important}
.ws-gallery .woocommerce-product-gallery__image img,.ws-gallery .woocommerce-product-gallery__image--placeholder img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:20px}
.ws-gallery .woocommerce-product-gallery__trigger{display:none}
.ws-gallery .flex-control-thumbs{display:grid!important;grid-template-columns:repeat(4,1fr);gap:16px;margin:16px 0 0!important;padding:0}
.ws-gallery .flex-control-thumbs li{width:auto!important;float:none!important;margin:0!important;list-style:none}
.ws-gallery .flex-control-thumbs img{aspect-ratio:1/1;object-fit:cover;border-radius:12px;opacity:1!important;cursor:pointer}
.ws-gallery .flex-control-thumbs img.flex-active{outline:2px solid #2E3321;outline-offset:3px}
.ws-prose p{margin:0 0 12px}
.ws-prose p:last-child{margin:0}
/* Blog sidebar search: pill input with a search icon. Class: ws-search-filter */
.ws-search-filter .jet-search-filter__input-wrapper{position:relative}
.ws-search-filter .jet-search-filter__input-wrapper::before{content:"";position:absolute;left:16px;top:50%;width:14px;height:14px;transform:translateY(-50%);pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E3321' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat}
.ws-search-filter .jet-search-filter__input{width:100%;height:44px;padding:0 16px 0 40px;border:1px solid #E1DFDA;border-radius:999px;background:#fff;font:400 14px/1 Raleway,sans-serif;color:#2E3321}
.ws-search-filter .jet-search-filter__input:focus{outline:none;border-color:#2E3321}
.ws-search-filter .jet-search-filter__submit{display:none}
/* Blog categories as a ruled list with counts on the right. Class: ws-list-filter */
.ws-list-filter fieldset{margin:0;padding:0;border:0;min-width:0}
.ws-list-filter .jet-radio-list__row{border-top:1px solid #E1DFDA}
.ws-list-filter .jet-radio-list__row:last-child{border-bottom:1px solid #E1DFDA}
.ws-list-filter .jet-radio-list__row{padding:0!important;margin:0!important}
.ws-list-filter .jet-radio-list__item{display:block;padding:11px 0;margin:0;cursor:pointer}
.ws-list-filter .jet-radio-list__input{position:absolute;opacity:0;pointer-events:none}
.ws-list-filter .jet-radio-list__decorator{display:none}
.ws-list-filter .jet-radio-list__button{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:0;border:0;background:none}
.ws-list-filter .jet-radio-list__label{font:400 14px/1.4 Raleway,sans-serif;color:#3C4133;text-transform:none;letter-spacing:0}
.ws-list-filter .jet-filters-counter{font:400 11px/1 Raleway,sans-serif;color:#3C4133;opacity:.7}
.ws-list-filter .jet-radio-list__item:hover .jet-radio-list__label,.ws-list-filter .jet-radio-list__input:checked ~ .jet-radio-list__button .jet-radio-list__label{color:#2E3321;font-weight:600}
.ws-list-filter .jet-radio-list__input:focus-visible ~ .jet-radio-list__button{outline:2px solid #2E3321;outline-offset:3px}
/* Blog pagination: round page buttons, current page in forest. Class: ws-pager */
.ws-pager .jet-filters-pagination{display:flex;flex-wrap:wrap;gap:10px}
.ws-pager .jet-filters-pagination__item{margin:0}
.ws-pager .jet-filters-pagination__link{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #E1DFDA;border-radius:999px;background:#fff;font:500 13px/1 Raleway,sans-serif;color:#2E3321;cursor:pointer}
.ws-pager .jet-filters-pagination__current .jet-filters-pagination__link{background:#2E3321;border-color:#2E3321;color:#F9F7F3}
.ws-pager .jet-filters-pagination__dots{border:0;background:none}
/* Post breadcrumb line. Class: ws-crumbline */
.ws-crumbline .jet-listing-dynamic-field__content{color:#3C4133}
.ws-crumbline a{color:#2E3321!important;text-decoration:none}
.ws-crumbline a:hover{text-decoration:underline}
.ws-crumbline .jet-listing-dynamic-field__content span{margin:0 10px;opacity:.55}
/* Post meta row with dot separators. Class: ws-meta-dots */
.e-con.ws-meta-dots > .elementor-element + .elementor-element::before{content:"";display:inline-block;width:4px;height:4px;margin:0 12px 2px;border-radius:50%;background:#2E3321;opacity:.5;vertical-align:middle}
.e-con.ws-meta-dots > .elementor-element{display:flex;align-items:center}
/* Article body. Class: ws-article (theme post content) */
.ws-article{color:#3C4133;font:400 15px/1.75 Raleway,sans-serif}
.ws-article p{margin:0 0 22px}
.ws-article .is-style-lead,.ws-article > .elementor-widget-container > p:first-child{font-size:19px;line-height:1.6;color:#2E3321;margin-bottom:26px}
.elementor .ws-article h2{margin:44px 0 18px;font:400 26px/1.25 Raleway,sans-serif;color:#2E3321;letter-spacing:-.005em}
.elementor .ws-article h3{margin:36px 0 14px;font:500 19px/1.35 Raleway,sans-serif;color:#2E3321}
.ws-article figure{margin:40px 0}
.ws-article figure img{display:block;width:100%;height:auto}
.ws-article figcaption{margin-top:12px;font-size:12px;line-height:1.5;color:#3C4133;opacity:.8}
.ws-article blockquote{margin:40px 0;padding:4px 0 4px 26px;border-left:1px solid #6A784D}
.ws-article blockquote p{margin:0;font-size:24px;line-height:1.4;color:#2E3321}
.ws-article ul,.ws-article ol{margin:0 0 22px;padding-left:22px}
.ws-article a{color:#2E3321;text-decoration:underline;text-underline-offset:3px}
@media (max-width:767px){.ws-article .is-style-lead{font-size:17px}.elementor .ws-article h2{font-size:22px}.ws-article blockquote p{font-size:20px}}
/* Share buttons: thin forest circles. Class: ws-share */
.ws-share .elementor-share-btn{border-width:1px!important;border-color:#2E33213D!important;background:#fff}
.ws-share .elementor-share-btn:hover{border-color:#2E3321!important}
/* Sanctuary "Finding us" note under an address, and the WhatsApp "text only" note. Classes: ws-note, ws-wa-note */
.ws-note .jet-listing-dynamic-field__content p{margin:0}
.ws-note .jet-listing-dynamic-field__content{font-size:.92em;opacity:.85}
.ws-wa-note{opacity:.75}
/* Treatment menu row: note line under the treatment name (listing 81, tr-note) */
.elementor-element-tr-note p.jet-listing-dynamic-field__content,.elementor-element-tr-note .jet-listing-dynamic-field__content{margin:0}

/* Sanctuary team: the portrait placeholder keeps the photos' 4:5 shape */
.ws-portrait-placeholder{aspect-ratio:4/5}

/* Contact hero: Sanctuary name above each phone number and email address */
.ws-ch-line .jet-listing-dynamic-field__content{display:flex;flex-direction:column}
.ws-ch-town{font-size:12px;font-weight:600;color:var(--e-global-color-primary)}
.ws-ch-line a{overflow-wrap:anywhere}

/* Legal pages: part labels and indented sub-clauses */
.ws-legal .ws-legal-part{margin:56px 0 0;font:500 12px/1.4 Raleway,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#6A784D}
.ws-legal .ws-legal-sub{padding-left:22px}
.ws-legal h2+p{margin-top:0}
