/*
Theme Name: Another Great Circle Up Theme
Description: A child of the kadence theme to handle customizations to front-end layouts for Circle Up Marketing.
Template: kadence
Version: 1.0.0
Contributors: sethsm
Authors: Jessica Dean & Seth Smigelski
Client: Circle Up Marketing
*/

/* ==========================================================================
 * 1. GLOBAL BRAND VARIABLES & PRESETS
 * ========================================================================== */

/* ==========================================================================
   Circle Up Marketing: brand tokens and base styles
   Contrast ratios are WCAG 2.x, measured on white unless noted.
   ========================================================================== */

:root {
	/* ---- Brand colors (logo, shapes, illustration; NOT for text on white) -- */
	--cu-sunshine: #F5C35E;      /* 1.6:1 on white */
	--cu-coral: #FA8B5B;         /* 2.4:1 on white */
	--cu-signal-red: #FF5257;    /* 3.2:1 on white */

	/* ---- Text ------------------------------------------------------------ */
	--cu-ink-deep: #101C28;      /* body text, 17.2:1 */
	--cu-ink-navy: #1B2B3A;      /* headings, 14.5:1 */
	--cu-muted: #5B6673;         /* captions, metadata, 5.8:1 (5.0:1 on Rose) */

	/* ---- Links ----------------------------------------------------------- */
	/* In-text links with no underline: 3.1:1 against body text, and 5.6:1 on
	   white, 5.2 Cream, 4.8 Blush, 4.7 Rose, 4.9 Mist. */
	--cu-link: #0B7289;
	--cu-link-hover: #075A6E;    /* 7.8:1 on white; pair with underline */
	
	/* Teal for UI elements outside running text: buttons, nav, footer,
	   headings. 6.7:1 on white, 5.5:1 or better on every tint. */
	--cu-teal-ui: #0A6579;
	
	/* Weird Orange Color */
	--cu-link-on-dark: #F5C35E;  /* 8.8:1 on Ink Navy */

	/* ---- Buttons --------------------------------------------------------- */
	--cu-red-deep: #C42B33;      /* primary button, white text 5.6:1 */
	--cu-red-deep-hover: #A32029;

	/* ---- Emphasis text (use for text on white or tints) ------------------ */
	--cu-red-text: #B91F2E;      /* 6.4:1, also error messages */
	--cu-orange-text: #B8480F;   /* 5.3:1 */
	--cu-gold-text: #7A5600;     /* 6.7:1 */

	/* ---- Accent backgrounds (Ink Deep text: 12:1 or better) -------------- */
	--cu-white: #FFFFFF;
	--cu-cream: #FFF6E5;
	--cu-blush: #FFE9E0;
	--cu-rose: #FFE5E6;
	--cu-mist: #E6F3F6;
	--cu-border: #E5E7EB;

	/* ---- Typography ------------------------------------------------------ */
	--cu-font-family: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif;
	
    /* ---- spacing ------------------------------------------------------ */
	--global-content-edge-padding: 1.5rem;
	
	/* ---- spacing ------------------------------------------------------ */
	/* Restore WordPress Core Spacing Presets (After dequeuing global-styles) */
    --wp--preset--spacing--10: 0.25rem;
    --wp--preset--spacing--20: 0.5rem;
    --wp--preset--spacing--30: 1rem;
    --wp--preset--spacing--40: 1.5rem;
    --wp--preset--spacing--50: 2rem;
    --wp--preset--spacing--60: 3rem;
    --wp--preset--spacing--70: 4rem;
    --wp--preset--spacing--80: 6rem;
	
	/* ---- Layout Wrapper Curves ------------------------------------------------------ */
    --cu-curve-height: 10vw; 
    --cu-curve-spacing: 2.5rem; 
    --cu-curve-border-size: 2px;
    --cu-curve-border-color: var(--cu-muted, #5B6673); 
    --cu-grad-top: #ffffff;
    --cu-grad-bottom: var(--cu-mist, #E6F3F6);
    --cu-bg-match: var(--global-palette9, #ffffff);


	/* ---- Animation Timing ------------------------------------------------------ */
    /* Shared Animation Delays for Synchronization */
    --delay-step-1: 0.2s;
    --delay-step-2: 0.8s;
    --delay-step-3: 1.4s;
}

/* ---- Base ---------------------------------------------------------------- */
body {
  background: var(--cu-white);
  color: var(--cu-ink-deep);
  font-family: var(--cu-font-family);
}
body, html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--cu-ink-navy);
  font-family: var(--cu-font-family);
}

small, figcaption, .cu-muted {
  color: var(--cu-muted);
}

/* ---- Links in running text: no underline, extra cue on hover/focus ------- */
a {
  color: var(--cu-link);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  color: var(--cu-link-hover);
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid var(--cu-teal-ui);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Links outside running text (nav, footer, cards) use the UI teal */
.cu-nav a,
.cu-footer a,
.cu-card a {
  color: var(--cu-teal-ui);
}

/* ---- Buttons ------------------------------------------------------------- */
.cu-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--cu-font-family);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.cu-btn:hover,
.cu-btn:focus-visible {
  text-decoration: none;
}
.cu-btn:focus-visible {
  outline: 3px solid var(--cu-teal-ui);
  outline-offset: 3px;
}

.cu-btn-primary {
  background: var(--cu-red-deep);
  color: var(--cu-white);
}
.cu-btn-primary:hover,
.cu-btn-primary:focus-visible {
  background: var(--cu-red-deep-hover);
  color: var(--cu-white);
}

.cu-btn-secondary {
  background: var(--cu-white);
  border-color: var(--cu-teal-ui);
  color: var(--cu-teal-ui);
}
.cu-btn-secondary:hover,
.cu-btn-secondary:focus-visible {
  background: var(--cu-mist);
  color: var(--cu-teal-ui);
}

.wp-block-button.is-style-outline .wp-element-button:not(.has-text-color):hover {
	/* ---- Add a bit of color to the button background on white sectiions */
	background: var(--cu-mist) !important;
}

/* ---- Important centered section ----------------------------------------------------- */
.impact-section {
	font-size: 110%;
  	margin: 0 auto 2rem;
  	max-width: 700px;
}
.impact-section-wide {
	font-size: 110%;
  	margin: 0 auto 2rem;
}
.impact-section-wide,
.impact-section .wp-element-button {
	font-size: 110%;
}
.cu-band-white .impact-section {
  	margin: 0 auto 0;
} /* Avoid excess margin on portfolio page */

/* ---- Accent sections ----------------------------------------------------- */
/* Using a Box-Shadow Trick for a full horizontal bleed while retaining layout */
.wp-block-kadence-rowlayout.cu-band-white,
.cu-white-section,
.cu-band-white {
	padding: 2.5rem 0;
}

.wp-block-kadence-rowlayout.cu-band-cream,
.cu-band-cream { 
	background: var(--cu-cream);
	box-shadow: 0 0 0 100vmax var(--cu-cream);
	clip-path: inset(0 -100vmax);
	padding: 2.5rem 0;
}
.wp-block-kadence-rowlayout.cu-band-blush,
.cu-band-blush { 
	background: var(--cu-blush);
	box-shadow: 0 0 0 100vmax var(--cu-blush);
	clip-path: inset(0 -100vmax);
	padding: 2.5rem 0;
}
.wp-block-kadence-rowlayout.cu-band-rose,
.cu-band-rose { 
	background: var(--cu-rose);  
	box-shadow: 0 0 0 100vmax var(--cu-rose);
	clip-path: inset(0 -100vmax);
	padding: 2.5rem 0;
}
.wp-block-kadence-rowlayout.cu-band-mist,
.cu-band-mist { background: var(--cu-mist); 
	box-shadow: 0 0 0 100vmax var(--cu-mist);
	clip-path: inset(0 -100vmax);
	padding: 2.5rem 0; 
}

.wp-block-kadence-rowlayout.cu-band-ink-navy,
.cu-band-ink-navy { background: var(--cu-ink-navy); 
	box-shadow: 0 0 0 100vmax var(--cu-ink-navy);
	clip-path: inset(0 -100vmax);
	padding: 2.5rem 0; 
	color:#fff;
}
.wp-block-kadence-rowlayout.cu-band-ink-navy h2,
.cu-band-ink-navy h2 {color:#fff}

.cu-band-white > .kt-inside-inner-col > h2:first-child,
.cu-band-cream > .kt-inside-inner-col > h2:first-child,
.cu-band-blush > .kt-inside-inner-col > h2:first-child,
.cu-band-rose > .kt-inside-inner-col > h2:first-child,
.cu-band-mist > .kt-inside-inner-col > h2:first-child,
.cu-band-ink-navy > .kt-inside-inner-col > h2:first-child,
.cu-white-section > .kt-inside-inner-col > h2:first-child {
    padding-top: 1rem; 
}

/* Dark section: white text 14.5:1, Sunshine accents 8.8:1 */
.cu-dark {
  background: var(--cu-ink-navy);
  color: var(--cu-white);
}
.cu-dark h1, .cu-dark h2, .cu-dark h3 { color: var(--cu-sunshine); }
.cu-dark a { color: var(--cu-link-on-dark); text-decoration: underline; }

/* A little tweaking to the mobile menu */
#mobile-drawer .drawer-inner,.popup-drawer .drawer-inner {
	width: calc(200px + 3em);
}
.mobile-navigation ul{
	text-align:center
}
.mobile-header-button-wrap{
	text-align:center;
	width:100%;
}

/* ---- Messages ------------------------------------------------------------ */
.cu-error { color: var(--cu-red-text); }

.uppercase {
  text-transform: uppercase;
}

/* ==========================================================================
 * CONTINUOUS LOGO MARQUEE
 * ========================================================================== */

/* The outer window */
.cu-marquee-wrapper {
	position: relative;
    overflow: hidden;
    width: 150%; margin-left:-25%; margin-right:-25%; /* full band */
    padding: 2rem 0;
    /* Optional: uncomment if you want fade gradients on the left/right edges */
    /* mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); */
}

/* Add the new overlay class */
.cu-marquee-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensures the link sits on top of the images */
}
/* Optional: Make it clear it's a link when hovered */
.cu-marquee-wrapper:hover {
    cursor: pointer;
}

/* The track holding both groups */
.cu-marquee-track {
    display: flex;
    width: max-content;
}

/* Pause the animation when the user hovers over the section */
.cu-marquee-wrapper:hover .cu-marquee-group {
    animation-play-state: paused;
}

/* The individual logo group */
.cu-marquee-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4rem; /* The space between each logo */
    padding-right: 4rem; /* CRITICAL: Must exactly match the gap to make the loop seamless */
	
	
    flex-shrink: 0; /* THE FIX: Prevents Firefox from squishing the clone and throwing off the math */
    
    /* 40s is the speed. Lower = faster, Higher = slower */
    animation: marqueeScroll 75s linear infinite; 
}

