/*
Theme Name:   Bricks Child Theme
Theme URI:    https://bricksbuilder.io/
Description:  Use this child theme to extend Bricks.
Author:       Bricks
Author URI:   https://bricksbuilder.io/
Template:     bricks
Version:      1.1
Text Domain:  bricks
*/


/**** GENERAL ****/
.underline {
  border-bottom: 3px solid;
}

.body-lg-bg--light {
	background: RGBA(190, 212, 254, 0.8);
	background: -webkit-linear-gradient(45deg, rgba(190, 212, 254, 1) 0%, rgba(231, 239, 254, 1) 20%, rgba(231, 239, 254, 1) 80%, rgba(190, 212, 254, 1) 100%);
	background: -moz-linear-gradient(45deg, rgba(190, 212, 254, 1) 0%, rgba(231, 239, 254, 1) 20%, rgba(231, 239, 254, 1) 80%, rgba(190, 212, 254, 1) 100%);
	background: linear-gradient(45deg, rgba(190, 212, 254, 1) 0%, rgba(231, 239, 254, 1) 20%, rgba(231, 239, 254, 1) 80%, rgba(190, 212, 254, 1) 100%);
}

.bricks-button {
	transition: alls .3s ease-in-out;
}

.bricks-button:hover {
	transform: translateY(-3px);
	box-shadow: 0px 3px 10px 0px rgba(12,77,151,.3);
}

.bricks-background-primary {
	background: #207CCC;
	background: -webkit-linear-gradient(90deg, rgba(32, 124, 204, 1) 0%, rgba(6, 55, 147, 1) 100%);
	background: -moz-linear-gradient(90deg, rgba(32, 124, 204, 1) 0%, rgba(6, 55, 147, 1) 100%);
	background: linear-gradient(90deg, rgba(32, 124, 204, 1) 0%, rgba(6, 55, 147, 1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#207CCC", endColorstr="#063793", GradientType=1);
}

/** Highlight **/
.highlight:before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--blue);
	border-radius: 16px;
	z-index: -1;
	transform: scaleX(0.03);
	transform-origin: left center;
	transition: transform 900ms ease-in-out;
}

.highlight.inview::before {
	transform: scaleX(1);
}

/** Header **/
.header:has(.show-mobile-menu) {
	background: #fff !important;
	border-radius: 0px !important;
}

.header .bricks-mobile-menu-wrapper {
	padding-top: 60px;
}

/** Header Nav Line Effect **/
.button--line .bricks-menu-item a {

}

.button--line .bricks-menu-item a:before {
	content: "";
	position: absolute;
	right: -8px;
	bottom: -3px;
	width: 8px;
	height: 8px;
	background-color: #1978ca;
	border-radius: 50%;
	transform: scale(0);
	opacity: 0;
	transition: transform 0.2s ease 0.3s, opacity 0.2s ease;
}

.button--line .bricks-menu-item a:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;             
	height: 2px;
	background-color: #0C4D97;
	transition: width 0.35s ease;
}

.button--line .bricks-menu-item:hover a::after,
.button--line:focus-visible .bricks-menu-item a::after {
	width: 100%;
}

.button--line .bricks-menu-item:hover a::before,
.button--line:focus-visible .bricks-menu-item a::before {
	transform: scale(1);
	opacity: 1;
}

/** Howard Animation section **/
:root{
	--nlm-bg:#f7f9fc; --nlm-card:#fff; --nlm-text:#0f172a; --nlm-muted:#5b6785;
	--nlm-accent:#2563eb; --nlm-accent-2:#10b981; --nlm-border:#e6eaf2;
}

