/*
Theme Name: Emerald City Acupuncture
Theme URI: https://emeraldcityacupuncture.com/
Description: Divi Child Theme
Author: JF Designs
Author URI: https://jfdesigns.com
Template:    Divi
Version:     1.3
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
   --primary-color: hsla(260, 37%, 42%, 1);
    --primary-color-dark: hsla(110, 45%, 35%, 1);
    --accent-color: hsla(317, 55%, 29%, 1.0);
    --accent-hover-color: hsla(316, 58%, 20%, 1.0);
    --button-color-fill: hsla(317, 55%, 29%, 1.0);
    --button-color-fill-hover: hsla(319, 42%, 38%, 1.0);
    --button-color-outline: hsla(317, 55%, 29%, 1.0);
    --button-color-hover: hsla(319, 42%, 38%, 1.0);
	--highlight: hsla(43, 40%, 95%, 1.0);


    /* Fluid clamp-based font sizes */
    /* 	Recipe: Rem value: 10px  ||| Base: 16px-18px ||| Screen: 360px > 1280px ||| Ratio: 1.25 > 1.333  1 -1.01 individual ||| Labels: h6,base,h5,h4,h3,h2,h1 */
    --fs-h6: clamp(1.6rem, 0.2vi + 1.5rem, 1.8rem);
    --fs-base: clamp(1.6rem, 0.2vi + 1.5rem, 1.8rem);
    --fs-h5: clamp(2rem, 0.24vi + 1.91rem, 2.2rem);
    --fs-h4: clamp(2.5rem, 0.6vi + 2.3rem, 3rem);
    --fs-h3: clamp(3rem, 0.7vi + 2.8rem, 3.6rem);
    --fs-h2: clamp(3.3rem, 0.8vi + 3rem, 4rem);
    --fs-h1: clamp(3.3rem, 1.7vi + 2.7rem, 4.8rem);
	--fs-display: clamp(4.8rem, 7.83vi + 1.98rem, 12rem);
}