/* Logo Sizing & Reset */
.cu-marquee-group img {
    height: 60px; /* Constrains the height so all aspect ratios look balanced */
    width: auto;
    max-width: 250px; /* Prevents super-wide logos from dominating */
    object-fit: contain;
    pointer-events: none; /* Prevents clicking or dragging the images */
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cu-marquee-group {
        gap: 2.5rem;
        padding-right: 2.5rem;
    }
    .cu-marquee-group img {
        height: 45px;
    }
}

/* The Animation */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ==========================================================================
 * SERVICES SECTION LISTS
 * ========================================================================== */
.workworkwork #strategy-messaging,
.workworkwork #audits-action-plans,
.workworkwork #web-design-user-experience,
.workworkwork #development-start-to-finish,
.workworkwork #ongoing-website-care,
.workworkwork #search-ai-answers-analytics {
    scroll-margin-top: 300px;
}

.workworkwork .whitecard {
  padding: 3rem;	
}
.workworkwork .graycard {
  background: #f3f3f3;
  padding: 3rem;
  border-radius: 36px;	
}
.workworkwork .rosecard {
  background: #FFE5E6;
  padding: 3rem;
  border-radius: 36px;	
}

.workworkwork p {
  margin-bottom: 0 !iimportant;
}

.workworkwork ul {
    padding-left: 0 !important;
    list-style: none;
}

.workworkwork li {
    position: relative;
    padding-left: 2em; /* Creates the hanging indent while border-top stays full width */
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cu-border);
}

.workworkwork li::before {
    content: "";
    position: absolute;
    left: 1em;
    top: 1.55rem; /* Aligns with the first line of text (adjust slightly for your font size) */
    width: 0.4em;
    height: 0.4em;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .workworkwork .whitecard, .workworkwork .graycard, .workworkwork .rosecard {
	  padding: 1.5rem;	
	}
	.wp-block-seo44-jump-links {display:none;}
}

/* =====================================================================
   SERVICES LOCKUP (Centered Image + Bowed List)
===================================================================== */

.cu-services-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Extra gap accounts for the -2rem pull on items 1 & 6 */
    gap: clamp(2.5rem, 4vw, 3.5rem);
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.cu-services-visual {
    flex: 0 1 400px; /* Caps at 400px on desktop, shrinks gracefully on tablet */
    max-width: 400px;
    margin: 0;
	margin-bottom: 0 !important;
}

.cu-services-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Force the list to only take the width its text needs */
.cu-services-lockup ul.whatwedo-overview {
    flex: 0 1 auto;
    margin: 0;
}

/* Keep links on one line on tablet/desktop & scale font slightly for tablets */
@media (min-width: 769px) {
    .cu-services-lockup ul.whatwedo-overview li {
        font-size: clamp(1.25rem, 2.2vw, 27px);
    }

    .cu-services-lockup ul.whatwedo-overview li a {
        white-space: nowrap;
    }
}

/* Stack cleanly on mobile */
@media (max-width: 768px) {
    .cu-services-lockup {
        flex-direction: column;
        gap: 1rem;
    }

    .cu-services-visual {
        max-width: 280px;
		flex: 0 1 280px;
    }
	
	.cu-services-lockup ul.whatwedo-overview li {
		font-size:24px;
	}
}

/* =====================================================================
   BOWED SERVICES OVERVIEW LIST
===================================================================== */

/* 1. Reset List (fixed selector) */
ul.whatwedo-overview {
    list-style: none;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 2. List Items (H3 styling) */
ul.whatwedo-overview li {
    font-style: normal;
    font-weight: 500;
    font-size: 27px;
    line-height: 1.5;
    color: var(--global-palette3);
}

/* 3. Dividers on all items EXCEPT the first */
ul.whatwedo-overview li + li {
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--cu-border);
}

/* 4. Link Layout & Arrow Circle SVG Icon */
ul.whatwedo-overview li a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
}

/* 5. Bowed Curve (Desktop/Tablet only so mobile stays aligned) */
@media (min-width: 769px) {
    /* Top & Bottom: pulled left toward the circle */
    ul.whatwedo-overview li:nth-child(1),
    ul.whatwedo-overview li:nth-child(6) {
        margin-left: -2rem;
    }

    /* Upper-Mid & Lower-Mid: neutral baseline */
    ul.whatwedo-overview li:nth-child(2),
    ul.whatwedo-overview li:nth-child(5) {
        margin-left: 0;
    }

    /* Center Two: pushed right to bow around the widest part of the circle */
    ul.whatwedo-overview li:nth-child(3),
    ul.whatwedo-overview li:nth-child(4) {
        margin-left: 1.5rem;
    }
	
	ul.whatwedo-overview li a::after {
		content: "";
		display: inline-block;
		width: 1em;
		height: 1em;
		flex-shrink: 0;
		background-color: currentColor; /* Matches link & hover color automatically */

		/* Your exact Feather arrow-right-circle SVG */
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 16 16 12 12 8'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 16 16 12 12 8'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
		-webkit-mask-size: contain;
		mask-size: contain;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;

		transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	ul.whatwedo-overview li a:hover::after {
		transform: translateX(5px);
	}
	
}

@media (max-width: 768px) {
    ul.whatwedo-overview li + li {
        position: relative;
        border-top: none;
    }

    ul.whatwedo-overview li + li::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
        height: 1px;
        background-color: var(--cu-border);
    }
}


/* ==========================================================================
 * BIG NUMBER LISTS
 * ========================================================================== */

/* 1. Initialize the counter on the parent UL */
ul.big-number-list {
  list-style: none; /* Remove default browser numbers/bullets */
  padding-left: 0;
  counter-reset: custom-number-counter; /* Creates and sets the counter to 0 */
}

/* 2. Increment the counter and create space on the LI */
ul.big-number-list > li {
  position: relative;
  counter-increment: custom-number-counter; /* Adds 1 to the counter for each LI */
  padding-left: 60px; /* Creates physical space for the absolute-positioned numbers */
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cu-border);
  min-height: 40px; /* Ensures short text doesn't collapse below the number height */
}

/* Remove border and spacing from last item */
ul.big-number-list > li:last-child {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}