@media (max-width:960px){.nlm-demo__inner{grid-template-columns:1fr}}
.nlm-demo__kicker{display:inline-block;background:var(--nlm-accent);color:#fff;font:600 12px/1 ui-sans-serif,system-ui;letter-spacing:.06em;padding:6px 10px;border-radius:999px;margin-bottom:10px}
.nlm-demo__title{margin:.2em 0 .6em;font:700 28px/1.2 ui-sans-serif,system-ui;color:var(--nlm-text)}
.nlm-demo__bullets{color:var(--nlm-muted);margin:0 0 22px 0;padding-left:18px;display:grid;gap:8px}
.btn{display:inline-flex;align-items:center;padding:12px 16px;border-radius:12px;text-decoration:none}
.btn--primary{background:var(--nlm-text);color:#fff}
.btn--ghost{border:1px solid var(--nlm-border);color:var(--nlm-text);background:transparent;margin-left:8px}

/* Cards */
.nlm-demo__prompt-card,.nlm-demo__graph{
	background:var(--nlm-card);border:1px solid var(--nlm-border);border-radius:16px;
	box-shadow:0 8px 28px rgba(16,24,40,.06)
}
.nlm-demo__prompt-card{padding:16px 18px;margin-bottom:14px}
.nlm-demo__prompt-label{font:600 16px/1 ui-sans-serif,system-ui;color:var(--nlm-muted);margin-bottom:6px}
.nlm-demo__prompt-text{font:400 15px/1.55 ui-sans-serif,system-ui;color:var(--nlm-text);margin:0}
.typewriter__caret{display:inline-block;width:10px;height:1.1em;border-right:2px solid var(--nlm-text);animation:blink .9s step-end infinite;translate:0 .1em}
@keyframes blink{50%{opacity:0}}

.nlm-demo__loader{display:none;gap:6px;align-items:center;padding:10px 2px 6px 2px;color:var(--nlm-muted)}
.nlm-demo__loader .dot{width:6px;height:6px;border-radius:999px;background:var(--nlm-muted);display:inline-block;animation:bounce 1.2s infinite ease-in-out}
.nlm-demo__loader .dot:nth-child(2){animation-delay:.15s}
.nlm-demo__loader .dot:nth-child(3){animation-delay:.3s}
@keyframes bounce{0%,80%,100%{transform:scale(.4);opacity:.6}40%{transform:scale(1);opacity:1}}

.nlm-demo__graph {
	padding: 20px;
}
.graph-svg {
	width:100%;
	height:auto;
	display:block
}

/* Edge draw animation */
.nlm-demo__graph .edge {fill:none;stroke:var(--nlm-accent);stroke-width:3.5;stroke-linecap:round;stroke-dasharray:1000;stroke-dashoffset:1000}
.nlm-demo__graph .node--decision{fill:#FBE5A7;stroke:#BF7308;stroke-width:2}
.nlm-demo__graph .node--chance{fill:#C0F7C0;stroke:#437E3E;stroke-width:3}
.nlm-demo__graph .node--terminal{fill:#B9DAF8;stroke:#4D7C99;stroke-width:2}
.nlm-demo__graph .node{opacity:0;transform-origin:center;transform:scale(.6)}
.nlm-demo__graph .label{font:500 12px/1 ui-sans-serif,system-ui;fill:#475569;opacity:0}

/* Sequenced once JS adds .is-drawn to the svg */
.nlm-demo__graph .graph-svg.is-drawn .edge{animation:draw 900ms ease forwards}
.nlm-demo__graph .graph-svg.is-drawn .node{animation:pop .45s cubic-bezier(.2,.7,.2,1) forwards}
.nlm-demo__graph .graph-svg.is-drawn .label{animation:fadeIn .5s ease forwards}

@keyframes draw{to{stroke-dashoffset:0}}
@keyframes pop{to{transform:scale(1);opacity:1}}
@keyframes fadeIn{to{opacity:1}}

@media (prefers-reduced-motion:reduce){
	.typewriter__caret{animation:none}
	.edge,.node,.label{animation:none!important;stroke-dasharray:none;stroke-dashoffset:0;opacity:1;transform:none}
}


/* Background for labels (edge & node text) */
.label-bg{
	fill:#ffffff;
	opacity:0.9;
}

/* Animate the background in with the text */
.graph-svg.is-drawn .label-bg{
	animation:fadeIn .5s ease forwards;
}

/* Reduced motion: no animation */
@media (prefers-reduced-motion:reduce){
	.label-bg{
		animation:none!important;
		opacity:1;
	}
}

/* Zoom button under graph */
.nlm-demo__zoom-btn {
	padding: 5px 10px;
	font-size: 12px;
	border-radius: 100px;
	border: 1px solid var(--dark-blue);
	background: #ffffff;
	color: var(--dark-blue);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: background 160ms 
		ease, box-shadow 160ms 
		ease, transform 120ms 
		ease;
}

/* Hidden until animation is finished */
.nlm-demo__zoom-btn {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.nlm-demo__zoom-btn.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.nlm-demo__zoom-btn:hover {
	background: #f1f5f9;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.nlm-demo__zoom-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Lightbox shell */
.nlm-demo__lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;              /* toggled with .is-open */
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.nlm-demo__lightbox.is-open {
	display: flex;
	pointer-events: auto;
}

.nlm-demo__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
}

.nlm-demo__lightbox-dialog {
	position: relative;
	max-width: 1100px;
	width: 92vw;
	max-height: 86vh;
	background: #fff;
	border-radius: 16px;
	padding: 1.25rem 1.25rem 1rem;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.7);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	z-index: 1;
}

@media (min-width: 1024px) {
	.nlm-demo__lightbox-dialog {
		padding: 40px;
	}
}

.nlm-demo__lightbox-close {
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	background: transparent;
	border: none;
	color: var(--dark-blue);
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	transition: all .3s ease-in-out;
}

.nlm-demo__lightbox-close:hover {
	color: var(--blue);
}

.nlm-demo__lightbox-body {
	margin-top: 1.6rem;
	flex: 1;
	overflow: auto;
}

/* Highlighted Line **/
.graph-svg .edge.is-highlighted {
	stroke-width: 5;
	filter: drop-shadow(0 0 6px rgba(30, 144, 255, 0.8));
	animation: hwr-pulse-line 1.2s ease-out 2;
	transition:
    stroke-width 0.6s ease,
    stroke 0.6s ease,
    filter 0.6s ease;
}

@keyframes hwr-pulse-line {
  0% {
    stroke-width: 3.5;
    filter: drop-shadow(0 0 0px rgba(30, 144, 255, 0));
  }
  40% {
    stroke-width: 7;
    filter: drop-shadow(0 0 12px rgba(30, 144, 255, 0.9));
  }
  100% {
    stroke-width: 3.5;
    filter: drop-shadow(0 0 6px rgba(30, 144, 255, 0.8));
  }
}

.graph-svg g.is-highlighted .node {
	fill: var(--nlm-accent);
	stroke: var(--nlm-accent);
	filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.9));
	transform: scale(1.1);
	transition:
		stroke-width 0.6s ease,
		stroke 0.6s ease,
		filter 0.6s ease,
		transform 0.6s ease;
}

.graph-svg text.label.is-highlighted {
  font-weight: 700;
}

.graph-svg .label-bg + text.label.is-highlighted {
  /* optional: make its background stand out */
}


/* Enlarged SVG in lightbox */
.nlm-demo__lightbox-body .graph-svg {
	width: 100%;
	height: auto;
	min-height: 60vh;
	display: block;
}


/*** PRICING ***/
.pricing-toggle {
	position: relative;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	background-color: rgba(250,250,250, .4);
	border-radius: 999px;
	padding: 12px 15px;
	width: 220px;
	border: 1px solid #fff;
	gap: 20px;
}

.pricing-toggle__bg {
	position: absolute;
	top: 4px;
	left: 4px;
	width: calc(50% - 4px);
	height: calc(100% - 8px);
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
	z-index: 1;
	padding: 10px;
}

.pricing-toggle__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	border: none;
	background: transparent;
	font-weight: 600;
	font-size: 15px;
	color: var(--dark-blue);
	cursor: pointer;
	border-radius: 999px;
	transition: color 0.3s ease;
}

.pricing-toggle__btn.is-active {
	color: var(--blue);
}

.pricing.is-yearly .pricing-toggle__bg {
	transform: translateX(100%);
}

/* Default: MONTH visible, YEAR hidden */
.pricing__cards .pricing__card .pricing__month { display: flex; }
.pricing__cards .pricing__card .pricing__year  { display: none;  }

/* When yearly selected */
.pricing.is-yearly .pricing__card .pricing__month { display: none;  }
.pricing.is-yearly .pricing__card .pricing__year  { display: flex; }


/*** HOWARD ***/
/* Parent pill */
.difference__pill {
	position: relative;
	cursor: pointer;
	overflow: visible; /* so the absolute text isn't clipped */
	padding: 1.25rem 1.5rem 3.25rem; /* extra bottom padding to "reserve" space */
	transition: background-color 0.3s ease;
}

/* Icon + heading stay as-is */
.difference__ib {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
/* Parent pill */
.difference__pill {
	position: relative;
	cursor: pointer;
	overflow: visible;
	padding: 1.25rem 1.5rem 2.5rem; /* reserve some bottom space */
}

/* Anchor the reveal text to THIS block */
.difference__ib {
	position: relative;
	z-index: 2; /* ensure it stays above text */
}

/* Reveal text positioned directly under .difference__ib */
.difference__text {
	top: 100%;
	position: absolute;
	left: 0;
	right: 0;
	bottom: -100%;
	opacity: 0;
	z-index: 20;
	transform: translateY(6px);
	pointer-events: none; /* so hover doesn't flicker as mouse passes over text */
	transition:
		opacity 0.25s ease,
		transform 0.35s ease;
}

@media screen and (max-width: 767px) {
	.difference__text {
		position: relative;
		opacity: 1;
		transform: translateY(0);
	}
	
	.difference__pill .difference__text p {
		padding: 0px 0px 0px 28px !important;
	}
	
	.difference__pill .difference__text p:before {
		display: none;
	}
}

/* Hover reveal */
.difference__pill:hover .difference__text {
	opacity: 1;
	transform: translateY(0);
}

.difference__pill .difference__text p {
	padding: 10px 15px;
	position: relative;
}

.difference__pill .difference__text p:before {
	content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: #fff;
    border-radius: 0px 0px 16px 16px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    z-index: -1;
    left: 0;
    top: 0;
}