.dark-mode {
  --brand: hsl(var(--brand-hue) 60% 70%);
  --primary: var(--brand);
  --surface: hsl(var(--brand-hue) 3% 8%);
  --surface2: hsl(var(--brand-hue) 3% 13%);
  --text: hsl(var(--brand-hue) 20% 80%);
  --text2: hsl(var(--brand-hue) 20% 72%);

  --color-bg: hsl(0 0% 10%);
  --color-text: hsl(0 0% 90%);
}
.box-1{
	background: var(--brand);
}
.box-2{
	background: var(--surface);
}
.box-3{
	background: var(--surface2);
}
.box-4{
	background: var(--text);
}
.box-5{
	background: var(--text2);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
/* NOTE html is set to 62.5% so that all the REM measurements throughout Skeleton are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
}

body {
    font-size: var(--fs-base);
    line-height: 1.7;
    font-weight: 400;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.5s ease;
}

/* Reset paragraph spacing */
p {
    margin-top: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.jfd-base-text h1,
.jfd-base-text h2,
.jfd-base-text h3,
.jfd-base-text h4,
.jfd-base-text h5,
.jfd-base-text h6 {
  margin:       0;
  font-weight:  300;
}

.jfd-base-text h1 {
  font-size:  var(--fs-h1);
  line-height: 1.2;
}
.jfd-base-text.display h1 {
  font-size:  var(--fs-display);
  line-height: 1.2;
}

.jfd-base-text h2, .subhead-lg {
  font-size:  var(--fs-h2);
  line-height: 1.25;
  text-wrap: pretty;
}

.jfd-base-text h3, .subhead-md {
  font-size:  var(--fs-h3);
  line-height: 1.3;
   text-wrap: pretty;
}

.jfd-base-text h4, .subhead-reg {
  font-size:  var(--fs-h4);
  line-height: 1.35;
   text-wrap: pretty;
}

.jfd-base-text h5, .subhead-sm {
  font-size:  var(--fs-h5);
  line-height: 1.5;
  text-wrap: pretty;
}

.jfd-base-text h6, .subhead-x-sm {
  font-size:       var(--fs-h6);
  line-height:     1.6;
   text-wrap: pretty;
  letter-spacing:  0.05em;
  text-transform:  uppercase;
}
.jfd-base-text, .jfd-base-text p {
  font-size:  var(--fs-base);
  line-height:     1.7;
  line-height: 1.7;
}

.jfd-base-text.et_pb_bg_layout_light .et_pb_post p {
    /* blog module grid excerpt font-size */
    font-size: .85em !important;
    line-height: 1.7;
}

.et_pb_module.copyright {
    font-size: 1.5rem !important;
    line-height: 1.7;
}

/* Standalone headings */
h1 {
    margin-bottom: 0.125em;
    line-height: 1.25 !important;
}

/* Space before a heading following text or lists */
p+h1,
p+h2,
p+h3,
p+h4,
p+h5,
p+h6,
ul+h1,
ul+h2,
ul+h3,
ul+h4,
ul+h5,
ul+h6,
ol+h1,
ol+h2,
ol+h3,
ol+h4,
ol+h5,
ol+h6 {
    margin-top: 0.75em !important;
}

/* Last-of-type paragraph padding */
p:not(.has-background):last-of-type {
    padding-bottom: 1rem;
}

blockquote>p:not(.has-background):last-of-type {
    padding-bottom: 0 !important;
}

sup {
    bottom: 0.5em;
    font-size: 0.7em;
}

/* ==========================================================================
   Layout & Grid Helpers
   ========================================================================== */
/* Clearfix */
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

/* Multi-column List layout */
ul.service-list {
    columns: 2 24rem;
    column-gap: 6rem;
}

ul.service-list li {
    break-inside: avoid-column;
}

ul.service-list li.filler {
    visibility: hidden;
    height: 4rem;
    /* Adjust this to control how short the second column appears */
}

@media (max-width: 1079px) {
    ul.service-list li.filler {
        display: none
            /* Hide on mobile */
    }
}

/* Multi-column flex layout */
.mutli-col {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 6rem;
    justify-content: space-around;
}

.mutli-col ul {
    margin: 0;
    padding: 0;
}


/* RESPONSIVE IMAGE FILLS DIVI COLUMN */
/*ADD jfd-full-height-image-column CLASS TO IMAGE AND SET ROW TO EQUALIZE HEIGHT */

/* Full-height image column for Divi */
/*this sets the height of the image container*/
.jfd-full-height-image-column,
.jfd-full-height-image-column .et_pb_image_wrap {
    height: 100%;
}

/*this sets the height and fit of the actual image*/
.jfd-full-height-image-column img {
    object-fit: cover;
    height: 100%;
}
.of .et_pb_image_wrap  {
  width:100% !important;
  max-height:200px !important;
} 
.of .et_pb_image_wrap img {
  aspect-ratio: auto  !important;
   object-fit: cover !important;
   height: 100% !important;
}
/* ==========================================================================
   Components
   ========================================================================== */
/* Links */
a {
    color: var(--accent-color);
    transition: all 0.5s ease;
}

a:hover {
    color: var(--accent-hover-color);
}

/* Animated underline on hover */
.eca-link-underline a:not(.more-link) {
    position: relative;
    text-decoration: none;
}

.eca-link-underline a:not(.more-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background-color: inherit;
    transition: width 0.3s ease;
}

.eca-link-underline a:not(.more-link):hover::after {
    width: 100%;
}

/* “Read More” button */
a.more-link,
article a.more-link,
.et_pb_post .post-content a.more-link {
    position: relative;
    display: inline-block;
    clear: both;
    text-align: center;
    padding: 0.6em 1em;
    color: var(--highlight) !important;
    border: 0rem solid var(--button-color-fill) !important;
    border-radius: .3rem;
    /* letter-spacing: 0.05em; */
    font-size: .85em;
    line-height: 1.3rem;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    background: var(--button-color-fill);
}

a.more-link:hover,
article a.more-link:hover,
.et_pb_post .post-content a.more-link:hover {
    padding: 0.6em 2em 0.6em 1em !important;
    background: var(--button-color-fill-hover);
}

a.more-link::after {
    content: "\35";
    font-family: 'ETmodules' !important;
    font-size: 1.2em;
    position: absolute;
    opacity: 0;
    margin-left: -1em;
}

a.more-link:hover::after {
    opacity: 1;
    margin-left: 0;
}

/* Divi modal sticky menu fix */
.mce-panel .mce-stack-layout-item.mce-first {
    position: sticky !important;
    top: -6rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.padding-0,
.no-padding {
    padding: 0 !important;
}

.padding-bottom-0 {
    padding-bottom: 0 !important;
}

.display-inline-block {
    display: inline-block !important;
}

/* ==========================================================================
   Color swatch samples (style guide)
   ========================================================================== */

/* Flex-grid container unchanged */
ul.color-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Make each “card” a column flexbox that pushes its span to the bottom */
ul.color-list li {
    flex: 0 1 120px;
    height: 120px;
    margin: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    box-shadow: 0px 13px 30px -18px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
/* push inner content to the bottom */
    align-items: stretch;
/* make children (the span) fill full width */
    position: relative;
}

/* Full-width, bottom-aligned label */
ul.color-list li span {
    display: block;
    width: 100%;
/* span now covers entire li width */
    background: #fff;
/* hides any colored edges */
    margin-top: 0;
/* Pushes the Assignment text down the hex text top */
    margin-bottom: 0;
    padding: 4px 0;
/* adjust vertical padding as you like */
    font-family: monospace;
    font-size: clamp(1.6rem, 0.59vw + 1.122rem, 1.8rem);
    text-align: center;
/* center your hex code text */
    border-radius: 0;
/* remove rounding so it’s flush */
    z-index: 1;
}

/* ==========================================================================
   Color assignment swatch samples (style guide)
   ========================================================================== */

/* Make each “card” a column flexbox that pushes its span to the bottom */
ul.color-list.assignment li {
    flex: 0 1 240px;
}

ul.color-list.assignment li span.color-label {
    display: block;
    width: 100%;
/* span now covers entire li width */
    background: #fff;
/* hides any colored edges */
    margin-top: auto;
/* Pushes the Assignment text down the hex text top */
    margin-bottom: 0;
/* Removes the Assignment tex tbottom margin */
    padding: 4px 0;
/* adjust vertical padding as you like */
    font-family: normal;
    font-weight: 400;
    font-size: clamp(1.6rem, 0.59vw + 1.122rem, 1.8rem);
    text-align: center;
/* center your hex assignment text */
    border-radius: 0;
/* remove rounding so it’s flush */
    z-index: 1;
}

/* ==========================================================================
   Dynamic Font Details (style guide)
   ========================================================================== */

span.current-font-zize-ofthis-element {
    font-size: clamp(1.6rem, 0.3vi + 1.46rem, 1.8rem);
    font-family: monospace !important
}

span.current-viewport-width {
    font-size: 2em;
    font-family: monospace !important
}

.label {
    font-weight: bold;
    color: #444;
    display: inline-block;
    min-width: 100px;
}


/* ==========================================================================
   Forms & Contact Form 7 Overrides
   ========================================================================== */
/* Remove stubborn Divi pseudo-border */
#main-content .container:before {
    content: none;
}

/* Smart Grid container override */
.cf7sg-container .cf7-smart-grid.has-grid .container {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-wrap: wrap;
}

.cf7sg-container {
    line-height: 1.7 !important;
}

/* CF7 grid columns breakpoints */
@media (max-width: 980px) {
    .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half {
        float: left !important;
        width: 48.93617% !important;
        margin-left: 2.12766% !important;
    }

    .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half:first-child {
        margin-left: 0 !important;
    }

    .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third {
        float: left !important;
        width: 31.91489% !important;
        margin-left: 2.12766% !important;
    }

    .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third:first-child {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {

    .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns,
    .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half,
    .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .cf7sg-container .cf7-smart-grid.has-grid .container.spacer-margin-top {
        margin-top: 1.5rem !important;
    }
}

/* Signature field styling */
.wpcf7-form-control-signature-body canvas {
    width: 100%;
    height: 15rem;
    border: 0.1rem solid #e0e0e0;
    border-radius: 0.5rem;
    background: #eee;
}

.wpcf7-form-control-signature-wrap {
    width: 70% !important;
    height: 16.5rem !important;
}

@media (max-width: 768px) {
    .wpcf7-form-control-signature-wrap {
        width: 100% !important;
    }
}

/* Other CF7 tweaks */
input[type="button" i] {
    color: #800 !important;
    border: 0.2rem solid #800;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.3em 1em;
    line-height: 1.7em !important;
    background: transparent;
    border-radius: 0.3rem;
}

input[type="button" i]:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.wpcf7-form-control::placeholder {
    color: #333 !important;
}

.wpcf7-response-output {
    display: block;
}

.wpcf7 form.sent .cf7sg-response-output {
    display: none !important;
}

.wpcf7-not-valid-tip {
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    display: block !important;
    position: relative !important;
    top: 100% !important;
    padding-top: 0.3rem !important;
    line-height: 1.2em !important;
    z-index: 7777 !important;
    background: none !important;
}

.wpcf7-not-valid {
    border: 0.1rem solid red !important;
}

.wpcf7-form.sent div.container {
    display: none !important;
    transition: all 0.5s ease;
}

.wpcf7 div.wpcf7-response-output {
    font-size: 2.2rem;
    text-align: center;
}

/* ==========================================================================
   Components: Navigation & Menu
   ========================================================================== */
/* Menu breakpoint */

@media(max-width: 979px) {
  .eca-navigation .eca-navigation-menu-item {
    display:none
  }
}



/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 890px) {

    .mutli-col,
    .mutli-col-no-wrap {
        flex-direction: column;
        gap: 0;
        justify-content: center;
    }

    .mutli-col-no-wrap {
        flex-direction: row;
        gap: 3rem;
    }
}

@media (max-width: 767px) {
    .et_pb_blog_grid .et_pb_post {
        margin: 3.6rem 0 !important;
        box-shadow: 0 0.9rem 2.8rem -1.5rem rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 768px) {
    .cf7sg-container .cf7-smart-grid.has-grid .container.spacer-margin-top {
        margin-top: 1.5rem !important;
    }

    .wpcf7-form-control-signature-wrap {
        width: 100% !important;
    }
}


/* ==========================================================================
   Special Design Styles
   ========================================================================== */
/* Nav manu */

.nav-row{
	display:flex;
	flex-direction:column;
	justify-content:center;
	backdrop-filter:blur(10px)
}

.nav-column-first{
	display:flex;
	justify-content:center;
	flex:90%;
	width:90% !important;
	margin-left:auto !important;
	margin-right:auto !important;
}
.nav-column-second{
	display:flex;
	justify-content:center;
	flex:90%;
	width:90% !important;
	margin-left:auto !important;
	margin-right:auto !important;
}



/* footer column overrides */

/* Flex settings for the row */
.custom-flex-row .et_pb_row {
    display: flex;
    flex-wrap: wrap;
}

.flex-col-1 {
    flex: 0 0 30;
}

.flex-col-2 {
    flex: 0 0 45%;
}

.flex-col-3 {
    flex: 0 0 25%;
}

.flex-col-1,
.flex-col-2,
.flex-col-3 {
    margin-left: 0;
    margin-right: 0;
    padding: 0 !important
}

/* Responsive breakpoint where wrapping occurs */
@media (max-width: 980px) {

    /* First column becomes full width */
    .flex-col-1 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 4rem !important
    }

    /* Columns 2 and 3 each take 50% */
    .flex-col-2,
    .flex-col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {

    /* First column becomes full width */
    .flex-col-1 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Columns 2 and 3 each take 50% */
    .flex-col-2 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: 4rem !important
    }

    .flex-col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: 0 !important
    }
}


/*footer open hours */
.open-day {
    display: inline-block;
    width: 12%;
}

.open-hours {
    display: inline-block;
}


/* Circle Crop */
.circle-crop .et_pb_image_wrap {
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
	
   border: 1px solid;
   border-color: #194D2D;
   box-shadow: 0px 2px 18px 0px rgba(185, 167, 150, 0.31);
}

.circle-crop .et_pb_image_wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover  !important;
  display: block;
}
@media (max-width: 979px) {
	.circle-crop .et_pb_image_wrap {
  width: 50%;
	}
}