/* 3. Render and style the number using the ::before pseudo-element */
ul.big-number-list > li::before {
  content: counter(custom-number-counter); /* Outputs the current numerical value */
  position: absolute;
  left: 0;
  top: 0; 
  font-weight: 700;
  font-size: 48px; /* Increased slightly to match the heavy visual weight in the screenshot */
  line-height: 0.8; /* Keeps the bounding box tight around large text */
  color: #fff;
  -webkit-text-stroke: 1.5px  var(--cu-teal-ui, #0A6579); 
  text-shadow: 3px 3px 0  var(--cu-teal-ui, #0A6579);
  text-align: center;
  min-width: 40px;
}

/* ==========================================================================
 * BIG NUMBER HEADINGS
 * ========================================================================== */

/* 1. Initialize the counter on the parent wrapper (The Kadence Row Layout) */
.numbered-heading-row {
    counter-reset: h3-big-number;
}

/* 2. Increment the counter and create space on the Heading itself */
h3.big-number-heading {
    position: relative;
    counter-increment: h3-big-number;
    padding-left: 65px; /* Creates physical space for the number */
    min-height: 48px; /* Ensures short headings don't clip the big number */
}

/* 3. Render and style the number */
h3.big-number-heading::before {
    content: counter(h3-big-number); 
    position: absolute;
    left: 0;
    
    /* Vertically aligns the number with the first line of the H3 text */
    top: 2px; 
    
    /* Reused Visual Style */
    font-weight: 700;
    font-size: 48px; 
    line-height: 0.8; 
    color: #fff;
    -webkit-text-stroke: 1.5px var(--cu-teal-ui, #0A6579); 
    text-shadow: 3px 3px 0 var(--cu-teal-ui, #0A6579);
    text-align: center;
    min-width: 40px;
}

/* ==========================================================================
 * ANGLED OUTCOMES LIST
 * ========================================================================== */

/* 1. Define the base step variable on the parent wrapper */
.angled-list .kt-svg-icon-list {
    /* This defines the 50% mark. The first item will double this. */
    --stair-step: 3.5rem; 
}

/* 2. Indent the First Item (100% of the maximum indent) */
.angled-list .kt-svg-icon-list > li:nth-child(1) {
	margin-left: 0;
    
}

/* 3. Indent the Second Item (50% of the first item) */
.angled-list .kt-svg-icon-list > li:nth-child(2) {
    margin-left: calc(var(--stair-step) * 1); /* Shifts right by 40px */
	margin-top:2rem;
	margin-bottom:2rem;
}

/* 4. The Third Item remains at baseline (0) */
.angled-list .kt-svg-icon-list > li:nth-child(3) {
    margin-left: calc(var(--stair-step) * 2); /* Shifts right by 80px */
}

.angled-list.wp-block-kadence-iconlist ul.kt-svg-icon-list .kt-svg-icon-list-item-wrap .kt-svg-icon-list-single {
	margin-right:1rem;
}

/* 5. Mob ile Optimization (Prevents text from squishing on small screens) */
@media (max-width: 768px) {
    .angled-list .kt-svg-icon-list {
        /* Reduces the drastic angle on phones to preserve reading width */
        --stair-step: 16px; 
    }
}

/* ==========================================================================
 * 2. GLOBAL TYPOGRAPHY, LINKS & SPACING
 * ========================================================================== */

 /* Typography Utilities */
.has-large-font-size { font-size: 120% !important; }

/* Global Link Hover States (Underlines) */
li a,
li span a,
p a, 
.wp-block-seo44-jump-links ul li a {
    text-underline-offset: .1em;
    transition: all .1s linear;
}

/* Global Underline On Hover Styling - Applied in many locations */
li a:hover,
li span a:hover,
p a:hover,
.wp-block-seo44-jump-links ul li a:hover {
    text-decoration: underline !important;
    text-underline-offset: .25em;
}

/* Global Page Spacing */
.wp-block-kadence-header { margin: 1rem 0; }
footer.site-footer { 
	padding-top: 2.5rem;
}

/* Shrink Kadence's default vertical spacing gap */
.content-area {
    margin-top: 1.5rem !important;    
    margin-bottom: 1.5rem !important; 
}

.entry-hero.page-hero-section .entry-header {
    min-height: 50px !important; 
    margin-top: 2rem;
}


/* =====================================================================
   ADDITIONAL SPACING AND ALIGNMENT OVERRIDE
===================================================================== */

.wp-block-image.size-large{
    text-align: center;
}
.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Ensure the actual image inside the centered figure is also centered */
figure.aligncenter img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
    margin-bottom: 0.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
    margin-bottom: 0.5em;
}

/* Clearfix for containers holding floated images */
.wp-block-image::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
 * 3. WORDPRESS CORE & GUTENBERG OVERRIDES
 * ========================================================================== */

/* --- Blockquotes --- */
blockquote, .entry-content blockquote {
 border-top: 1px solid #b0b0b0;
  border-bottom: 1px solid #b0b0b0;
  margin: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  border-left:none !important;
}

.wp-block-quote, blockquote {
    /*font-size: 1.25rem; */
}

blockquote p {
  font-size: 1.35rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.wp-block-quote cite, blockquote cite {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #444;
    font-style: italic;
    display: block;
    margin-top: 0.75rem;
}

@media all and (min-width: 769px) {
    blockquote {
        position: relative;
          margin: 1.5em 50px !important;
        }
    blockquote::before {
      content: "“";
      position: absolute;
      top: -1.5rem;
      left: -50px;
      font-size: 7rem;
      color: #b0b0b0;
      line-height: 1;
      z-index: -1;
    }
}

/* --- Image & Text Alignment Utilities --- */
.has-text-align-left { text-align: left !important; }
.has-text-align-center { text-align: center !important; }
.has-text-align-right { text-align: right !important; }
.has-text-align-justify { text-align: justify !important; }

/* Image Alignments (Float & Shrink Wrapper) */
/* Target the div wrapper if it HAS an aligned figure, or is aligned itself */
.entry-content .wp-block-image:has(.alignleft),
.entry-content .wp-block-image.alignleft {
    float: left !important;
    margin: 3rem 1.5rem 1.5rem 0 !important;
    width: -moz-max-content !important;
    width: max-content !important;
    max-width: 100%;
    clear: none !important;
}

.entry-content .wp-block-image:has(.alignright),
.entry-content .wp-block-image.alignright {
    float: right !important;
    margin: 3rem 0 1.5rem 1.5rem !important;
    width: -moz-max-content !important;
    width: max-content !important;
    max-width: 100%;
    clear: none !important;
}

.entry-content .wp-block-image:has(.aligncenter),
.entry-content .wp-block-image.aligncenter {
    float: none !important;
    width: -moz-max-content !important;
    width: max-content !important;
    max-width: 100%;
    clear: both !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Adjacent Paragraph Spacing */
.entry-content .wp-block-image + p.has-text-align-left.wp-block-paragraph,
.entry-content .wp-block-image + p.has-text-align-right.wp-block-paragraph {
    margin-top: 3rem; 
}

/* Figure & Caption Setup inside floats */
/* Since the outer div is floating, the figure just needs to handle the caption */
.entry-content .wp-block-image figure.alignleft,
.entry-content .wp-block-image figure.alignright,
.entry-content .wp-block-image figure.aligncenter {
    float: none !important;
    margin: 0 !important;
    display: table !important; 
    max-width: 100%;
}

.entry-content .wp-block-image figcaption {
    display: table-caption !important;
    caption-side: bottom !important;
    text-align: center;
    font-size: 0.85em;
    color: var(--cu-muted, #5B6673);
    margin-top: 0.5em;
    line-height: 1.4;
}

/* Ensure Paragraphs can flow normally */
.entry-content p {
    clear: none;
}

/* Clearfix for the parent container */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}
/* Rounded Image Utility */
.is-style-rounded img{
    border-radius:50%;
}

/* --- Responsive Embeds & Galleries --- */

/* Restored for Gutenberg editor compatibility */
/* Video Embeds (16:9 Aspect Ratio) */
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9; /* Modern intrinsic ratio */
    width: 100%;
}
.wp-block-embed.wp-has-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Native Gutenberg Gallery Grid Layout (With Overlays) --- */
.wp-block-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; 
    padding: 0;
    margin: 0;
}

/* The individual image wrapper */
.wp-block-gallery.has-nested-images figure.wp-block-image {
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%; 
    position: relative; /* REQUIRED for the absolute caption to stick to this box */
}

/* Ensure images fill the box perfectly */
.wp-block-gallery.is-cropped figure.wp-block-image img,
.wp-block-gallery.is-cropped figure.wp-block-image a {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* --- Image-level Caption Overlay --- */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1.5rem 1rem 0.5rem; /* Extra top padding for the gradient fade */
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    box-sizing: border-box;
    text-align: center;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Ensure the master gallery caption (if one exists) spans all columns underneath */
.wp-block-gallery > figcaption {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0.5rem;
}

/* Force mobile stacking on Kadence's standard mobile breakpoint */
@media (max-width: 768px) {
    .wp-block-gallery.has-nested-images {
        grid-template-columns: 1fr;
    }
}

/* --- Buttons --- */
/* Full-Width Core Buttons */
.wp-block-buttons .wp-block-button.has-custom-width { 
    max-width: none; 
}

/* Force the actual anchor link inside the wrapper to expand to the assigned width */
.wp-block-buttons .wp-block-button.has-custom-width .wp-block-button__link { 
    width: 100%; 
    box-sizing: border-box; 
}

/* Fractional Widths (Calculated to account for the 0.5em flex gap) */
.wp-block-buttons .wp-block-button.wp-block-button__width-25 { 
    width: calc(25% - (0.5em * 0.75)); 
}

.wp-block-buttons .wp-block-button.wp-block-button__width-50 { 
    width: calc(50% - (0.5em * 0.5)); 
}

.wp-block-buttons .wp-block-button.wp-block-button__width-75 { 
    width: calc(75% - (0.5em * 0.25)); 
}

.wp-block-buttons .wp-block-button.wp-block-button__width-100 { 
    width: 100%; 
    flex-basis: 100%; 
}
/* Force the actual anchor link inside the wrapper to expand to the assigned width AND center the text */
.wp-block-buttons .wp-block-button.has-custom-width .wp-block-button__link { 
    width: 100%; 
    box-sizing: border-box; 
    text-align: center; 
    justify-content: center; 
}

/* --- Button Layout & Alignment Utilities --- */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em; /* Standard Gutenberg button gap */
}

.wp-block-buttons.is-content-justification-center {
    justify-content: center !important;
}

.wp-block-buttons.is-content-justification-right {
    justify-content: flex-end !important;
}

.wp-block-buttons.is-content-justification-left {
    justify-content: flex-start !important;
}

.wp-block-buttons.is-content-justification-space-between {
    justify-content: space-between !important;
}

/* ==========================================================================
 * Portfolio Featured Images & Headline style for posts
 * ========================================================================== */

.post-thumbnail.article-post-thumbnail {
	margin-top:-2.5rem; /* Space Like First Call */
    margin-bottom: 0rem !important;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;}
.post-thumbnail-inner img {
    aspect-ratio: 2.5 / 1;
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures the image crops nicely instead of stretching */
	min-height:250px; /* Don't hed the post title circle ride too high on mobile */
	
}

/* 1. The Circle Header Container */
.category-portfolio .entry-header {
    position: relative;
    z-index: 10;
    
    /* Size and Layout */
    width: 414px;
    height: 414px;
    margin: 0 auto;
    margin-top: -276px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.5rem; 
    box-sizing: border-box;
    
    /* REMOVED background, border, and shadow from the parent */
    background-color: transparent; 
    border: none;
	--icon-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='432' zoomAndPan='magnify' viewBox='0 0 324 36.000001' height='48' preserveAspectRatio='xMidYMid meet' version='1.0'%3E%3Cdefs%3E%3CclipPath id='d3491de5c3'%3E%3Cpath d='M 4.378906 0 L 319.621094 0 L 319.621094 35.027344 L 4.378906 35.027344 Z M 4.378906 0 ' clip-rule='nonzero'/%3E%3C/clipPath%3E%3CclipPath id='e147107a00'%3E%3Cpath d='M 109.570312 0 L 144.597656 0 L 144.597656 35.027344 L 109.570312 35.027344 Z M 109.570312 0 ' clip-rule='nonzero'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23d3491de5c3)'%3E%3Cpath fill='%23ffffff' d='M 4.378906 0 L 319.621094 0 L 319.621094 35.027344 L 4.378906 35.027344 Z M 4.378906 0 ' fill-opacity='1' fill-rule='nonzero'/%3E%3Cpath fill='%23ffffff' d='M 4.378906 0 L 319.621094 0 L 319.621094 35.027344 L 4.378906 35.027344 Z M 4.378906 0 ' fill-opacity='1' fill-rule='nonzero'/%3E%3C/g%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 4.4332, 0.00000194595)' fill='none' stroke-linejoin='round' d='M 3.000631 11.998769 C 3.000631 7.756509 3.000631 5.636717 4.317472 4.317201 C 5.636989 3.00036 7.75678 3.00036 11.99904 3.00036 C 16.2413 3.00036 18.363768 3.00036 19.683285 4.317201 C 21.000125 5.636717 21.000125 7.759186 21.000125 11.998769 C 21.000125 16.241029 21.000125 18.363497 19.683285 19.683014 C 18.363768 20.999854 16.2413 20.999854 11.99904 20.999854 C 7.75678 20.999854 5.636989 20.999854 4.317472 19.683014 C 3.000631 18.363497 3.000631 16.241029 3.000631 11.998769 M 3.501138 8.000071 L 20.499619 8.000071 M 13.000053 11.998769 L 16.998751 11.998769 M 13.000053 16.000144 L 14.999402 16.000144 M 8.998678 8.000071 L 8.998678 20.999854 ' stroke='%23f5c35e' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 39.405401, -0.0548241)' fill='none' stroke-linejoin='round' d='M 14.485826 22.000964 L 13.000366 22.000964 L 13.000366 20.512827 C 13.000366 20.041762 13.187722 19.589433 13.522285 19.257546 L 18.388171 14.388984 C 18.907413 13.869742 19.753188 13.869742 20.27243 14.388984 L 20.60967 14.726223 C 21.128912 15.248142 21.128912 16.091241 20.60967 16.613159 L 15.743784 21.479045 C 15.395838 21.826991 14.978303 22.000964 14.485826 22.000964 M 19.00109 9.999516 L 19.00109 9.00118 C 19.00109 5.701049 19.00109 4.049645 17.975989 3.024544 C 16.950887 1.999443 15.299484 1.999443 11.999353 1.999443 L 10.000004 1.999443 C 6.699874 1.999443 5.051147 1.999443 4.026045 3.024544 C 3.000944 4.049645 3.000944 5.701049 3.000944 9.00118 L 3.000944 16.00024 C 3.000944 18.339505 3.000944 19.509138 3.536245 20.362943 C 3.819955 20.812596 4.186636 21.179277 4.638965 21.462986 C 5.49277 22.000964 6.662403 22.000964 8.998991 22.000964 M 11.001017 6.000818 L 14.999715 6.000818 M 6.999642 9.999516 L 14.999715 9.999516 M 6.999642 14.000891 L 13.000366 14.000891 ' stroke='%23fa8b5b' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='butt' transform='matrix(1.459459, 0, 0, 1.459459, 74.487256, -0.0548241)' fill='none' stroke-linejoin='round' d='M 21.819568 10.411697 C 22.06313 11.851656 22.183573 12.571636 21.241443 13.933977 C 21.145089 14.073155 20.896174 14.370247 20.775732 14.49069 C 19.608776 15.660322 18.431114 15.660322 16.073113 15.660322 L 14.138 15.660322 C 13.509022 15.660322 13.193194 15.660322 12.963015 15.713852 C 12.719453 15.775412 12.494626 15.877119 12.288535 16.021651 C 12.085121 16.166182 11.911148 16.342831 11.77197 16.554275 C 11.632792 16.763042 11.533761 16.990545 11.480231 17.234107 C 11.424024 17.480346 11.415995 17.726584 11.453466 17.975499 C 11.48826 18.211031 11.60335 18.508123 11.838883 19.102307 C 11.935237 19.345869 11.980737 19.466312 12.012855 19.731286 C 12.127945 20.70821 11.086785 21.950108 10.115214 21.992932 C 9.852916 22.003638 9.836857 22.000962 9.802063 21.992932 C 8.691313 21.741341 7.652829 21.310424 6.686611 20.702857 C 5.723069 20.092614 4.888 19.340516 4.184079 18.443887 C 0.736741 14.081185 1.432632 7.711104 5.736452 4.220941 C 10.040271 0.728103 16.322028 1.429347 19.769366 5.79205 C 20.850674 7.157067 21.533182 8.696057 21.819568 10.411697 Z M 21.819568 10.411697 ' stroke='%23ff5257' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 74.487256, -0.0548241)' fill='none' stroke-linejoin='round' d='M 7.366443 7.751251 L 7.243324 7.751251 M 7.492239 7.751251 C 7.492239 7.818164 7.46815 7.877047 7.419973 7.9279 C 7.36912 7.976078 7.310237 8.000166 7.243324 8.000166 C 7.173735 8.000166 7.114852 7.976078 7.063998 7.9279 C 7.015821 7.877047 6.991733 7.818164 6.991733 7.751251 C 6.991733 7.681662 7.015821 7.622779 7.063998 7.571925 C 7.114852 7.523748 7.173735 7.49966 7.243324 7.49966 C 7.310237 7.49966 7.36912 7.523748 7.419973 7.571925 C 7.46815 7.622779 7.492239 7.681662 7.492239 7.751251 M 7.366443 15.751324 L 7.243324 15.751324 M 7.492239 15.751324 C 7.492239 15.818236 7.46815 15.877119 7.419973 15.927973 C 7.36912 15.97615 7.310237 16.000238 7.243324 16.000238 C 7.173735 16.000238 7.114852 15.97615 7.063998 15.927973 C 7.015821 15.877119 6.991733 15.818236 6.991733 15.751324 C 6.991733 15.681734 7.015821 15.622851 7.063998 15.571998 C 7.114852 15.523821 7.173735 15.499732 7.243324 15.499732 C 7.310237 15.499732 7.36912 15.523821 7.419973 15.571998 C 7.46815 15.622851 7.492239 15.681734 7.492239 15.751324 M 11.868324 5.749226 L 11.742528 5.749226 M 11.991443 5.749226 C 11.991443 5.818815 11.967355 5.877698 11.919178 5.925875 C 11.871001 5.976729 11.812118 6.000817 11.742528 6.000817 C 11.672939 6.000817 11.614056 5.976729 11.565879 5.925875 C 11.517702 5.877698 11.490937 5.818815 11.490937 5.749226 C 11.490937 5.679637 11.517702 5.620753 11.565879 5.572576 C 11.614056 5.524399 11.672939 5.500311 11.742528 5.500311 C 11.812118 5.500311 11.871001 5.524399 11.919178 5.572576 C 11.967355 5.620753 11.991443 5.679637 11.991443 5.749226 M 16.367528 7.751251 L 16.241733 7.751251 M 16.493324 7.751251 C 16.493324 7.818164 16.466559 7.877047 16.418382 7.9279 C 16.370205 7.976078 16.311322 8.000166 16.241733 8.000166 C 16.172144 8.000166 16.113261 7.976078 16.065083 7.9279 C 16.016906 7.877047 15.992818 7.818164 15.992818 7.751251 C 15.992818 7.681662 16.016906 7.622779 16.065083 7.571925 C 16.113261 7.523748 16.172144 7.49966 16.241733 7.49966 C 16.311322 7.49966 16.370205 7.523748 16.418382 7.571925 C 16.466559 7.622779 16.493324 7.681662 16.493324 7.751251 M 18.366877 11.749949 L 18.241082 11.749949 M 18.492673 11.749949 C 18.492673 11.819538 18.468585 11.878421 18.417731 11.926598 C 18.369554 11.974775 18.310671 11.998864 18.241082 11.998864 C 18.174169 11.998864 18.115286 11.974775 18.064432 11.926598 C 18.016255 11.878421 17.992167 11.819538 17.992167 11.749949 C 17.992167 11.68036 18.016255 11.621477 18.064432 11.5733 C 18.115286 11.525123 18.174169 11.501034 18.241082 11.501034 C 18.310671 11.501034 18.369554 11.525123 18.417731 11.5733 C 18.468585 11.621477 18.492673 11.68036 18.492673 11.749949 M 5.867601 11.749949 L 5.741805 11.749949 M 5.99072 11.749949 C 5.99072 11.819538 5.966631 11.878421 5.918454 11.926598 C 5.870277 11.974775 5.811394 11.998864 5.741805 11.998864 C 5.672216 11.998864 5.613333 11.974775 5.565156 11.926598 C 5.516979 11.878421 5.49289 11.819538 5.49289 11.749949 C 5.49289 11.68036 5.516979 11.621477 5.565156 11.5733 C 5.613333 11.525123 5.672216 11.501034 5.741805 11.501034 C 5.811394 11.501034 5.870277 11.525123 5.918454 11.5733 C 5.966631 11.621477 5.99072 11.68036 5.99072 11.749949 ' stroke='%23ff5257' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 109.569112, 0.00000194595)' fill='none' stroke-linejoin='round' d='M 16.000968 9.99942 L 17.226807 11.056639 C 17.740696 11.500939 18.000317 11.723089 18.000317 11.998769 C 18.000317 12.277126 17.740696 12.499275 17.226807 12.943575 L 16.000968 14.000795 M 8.000895 9.99942 L 6.77238 11.056639 C 6.258491 11.500939 5.99887 11.723089 5.99887 11.998769 C 5.99887 12.277126 6.258491 12.499275 6.77238 12.943575 L 8.000895 14.000795 M 13.000606 9.001084 L 11.001257 14.999131 ' stroke='%23f5c35e' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cg clip-path='url(%23e147107a00)'%3E%3Cpath stroke-linecap='butt' transform='matrix(1.459459, 0, 0, 1.459459, 109.569112, 0.00000194595)' fill='none' stroke-linejoin='miter' d='M 2.500678 11.998769 C 2.500678 7.520977 2.500678 5.280742 3.889784 3.891636 C 5.281567 2.499854 7.521801 2.499854 11.999593 2.499854 C 16.477386 2.499854 18.71762 2.499854 20.109402 3.891636 C 21.501185 5.280742 21.501185 7.520977 21.501185 11.998769 C 21.501185 16.479238 21.501185 18.716796 20.109402 20.108578 C 18.71762 21.500361 16.480062 21.500361 11.999593 21.500361 C 7.521801 21.500361 5.281567 21.500361 3.889784 20.108578 C 2.500678 18.716796 2.500678 16.479238 2.500678 11.998769 Z M 2.500678 11.998769 ' stroke='%23f5c35e' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3C/g%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 144.48648, 0.00000194595)' fill='none' stroke-linejoin='round' d='M 21.999426 6.750143 L 19.210508 6.750143 C 18.610971 6.750143 18.308526 6.750143 18.024817 6.664495 C 17.743784 6.578847 17.492192 6.412904 16.991686 6.078341 C 16.242264 5.577834 15.385783 5.007739 14.960219 4.879267 C 14.537331 4.750794 14.085002 4.750794 13.18302 4.750794 C 11.95718 4.750794 11.167612 4.750794 10.616252 4.978297 C 10.064892 5.2058 9.631298 5.639394 8.76411 6.509258 L 8.001307 7.269385 C 7.805922 7.46477 7.706891 7.563801 7.648008 7.660155 C 7.535595 7.839481 7.484741 8.034866 7.495447 8.243633 C 7.50883 8.455077 7.578419 8.642432 7.709568 8.808376 C 7.779157 8.8967 7.886217 8.985025 8.103014 9.158998 C 8.897936 9.798682 10.046156 9.734446 10.766136 9.009113 L 12.000005 7.767215 L 13.001017 7.767215 L 18.999064 13.802733 C 19.132889 13.936558 19.234597 14.091796 19.306862 14.265769 C 19.376451 14.439741 19.413922 14.621744 19.413922 14.809099 C 19.413922 14.996454 19.376451 15.178457 19.306862 15.352429 C 19.234597 15.526402 19.132889 15.68164 18.999064 15.815465 C 18.867915 15.94929 18.715355 16.050997 18.541382 16.123263 C 18.367409 16.195528 18.188083 16.230323 18.000728 16.230323 C 17.813373 16.230323 17.63137 16.195528 17.457398 16.123263 C 17.286101 16.050997 17.13354 15.94929 16.999715 15.815465 L 16.499209 15.312282 M 13.498847 12.295861 L 16.499209 15.312282 M 16.499209 15.312282 C 16.633034 15.446107 16.734741 15.601344 16.807007 15.775317 C 16.876596 15.94929 16.914067 16.131292 16.914067 16.318648 C 16.914067 16.506003 16.876596 16.688005 16.807007 16.861978 C 16.734741 17.035951 16.633034 17.191188 16.499209 17.325013 C 16.36806 17.456162 16.215499 17.560546 16.041527 17.632811 C 15.867554 17.705077 15.688228 17.739872 15.500873 17.739872 C 15.313517 17.739872 15.131515 17.705077 14.957542 17.632811 C 14.786246 17.560546 14.631009 17.456162 14.49986 17.325013 L 13.498847 16.318648 M 13.498847 16.318648 C 13.632672 16.452473 13.73438 16.605034 13.806645 16.779006 C 13.878911 16.955656 13.913705 17.134982 13.913705 17.325013 C 13.913705 17.512369 13.878911 17.694371 13.806645 17.868344 C 13.73438 18.042317 13.632672 18.194877 13.498847 18.328703 C 13.367698 18.462528 13.215138 18.566912 13.041165 18.636501 C 12.867192 18.708766 12.687866 18.746237 12.500511 18.746237 C 12.313156 18.746237 12.131153 18.708766 11.95718 18.636501 C 11.785884 18.566912 11.633323 18.462528 11.499498 18.328703 L 10.000656 16.82183 M 13.498847 16.318648 L 11.499498 14.319299 M 9.500149 16.318648 L 10.000656 16.82183 M 10.000656 16.82183 C 10.131804 16.955656 10.233511 17.108216 10.305777 17.282189 C 10.378043 17.456162 10.412837 17.638164 10.412837 17.828196 C 10.412837 18.015552 10.378043 18.197554 10.305777 18.371527 C 10.233511 18.5455 10.131804 18.69806 10.000656 18.831886 C 9.86683 18.965711 9.71427 19.067418 9.540297 19.139684 C 9.369 19.211949 9.186998 19.24942 8.999643 19.24942 C 8.812287 19.24942 8.632962 19.211949 8.458989 19.139684 C 8.285016 19.067418 8.132455 18.965711 8.001307 18.831886 L 5.174918 15.951966 C 4.596793 15.357782 4.305054 15.06069 3.933019 14.905453 C 3.563662 14.750216 3.148804 14.750216 2.319087 14.750216 L 2.000583 14.750216 ' stroke='%23fa8b5b' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 144.48648, 0.00000194595)' fill='none' stroke-linejoin='miter' d='M 21.999426 14.750216 L 19.499571 14.750216 M 8.499136 6.750143 L 2.000583 6.750143 ' stroke='%23fa8b5b' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 179.513507, -0.10965)' fill='none' stroke-linejoin='round' d='M 15.99892 1.999538 L 15.99892 6.000912 M 7.998847 1.999538 L 7.998847 6.000912 M 13.001235 3.998887 L 10.999209 3.998887 C 7.228014 3.998887 5.343755 3.998887 4.171446 5.171196 C 3.001813 6.343505 2.999137 8.227764 2.999137 11.998959 L 2.999137 14.000984 C 2.999137 17.77218 2.999137 19.656439 4.171446 20.828748 C 5.343755 21.99838 7.228014 22.001057 10.999209 22.001057 L 13.001235 22.001057 C 16.769753 22.001057 18.656689 22.001057 19.828998 20.828748 C 20.998631 19.656439 21.001307 17.77218 21.001307 14.000984 L 21.001307 11.998959 C 21.001307 8.227764 21.001307 6.343505 19.828998 5.171196 C 18.656689 4.001563 16.769753 3.998887 13.001235 3.998887 M 2.999137 9.99961 L 21.001307 9.99961 ' stroke='%23ff5257' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 179.513507, -0.10965)' fill='none' stroke-linejoin='round' d='M 8.99986 16.50084 C 8.99986 16.50084 10.498703 16.99867 10.999209 18.500189 C 10.999209 18.500189 13.177884 14.498814 15.99892 13.500478 ' stroke='%23ff5257' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 214.540533, 0.00000194595)' fill='none' stroke-linejoin='round' d='M 2.001018 6.000723 L 2.999354 6.000723 M 2.999354 6.000723 L 7.455735 17.490958 C 8.106126 19.169127 8.432659 20.006873 8.981343 19.998843 C 9.532703 19.99349 9.835148 19.145038 10.442714 17.45081 L 10.498921 17.292897 M 2.999354 6.000723 L 6.500223 6.000723 M 6.500223 6.000723 L 7.455735 6.000723 M 6.500223 6.000723 L 10.498921 17.292897 M 10.498921 17.292897 L 12.816774 11.000434 M 10.001091 6.000723 L 10.999427 6.000723 M 10.999427 6.000723 L 15.455808 17.490958 C 16.106199 19.169127 16.432732 20.006873 16.981416 19.998843 C 17.530099 19.99349 17.835221 19.145038 18.442787 17.45081 L 18.498994 17.292897 M 10.999427 6.000723 L 14.500296 6.000723 M 14.500296 6.000723 L 15.455808 6.000723 M 14.500296 6.000723 L 18.498994 17.292897 M 18.498994 17.292897 L 20.527785 11.642795 M 20.527785 11.642795 L 21.536827 9.233941 C 21.946332 8.109808 22.085511 6.953558 21.951685 5.76519 C 21.796448 4.357349 21.156763 3.000361 19.500007 3.000361 C 17.961017 3.000361 17.208919 4.72403 18.188519 5.893662 C 19.770334 7.783275 21.170146 9.876302 20.527785 11.642795 ' stroke='%23f5c35e' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 249.786878, -0.219302)' fill='none' stroke-linejoin='round' d='M 7.000556 17.999872 L 7.000556 16.000523 M 12.000267 17.999872 L 12.000267 14.999511 M 16.999978 17.999872 L 16.999978 13.000162 M 2.498676 11.999149 C 2.498676 7.521357 2.498676 5.281122 3.890458 3.892016 C 5.28224 2.500234 7.519798 2.500234 12.000267 2.500234 C 16.47806 2.500234 18.718294 2.500234 20.110076 3.892016 C 21.499182 5.281122 21.499182 7.521357 21.499182 11.999149 C 21.499182 16.476941 21.499182 18.717176 20.110076 20.108958 C 18.718294 21.500741 16.47806 21.500741 12.000267 21.500741 C 7.522475 21.500741 5.28224 21.500741 3.890458 20.108958 C 2.498676 18.717176 2.498676 16.479618 2.498676 11.999149 ' stroke='%23fa8b5b' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 249.786878, -0.219302)' fill='none' stroke-linejoin='round' d='M 5.991514 11.48526 C 8.1461 11.557526 13.033398 11.233669 15.814286 6.820112 M 13.991587 6.287488 L 15.867816 5.985043 C 16.095319 5.958278 16.432559 6.137604 16.515531 6.351724 L 17.010684 7.989745 ' stroke='%23fa8b5b' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 284.594586, -0.219302)' fill='none' stroke-linejoin='round' d='M 3.500295 8.998787 L 3.500295 14.001174 C 3.500295 17.769693 3.500295 19.656629 4.672604 20.828938 C 5.844913 21.99857 7.729172 22.001247 11.500368 22.001247 L 12.498704 22.001247 C 16.269899 22.001247 18.156835 22.001247 19.329144 20.828938 C 20.498776 19.656629 20.498776 17.769693 20.498776 14.001174 L 20.498776 9.9998 C 20.498776 6.228605 20.498776 4.341669 19.329144 3.172037 C 18.156835 1.999728 16.269899 1.999728 12.498704 1.999728 L 12.000874 1.999728 M 13.499717 16.99886 L 17.501091 16.99886 M 13.499717 6.999438 L 17.501091 6.999438 M 13.499717 11.999149 L 17.501091 11.999149 ' stroke='%23ff5257' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3Cpath stroke-linecap='round' transform='matrix(1.459459, 0, 0, 1.459459, 284.594586, -0.219302)' fill='none' stroke-linejoin='round' d='M 6.500657 16.50103 C 6.500657 16.50103 7.466875 16.766004 7.999499 17.999872 C 7.999499 17.999872 9.000512 14.999511 10.999861 14.001174 M 9.998848 5.000089 L 3.500295 5.000089 M 9.998848 5.000089 C 9.998848 4.159667 7.672966 2.591235 7.084135 1.999728 M 9.998848 5.000089 C 9.998848 5.840512 7.672966 7.408943 7.084135 8.000451 ' stroke='%23ff5257' stroke-width='1.5' stroke-opacity='1' stroke-miterlimit='4'/%3E%3C/svg%3E");
}

/* 2. The Solid Circle Background (::after) */
.category-portfolio .entry-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Sits immediately behind the text */
    
    border-radius: 50%;
    background-color: var(--cu-blush, #FFE9E0);
    border: 2px solid var(--cu-muted, #5B6673);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
}

/* 3. The Icon Band (::before) */
.category-portfolio .entry-header::before {
    content: "";
    position: absolute;
    z-index: -2; 
    opacity: 0.25;
    top: 72%;
    left: 50%;
    transform: translateX(-50%);
   
    /* Safely constrains the container so any extra overflows are clipped */
    max-width: var(--global-content-width); 
    width: calc(100vw - (var(--global-content-edge-padding) * 2)); 
    height: 212px; 
    pointer-events: none; 
    
    /* Call the image 3 distinct times */
    background-image: var(--icon-pattern), var(--icon-pattern);
    
    /* Stop it from tiling naturally */
    background-repeat: no-repeat; 
    
    background-size: 648px auto; 
    
    /* Position them: Center, Left, Right */
    /* Decrease the 432px value (e.g., down to 390px) to slide the outer groups closer to the center, swallowing the empty gap until it matches the internal spacing perfectly. */
    background-position: 
        
        calc(50% - 314px) top, 
        calc(50% + 314px) top;
}

.category-portfolio .entry-header .entry-title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 3rem); 
    line-height: 1.1;
    word-break: break-word; 
}

/* 3. Mobile Adjustments */
@media (max-width: 768px) {
    .category-portfolio .entry-header {
        /* Must shrink below the ~375px mobile screen width to prevent horizontal scroll */
        width: 276px;
        height: 276px;
        margin-top: -138px; 
        padding: 1.25rem;
    }
	
	.category-portfolio .entry-header::before {
		/* Load the image 3 times */
    background-size: 432px auto; 
	width: 100vw;
    
    /* Position them: Center, Left, Right */
    /* Decrease the 432px value (e.g., down to 390px) to slide the outer groups closer to the center, swallowing the empty gap until it matches the internal spacing perfectly. */
    background-position: 
        calc(50% - 209.5px) top, 
        calc(50% + 209.5px) top;
	}
}

/* 2. Typography Adjustments */
.category-portfolio .entry-header .entry-taxonomies {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 1. Make room above the category tag for the mini-logo */
.category-portfolio .entry-header .entry-taxonomies {
    position: relative;
    padding-top: 60px;
    margin-top: -48px;
}

/* 2. Base styles for all three rising circles */
.category-portfolio .entry-taxonomies::before,
.category-portfolio .entry-taxonomies::after,
.category-portfolio .entry-taxonomies .category-links::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    background-color: var(--cu-link);
    
    /* Hook into your existing animation from the main logo */
    opacity: 0;
    transform: scale(0);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 3. Circle 1 (Smallest, bottom-left) */
.category-portfolio .entry-taxonomies::before {
    width: 13px;
    height: 13px;
    top: 37.5px;
    left: calc(50% - 30px);
    animation-delay: var(--delay-step-1);
}

/* 4. Circle 2 (Medium, middle) */
.category-portfolio .entry-taxonomies::after {
    width: 20px;
    height: 20px;
    top: 22.5px;
    left: calc(50% - 18px);
    animation-delay: var(--delay-step-2);
}

/* 5. Circle 3 (Largest, top-right) */
.category-portfolio .entry-taxonomies .category-links::before {
    width: 31px;
    height: 31px;
    top: 0px;
    left: calc(50% - 1px);
    animation-delay: var(--delay-step-3);
}

/* ==========================================================================
 * 4. HEADER & NAVIGATION 
 * Including Branded Hamburger menu for mobile
 * ========================================================================== */

        /* Middle Line of the Hamburger */
    .menu-toggle-icon svg line:nth-child(1) {
        stroke: var(--cu-signal-red) !important;
    }

    /* Top Line of the Hamburger */
    .menu-toggle-icon svg line:nth-child(2) {
        stroke: var(--cu-coral) !important;
    }

    /* Bottom Line of the Hamburger */
    .menu-toggle-icon svg line:nth-child(3) {
        stroke: var(--cu-sunshine) !important;
    }



/* =====================================================================
   Circle Up Marketing - Pill Navigation Wrapper
===================================================================== */

#masthead .site-header-main-section-right {
    /* 1. Shape & Color */
    background-color: #ffffff;
    border: 1px solid var(--cu-border, #E5E7EB);
    border-radius: 100px; /* Forces the pill shape */
    
    /* 2. Shrink-wrap & Alignment */
    flex: 0 1 auto !important; /* Prevents the div from stretching to 50% width */
    margin-left: auto; /* Pushes the compacted container to the far right edge */
    
    /* 3. Spacing & Layout */
    display: flex;
    align-items: center;
    gap: 10px; /* Controls space between the nav menu and the button */
    
    /* Balance the visual space inside the pill */
    padding: 4px 16px 4px 16px;
}

/* Strip default Kadence margins from the last item so the right padding remains even */
#masthead .site-header-main-section-right .site-header-item:last-child {
    margin-right: 0 !important;
}

/* Tweak the active/hover state of the navigation links so they fit cleanly in the pill */
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
}



/* =====================================================================
   MOBILE RING NAVIGATION (Kadence Drawer Hijack)
===================================================================== */

/* 1. Strip the default Kadence sidepanel box */
#mobile-drawer.popup-drawer .drawer-inner {
    background: transparent !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    pointer-events: none; /* Lets taps outside the rings hit the close overlay */
}

#mobile-drawer .mobile-drawer-content {
    padding: 0 !important;
    overflow: visible !important;
}

/* =====================================================================
   SHARED HUB COORDINATES (Matches Hamburger Center)
===================================================================== */
#mobile-drawer {
    --hub-right: calc(1.5rem + 43.4px); /* 1.5rem header padding + half of 86.8px */
    --hub-top: 68px;                    /* Adjust this single number to match vertical center */
}

/* 2. Center Hub: The Close Button (Forced Perfect Circle) */
#mobile-drawer .drawer-header {
    position: fixed;
    top: var(--hub-top);
    right: var(--hub-right);
    transform: translate(50%, -50%); /* Locks center of X to the exact hub coordinate */
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    z-index: 20;
    pointer-events: auto;
}

#mobile-drawer .menu-toggle-close {
    width: 60px !important;
    height: 60px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;           /* Kills Kadence's vertical padding causing the oval */
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--cu-sunshine, #E9C46A);
    color: var(--cu-ink-navy, #1D2D44);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 0.9);
}

#mobile-drawer .menu-toggle-close:active {
    transform: scale(0.9);
}

/* 3. Ring Container (Anchored to the exact same Hub) */
#mobile-drawer #mobile-menu {
    position: fixed;
    top: var(--hub-top);
    right: var(--hub-right);
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

/* 4. Base Ring Styling (Less Dramatic Rotation) */
#mobile-drawer #mobile-menu > li {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
    margin: 0;
    padding: 0;
    border: none !important;
    
    /* Starts slightly spun back before opening */
    transform: translate(50%, -50%) rotate(-10deg) scale(0.2);
    opacity: 0;
    pointer-events: none;
    transition: 
        transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 0.9), 
        opacity 0.35s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Open State: 18deg gives a subtle tilt and stacks the labels nearly vertically */
#mobile-drawer.active #mobile-menu > li {
    transform: translate(50%, -50%) rotate(18deg) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* 5. Full-Ring Clickable Links */
#mobile-drawer #mobile-menu > li > a {
    display: flex;
    align-items: flex-end;     /* Pushes label to the bottom edge (which rotates to 7:30) */
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 0 0 16px 0 !important;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cu-ink-navy, #1D2D44);
    text-decoration: none;
    box-sizing: border-box;
}

/* 6. Concentric Ring Sizes, Stacking Order, Colors & Staggered Delays */

/* Ring 1 (Innermost): Home */
#mobile-drawer #mobile-menu > li:nth-child(1) {
    width: 170px;
    height: 170px;
    z-index: 5;
    background-color: #ffffff;
    transition-delay: 0.05s;
}

/* Ring 2: Our Work */
#mobile-drawer #mobile-menu > li:nth-child(2) {
    width: 280px;
    height: 280px;
    z-index: 4;
    background-color: var(--cu-blush, #FFE9E0);
    transition-delay: 0.1s;
}

/* Ring 3: Our Services */
#mobile-drawer #mobile-menu > li:nth-child(3) {
    width: 390px;
    height: 390px;
    z-index: 3;
    background-color: var(--cu-rose, #FFE5E6);
    transition-delay: 0.15s;
}

/* Ring 4: Our Story */
#mobile-drawer #mobile-menu > li:nth-child(4) {
    width: 500px;
    height: 500px;
    z-index: 2;
    background-color: var(--cu-mist, #E6F3F6);
    transition-delay: 0.2s;
}

/* Ring 5 (Outermost): Contact Us */
#mobile-drawer #mobile-menu > li:nth-child(5) {
    width: 610px;
    height: 610px;
    z-index: 1;
    background-color: var(--cu-signal-red, #E63946);
    transition-delay: 0.25s;
}

#mobile-drawer #mobile-menu > li:nth-child(5) > a {
    color: #ffffff;
}



/* =====================================================================
   Circle Up Marketing - Updated Wrapper Curve Method
===================================================================== */

/* -----------------------------------------
   1. Masthead & Footer (Simplified)
----------------------------------------- */
/* Remove all ::before and ::after pseudo-elements. 
   Apply gradients and ensure padding accounts for the inner-wrap pulling up/down */

#masthead {
    background: linear-gradient(to bottom, var(--cu-grad-top) 15%, var(--cu-grad-bottom) 85%) !important;
    padding-top: 2rem;
    padding-bottom: calc(var(--cu-curve-height) + var(--cu-curve-spacing)) !important;
    position: relative;
    z-index: 1 !important; /* Drop behind inner-wrap - May need to adjust for drop down menus*/
}

#colophon {
    background: linear-gradient(to bottom, var(--cu-grad-bottom) 15%, var(--cu-grad-top) 85%) !important;
    padding-top: calc(var(--cu-curve-height) + var(--cu-curve-spacing)) !important;
    position: relative;
    z-index: 1; /* Drop behind inner-wrap */
}
/* Gray outer circle on pages */
.single-post #masthead {
	background: linear-gradient(to bottom, var(--cu-grad-top) 15%, var(--cu-border) 85%) !important;
}
.single-post #colophon {
	background: linear-gradient(to bottom, var(--cu-border) 15%, var(--cu-grad-top) 85%) !important;
}


/* -----------------------------------------
   2. The Inner Wrap (The Full-Bleed Curved Container)
----------------------------------------- */
#inner-wrap {
    /* Apply the 150vw footprint universally to flatten the curve on all devices */
    width: 150%;
    margin-left: -25%;
    margin-right: -25%;
	
	/* Pull wrapper UP over the header and DOWN over the footer */
    margin-top: calc(-1 * var(--cu-curve-height));
    margin-bottom: calc(-1 * var(--cu-curve-height));
	
    /* Apply the Curves */
    border-top-left-radius: 50% var(--cu-curve-height);
    border-top-right-radius: 50% var(--cu-curve-height);
    border-bottom-left-radius: 50% var(--cu-curve-height);
    border-bottom-right-radius: 50% var(--cu-curve-height);
    
    /* Apply the Borders directly to the curve */
	/* Replace the individual top/bottom borders with this: */
	border-top: var(--cu-curve-border-size) solid var(--cu-curve-border-color);
    border-bottom: var(--cu-curve-border-size) solid var(--cu-curve-border-color);
	border-left:var(--cu-curve-border-size) solid #fff;
	border-right:var(--cu-curve-border-size) solid #fff;
	
	/* Pet Padding */
	padding-left: 25%;
  	padding-right: 25%;
	    padding-top: var(--cu-curve-spacing);
    padding-bottom: var(--cu-curve-spacing);
    
    background: var(--cu-bg-match);
    overflow: hidden; 
    position: relative;
    z-index: 10; 
	
	min-height:900px; /* Prevent weird lines on short pages */
}

/* Because inner-wrap is now 100vw, #primary handles the interior constraint */
#primary {
    max-width: var(--global-content-width);
    margin: 0 auto !important; /* Removed the previous -8rem negative margin */
    /* Add top/bottom padding so the first/last text blocks don't hit the curve */
    padding: var(--cu-curve-spacing) var(--global-content-edge-padding);
	
}

/* 3. Mobile Adjustments */
@media (max-width: 768px) {
	#masthead {
		padding-bottom: 1rem;
	}

	#colophon {
		padding-bottom: 3rem !important;
        padding-top: 1rem !important;
        margin-bottom: 1rem;
	}
	#primary {
		margin-left:  calc(-1 * var(--cu-curve-border-size)) !important;
		margin-right: calc(-1 * var(--cu-curve-border-size)) !important;
		padding: 0 !important;
	}
	.entry-content-wrap {
		padding: 0 1rem !important;
	}
	.site-bottom-footer-inner-wrap{
		line-height:2;
	}
}

/* Extend colored bands to the header & footer curves */
.first-call {
  margin-top: calc(-1.25 * var(--cu-curve-height)) !important;
  padding-top: calc(1.5 * var(--cu-curve-height)) !important;
}
.last-call {
  margin-bottom: calc(-1.5 * var(--cu-curve-height)) !important;
  padding-bottom: calc(1.75 * var(--cu-curve-height)) !important;
}

/* Restore some bottom margin for buttons at the end of sections */
.single-content .wp-block-button:last-child {
	margin-bottom: 1.5rem !important;
}

/* ==========================================================================
 * 6. SEPERATORS
 * ========================================================================== */
/* ==========================================================================
   Circle Up Marketing: branded separators for the core Separator block
   Requires the --cu-* variables from circle-up-brand.css.

   Proportions follow the logo circles (diameters 14 : 22 : 34, roughly
   1 : 1.6 : 2.4). Everything is drawn with CSS gradients on the <hr>, so no
   extra markup or images are needed.
   ========================================================================== */


/* ---- WIDE: three stacked stripes ------------------------------------------
   Red 7px, gap 2px, coral 5px, gap 2px, sunshine 3px (19px total).
   Gaps are transparent, so they match whatever background sits behind them
   (white, Cream, Blush, and so on). The utility class works on any element. */
hr.wp-block-separator.is-style-wide,
.custom-three-color-divider {
  border: 0;
  height: 19px;
  opacity: 1;
  margin-block: 2rem;
  background: linear-gradient(
    to bottom,
    var(--cu-signal-red) 0 7px,
    transparent 7px 9px,
    var(--cu-coral) 9px 14px,
    transparent 14px 16px,
    var(--cu-sunshine) 16px 19px
  );
}


/* ---- DOTS: five dots, largest in the middle -------------------------------
   Diameters 10 / 16 / 24 / 16 / 10px with 10px between dots. Box-shadow dots
   can't change size, so each dot is its own radial-gradient layer.
   Dot centers (x): 5, 28, 58, 88, 111. Vertical center (y): 12.
   The !important flags are needed because core sets
   "background: none !important" on the dots style. */
hr.wp-block-separator.is-style-dots {
  width: 116px;
  max-width: 100%;
  height: 24px;
  margin: 2rem auto;
  border: 0;
  opacity: 1;
  color: transparent;
  overflow: visible;
  background:
    radial-gradient(circle at 5px 12px,   var(--cu-sunshine)   0 4.5px,  transparent 5px)  no-repeat,
    radial-gradient(circle at 28px 12px,  var(--cu-coral)      0 7.5px,  transparent 8px)  no-repeat,
    radial-gradient(circle at 58px 12px,  var(--cu-signal-red) 0 11.5px, transparent 12px) no-repeat,
    radial-gradient(circle at 88px 12px,  var(--cu-coral)      0 7.5px,  transparent 8px)  no-repeat,
    radial-gradient(circle at 111px 12px, var(--cu-sunshine)   0 4.5px,  transparent 5px)  no-repeat
    !important;
}

/* Hide core's text-based dots */
hr.wp-block-separator.is-style-dots::before,
hr.wp-block-separator.is-style-dots::after {
  content: none !important;
}


/* ---- NARROW: gray line broken by a rising trio of dots ---------------------
   The default (non-wide, non-dots) separator. A 180px line in --cu-border,
   interrupted in the middle by three dots that grow left to right, echoing the
   logo's progression. Diameters 6 / 9 / 14px with 4px between them.
   Line segments: x 0-62 and x 118-180. Vertical center: y 10. */
hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  width: 180px;
  max-width: 100%;
  height: 20px;
  margin: 2rem auto;
  border: 0;
  opacity: 1;
  overflow: visible;
  background:
    radial-gradient(circle at 74.5px 10px,  var(--cu-sunshine)   0 2.5px, transparent 3px)   no-repeat,
    radial-gradient(circle at 86px 10px,    var(--cu-coral)      0 4px,   transparent 4.5px) no-repeat,
    radial-gradient(circle at 101.5px 10px, var(--cu-signal-red) 0 6.5px, transparent 7px)   no-repeat,
    linear-gradient(var(--cu-border), var(--cu-border)) 0 9px / 62px 2px no-repeat,
    linear-gradient(var(--cu-border), var(--cu-border)) 118px 9px / 62px 2px no-repeat;
}

/* =====================================================================
   Animated Circle Up Logo & Synced Heading
===================================================================== */

/* 1. The Main Flex Wrapper */
.cu-hero-lockup {
    display: flex;
    flex-wrap: nowrap; /* Forces them to stay side-by-side */
    align-items: center; /* Centers them vertically */
    justify-content: center; /* Centers the whole group horizontally */
    
    /* Fluid gap: small on mobile, larger on desktop */
    gap: clamp(1rem, 4vw, 3rem); 
    
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    
    /* Safely define animation variables here if not defined globally */
    --delay-step-1: 0.2s;
    --delay-step-2: 0.8s;
    --delay-step-3: 1.4s;
}

/* 2. Text Container */
.circle-up-text-container {
    flex: 0 1 auto; /* Allows text to shrink if necessary */
    text-align: right; /* Forces the text to flush right, "hugging" the logo */
}

.circle-up-text-container h1 {
    font-size: clamp(1.5rem, 7vw, 2.5rem); 
    line-height: 1.1;
    margin: 0;
    white-space: nowrap; 
    font-weight: 500;
}

.cu-sync-text {
    display: block; 
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.cu-text-1 { animation-delay: var(--delay-step-1); }
.cu-text-2 { animation-delay: var(--delay-step-2); }
.cu-text-3 { animation-delay: var(--delay-step-3); }

/* 3. Logo Container */
.circle-up-logo-container {
    flex: 0 1 40%;
    max-width: 230px; 
    aspect-ratio: 1688 / 1420; /* Exact original logo ratio */
    position: relative;
}

.cu-circle {
    position: absolute;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Yellow (Bottom-Left) */
.cu-circle-1 {
    width: 21.3%;
    background-color: var(--cu-sunshine, #F4C152);
    bottom: 0;
    left: 0;
    animation-delay: var(--delay-step-1);
}

/* Coral (Middle) */
.cu-circle-2 {
    width: 33.65%;
    background-color: var(--cu-coral, #F78556);
    bottom: 15.5%;
    left: 19.4%;
    animation-delay: var(--delay-step-2);
}

/* Red (Top-Right) */
.cu-circle-3 {
    width: 51.9%;
    background-color: var(--cu-signal-red, #FF4C54);
    top: 0;
    right: 0;
    animation-delay: var(--delay-step-3);
}

/* 4. Animations */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
 * ROTATING HERO HEADLINE
 * ========================================================================== */

/* Visually hides sentence with commas while keeping it readable to screen readers and bots */
.cu-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
/* dynamic headline */
.cu-rotating-headline {
    line-height: 1.3;
    
    /* Flex allows it to wrap cleanly on narrow mobile screens */
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    gap: 0.25em; /* Space between "people" and the colored box */
	justify-content: center;
	text-align: center;
}

/* The fixed-height window (hides the other words) */
.cu-words-wrapper {
    display: inline-flex;
    flex-direction: column;
    height: 1.5em; /* Must perfectly match the line-height of .cu-word */
    overflow: hidden;
    vertical-align: bottom;
}

/* The column of words that slides up */
.cu-words-inner {
    display: flex;
    flex-direction: column;
    /* 12.5s total = 2.5s per word (2s hold, 0.5s transition) */
    animation: rotateWords 12.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Individual word styling */
.cu-word {
    height: 1.5em;
    line-height: 1.3em;
    padding: 0.1em 0.4em;
    border-radius: 8px;
    white-space: nowrap;
}

/* 
 * The Highlights 
 * Using your existing Circle Up vars, with fallbacks just in case 
 */
.highlight-1 { background-color: var(--cu-signal-red, #E63946); color: #fff; }
.highlight-2 { background-color: var(--cu-coral, #F4A261); color: #fff; }
.highlight-3 { background-color: var(--cu-sunshine, #E9C46A); color: #1B2B3A; }
.highlight-4 { background-color: #54C8E8; color: #fff;} /* Light Malibu Blue */
.highlight-5 { background-color: var(--cu-teal-ui, #0A6579); color: #fff; }



/* 
 * The Animation Math:
 * 6 Total Items (5 unique + 1 clone). 
 * 100% / 6 = 16.666% per slide step.
 */
@keyframes rotateWords {
    0%, 15%   { transform: translateY(0); }         /* reach out */
    20%, 35%  { transform: translateY(-16.666%); }  /* sign up */
    40%, 55%  { transform: translateY(-33.333%); }  /* donate */
    60%, 75%  { transform: translateY(-50%); }      /* buy */
    80%, 95%  { transform: translateY(-66.666%); }  /* come back */
    100%      { transform: translateY(-83.333%); }  /* clone: reach out */
}



/* =====================================================================
   LAPTOP AND SMARTPHONE MOCKUP
===================================================================== */
/* Place screenshots inside laptops and smartphones & autoscroll */

/* 1. Layout Container (Side by side on desktop) */
.portfolio-device-showcase {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start; /* Aligns along the top */
    padding: 3rem 0.5rem 4.5rem 0;
	
	position: relative; 
    z-index: 1; 
}

/* 2. Create the Background Circle */
.portfolio-device-showcase::before {
    content: "";
    position: absolute;
    z-index: -1; /* Drops it strictly behind the laptop and phone */
    
    /* Center the circle perfectly behind the whole flex container */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Shape and Color */
    background-color: var(--cu-mist);
    border-radius: 50%; 
    aspect-ratio: 1 / 1;
    
    /* Sizing: This ensures the devices break out of the edges. 
       Increase or decrease the max-width to control how much the devices overlap the circle. */
    width: 80%; 
    max-width: 620px; 
}
 /* Make the circle in the abstract Visual Graphics the same size as the portfolio-device-showcase backdrop */
.graphic-circle-size-match img {
    max-width: 665px; 
	padding: 1.5rem 0;
}
@media all and (max-width: 768px) {
	.graphic-circle-size-match img {
		max-width: 100%;
		padding: 1.5rem 1rem;
	}
	/* On Our Story page, ensure that the headshots are limited in size on mobile. */
	.headshot,
	.work-graphic {
		max-width:250px;
	}
}

/* 2. The Device Frames */
.device-frame {
    position: relative;
    display: inline-block;
}

.device-frame img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 5; /* Puts the frame OVER the screen if the frame has a bezel/glare */
    pointer-events: none; /* Let clicks pass through the frame */
}

.laptop-frame { 
	width: 70%; 
	max-width: 750px;
	margin-top:8%;/* lower the laptop below the phone slightly */
	z-index: 1;
}
/* 1. Make the Phone Frame Larger */
.phone-frame { 
    width: 30%; 
    max-width: 205px;
	margin-left:-8%; /* Bring the phone in over the laptop keyboard */
	z-index: 2;
}

/* 2. Remove the animation from the base class */
.device-screen {
    position: absolute; 
    background-size: 100% auto; 
    background-repeat: no-repeat;
}

/* 2. The Crossfade Clone (The Magic Trick) */
.device-screen::after {
    content: "";
    position: absolute;
    inset: 0; /* Fills the screen perfectly */
    border-radius: inherit; /* Copies the screen's rounded corners */
    pointer-events: none;
    
    /* Pulls the exact same image you set in the HTML */
    background-image: var(--screen-bg);
    background-size: 100% auto;
    background-repeat: no-repeat;
    
    /* Lock this clone permanently to the top */
    background-position-y: 0%; 
    opacity: 0; /* Keep it invisible by default */
}

/* 3. Set the specific Desktop Speed (Slower) */
.laptop-frame .device-screen {
	top: 6%;
    left: 15.5%;
    width: 67%;
    height: 61%;
}

/* 4. Set the specific Mobile Speed (Much Slower) */
.phone-frame .device-screen {
    top: 3%; /* Keep whatever your custom positioning is here */
    left: 7%;
    width: 86%;
    height: 95%;
    border-radius: 10px;
}

/* UX touch: let the user pause the scroll by holding their mouse/finger on it */
/* Pause both the main scrolling screen AND the crossfade clone simultaneously */
/* Pause the animations when hovering anywhere on the entire device mockup */
.device-frame:hover .device-screen,
.device-frame:active .device-screen,
.device-frame:hover .device-screen::after,
.device-frame:active .device-screen::after {
    animation-play-state: paused;
}
/* 3. Assign the Timings */
.laptop-frame .device-screen {
    animation: scrollBackground 36s ease-in-out infinite;
}
.laptop-frame .device-screen::after {
    animation: fadeCloneIn 36s ease-in-out infinite;
}

.phone-frame .device-screen {
    animation: scrollBackground 48s ease-in-out infinite;
}
.phone-frame .device-screen::after {
    animation: fadeCloneIn 48s ease-in-out infinite;
}

.phone-frame .device-screen.long-screen {
    animation: scrollBackground 72s ease-in-out infinite;
}
.phone-frame .device-screen.long-screen::after {
    animation: fadeCloneIn 72s ease-in-out infinite;
}

/* 4. The Perfect Loop Keyframes */
@keyframes scrollBackground {
    0%, 5% { background-position-y: 0%; } /* Changed from 10% to 5% to halve the initial pause */
    75%, 85% { background-position-y: 100%; } /* Pauses at the bottom */
    
    /* Wait for the clone to fade in fully, then snap back to top instantly while hidden */
    93% { background-position-y: 100%; } 
    93.1% { background-position-y: 0%; }
    100% { background-position-y: 0%; }
}

@keyframes fadeCloneIn {
    0%, 82% { opacity: 0; }
    90% { opacity: 1; } /* Clone fades in, showing the TOP of the image over the BOTTOM */
    96% { opacity: 1; } /* Hold solid while the main image snaps back to the top beneath it */
    100% { opacity: 0; } /* Fade out. Since the main image is now also at the top, the fade is imperceptible! */
}

/* =====================================================================
   COMPARISON SLIIDER
===================================================================== */

.comparison-section-frame {
	padding:1rem;
	border: 4px solid var(--cu-link-hover);
	border-radius: 1rem;
	background: var(--cu-teal-ui)
	
}
.comparison-section-frame h4 {
	margin: 0.75rem 0 0 !important;
    color: #fff !important;
    font-weight: 500;
}

/* 1. Master Wrapper locks everything down */
.cace-portfolio-viewer {
  position: relative;
  width: 100%;
  height: 555px;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  background-color: #f7fafc;
  border: 2px solid var(--cu-link-hover);
}

/* 2. The Slider Component */
.circle-up-slider {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  --divider-width: 4px;
  --divider-color: var(--cu-link);
}

/* 3. The Slots */
.viewer-pane {
  width: 100%;
  height: 100%;
  background-color: var(--cu-border);
  position: relative; /* Creates a boundary for the floating images */
  overflow: hidden; /* Keeps the images neatly inside the box */
}

.viewer-pane img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* 4. The Master Scrollbar Overlay */
.viewer-scrollbar {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 16px;
  overflow-y: scroll;
  z-index: 50; /* Forces it to sit on top of the right image */
  scrollbar-color: var(--cu-link) var(--cu-border);
}

/* Scrollbar Aesthetics */
.viewer-scrollbar::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 14px;
}
.viewer-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
.viewer-scrollbar::-webkit-scrollbar-thumb {
  background: var(--cu-link);
  border-radius: 10px;
  border: 3px solid #f7fafc;
}

/* 5. Custom Arrow Handle */
.custom-handle {
  background-color: var(--cu-link-hover);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: move; /* Changed from ew-resize */
}


/* =====================================================================
   HUBSPOT FORMS
===================================================================== */

/* Restrict the wrapper height and hide the bottom 40px where the branding sits */
#hs-form-cropper {
    position: relative;
    overflow: hidden; /* This acts as the scissors cutting off the bottom */
    margin-bottom: 2rem; /* Restores space below the cropped form */
}

/* Force the iframe wrapper inside to pull upward slightly out of the viewport */
#hs-form-cropper .hs-form-frame {
    margin-bottom: -4rem !important; /* Adjust this number until the watermark is cut off */
}

/* ==========================================================================
 * LIGHTHOUSE PERFORMANCE DIALS
 * ========================================================================== */

/* Lighthouse Authentic Colors */
:root {
    --lh-pass-green: #0cce6b;
    --lh-pass-bg: rgba(12, 206, 107, 0.1);
    --lh-text-dark: #202124;
}

/* 1. Layout Container */
.cu-lh-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 0;
}

.cu-lh-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensure the fraction pill aligns properly with the tall circles */
    justify-content: flex-end; 
}

/* 2. SVG Gauge Container */
.cu-lh-gauge {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.cu-lh-gauge svg {
    width: 100%;
    height: 100%;
    /* Rotate the SVG so the stroke starts at 12 o'clock */
    transform: rotate(-90deg);
}

/* 3. The SVG Circles */
.cu-lh-base,
.cu-lh-arc {
    fill: none;
    stroke-width: 8;
}

.cu-lh-base {
    stroke: var(--lh-pass-bg);
}

.cu-lh-arc {
    stroke: var(--lh-pass-green);
    stroke-linecap: round;
    /* The pathLength="100" trick lets us use exact percentages here */
    stroke-dasharray: 100;
    /* Start completely empty so there is no flash of color before scrolling */
    stroke-dashoffset: 100; 
}

/* 2. The Trigger State (On-screen) */
.cu-lh-arc.is-in-view {
    /* Set final destination and run the keyframe */
    stroke-dashoffset: calc(100 - var(--score));
    animation: lhFill 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 4. Center Percentage Text */
.cu-lh-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Roboto Mono", monospace;
    font-size: 2rem;
    font-weight: 500;
    color: var(--lh-pass-green);
	white-space: nowrap;
}

/* 5. Labels */
.cu-lh-label {
    font-size: 1.1rem;
    color: var(--lh-text-dark);
    text-align: center;
}

/* 6. Agentic Browsing Fraction Pill */
.cu-lh-fraction {
    height: 100px; /* Matches the SVG height for perfect horizontal alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cu-lh-fraction-text {
    background-color: var(--lh-pass-bg);
    color: var(--lh-pass-green);
    font-family: "Roboto Mono", monospace;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.25rem 1rem;
    border-radius: 999px;
}

/* 7. Animation Keyframe */
@keyframes lhFill {
    0% {
        stroke-dashoffset: 100;
    }
}

/* ==========================================================================
 * LIGHTHOUSE ATTRIBUTION LOCKUP
 * ========================================================================== */

.cu-lh-attribution {
    display: flex;
    align-items: center;       /* Centers the text vertically with the icon */
    justify-content: center;   /* Centers the entire lockup on the page */
    gap: 0.5rem;               /* The small gap between icon and text */
    
    /* Adds a little breathing room around the attribution */
    margin: 1.5rem 0; 
}

.cu-lh-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0; /* Prevents the browser from squishing the icon on small screens */
}

.cu-lh-source {
    color: var(--global-palette4, #111);
}

/* =====================================================================
   CENTERED LOGO FOOTER LOCKUP
===================================================================== */

.cu-footer-lockup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.75rem);
    width: 100%;
    line-height: 1.45;
}

/* Left side: right-aligned to hug the logo */
.cu-footer-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.cu-footer-left a span {
	font-size: 121%;
}
.cu-footer-right a span {
	font-size: 119%;
}

/* Center SVG logo */
.cu-footer-logo {
    display: block;
    width: clamp(36px, 5vw, 46px);
    color: #0B7289;
    transition: transform 0.25s ease;
}

.cu-footer-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.cu-footer-logo:hover {
    transform: scale(1.06);
}

/* Right side: left-aligned to hug the logo, stacked on 2 lines */
.cu-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.cu-footer-lockup a {
    text-decoration: none;
}

.cu-footer-lockup a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================================================================
   PRINT LAYOUT STYLES
===================================================================== */
@media print {
	/* 1. Hide Header, and Admin Elements */
	#masthead,
    
    #mobile-drawer,
    #wpadminbar,
	.wp-block-seo44-jump-links {
        display: none !important;
    }
	#colophon,
	.cu-band-cream,
	.cu-band-rose,
	.cu-band-blush,
	.cu-band-mist,
	.cu-white-section,
	.cu-band-white {
		background:#fff !important;
		box-shadow: none !important;
	}

    /* 2. Override the "Mobile Width" Trap across all Kadence containers --- work in progress */
    body, 
    #wrapper,
    #inner-wrap,
    #primary,
    .content-container,
    .site-container,
    #main,
    .content-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        float: none !important;
        display: block !important; /* This breaks Kadence's mobile flex/grid stacking */
    }

    /* 5. Scale Down Typography for Physical Paper */
    body, p, li, span, div, a, .kt-blocks-info-box-text {
        font-size: 11pt !important; 
        line-height: 1.4 !important;
    }
    h1, .entry-title {
        font-size: 22pt !important;
        line-height: 1.2 !important;
        margin-bottom: 12pt !important;
    }
    h2, .wp-block-heading {
        font-size: 18pt !important;
        line-height: 1.2 !important;
        margin-top: 16pt !important;
        margin-bottom: 8pt !important;
    }
    h3, .kt-blocks-info-box-title {
        font-size: 14pt !important;
        line-height: 1.2 !important;
        margin-top: 12pt !important;
        margin-bottom: 6pt !important;
    }
    h4, h5, h6 {
        font-size: 12pt !important;
        line-height: 1.2 !important;
    }

    /* Reduce margins inside Kadence Info Boxes and Rows for tighter printing */
    .wp-block-kadence-rowlayout .kt-row-column-wrap,
    .wp-block-kadence-infobox {
        padding-top: 10pt !important;
        padding-bottom: 10pt !important;
        margin-bottom: 10pt !important;
    }

    /* 3. Ensure Text Colors are Printer-Friendly */
    body, p, span, div, li {
        color: #000 !important;
    }
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    /* 4. Prevent Awkward Page Breaks */
    h1, h2, h3, h4, h5 {
        page-break-after: avoid;
    }
    img, table, figure {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    body.single-post article.single-entry,
    body.single-member_content article.single-entry {
        margin-top: 1rem; 
        margin-bottom: 1rem;
    }
}