/* Blue Diamond Capital: additions on top of the original Carrd styles.
   Colours and fonts are the site's own: navy #101820, light #E7E8E9, teal #6AB1B4, grey #707479, Nunito Sans. */

:root {
	--bdc-navy: #101820;
	--bdc-light: #E7E8E9;
	--bdc-teal: #6AB1B4;
	--bdc-grey: #707479;
}

/* ------------------------------------------------------------------ header: one line on desktop */
.bdc-menu-toggle { display: none; }

@media (min-width: 981px) {
	.container-component.instance-15 > .wrapper > .inner { flex-wrap: nowrap !important; align-items: center !important; }
	.container-component.instance-15 > .wrapper > .inner > :nth-child(1) { width: 24% !important; flex-shrink: 0; }
	.container-component.instance-15 > .wrapper > .inner > :nth-child(2) { width: 2% !important; }
	.container-component.instance-15 > .wrapper > .inner > :nth-child(3) { width: 74% !important; }
	#buttons05 { flex-wrap: nowrap !important; gap: 0.25rem !important; justify-content: flex-end; }
	#buttons05 > li > a { padding: 0 0.8rem !important; white-space: nowrap; font-size: 0.8125em !important; }
	/* the white line sits exactly over the menu, same start and end */
	#container15 > .wrapper > .inner > :nth-child(3) { width: auto !important; margin-left: auto !important; display: flex; flex-direction: column; align-items: stretch; }
	#divider03 { width: 100%; margin: 0 0 0.9rem !important; }
	#divider03::before { width: 100% !important; }
	#header nav { width: max-content; }
}
@media (min-width: 981px) and (max-width: 1280px) {
	#buttons05 > li > a { padding: 0 0.55rem !important; font-size: 0.72em !important; letter-spacing: 0 !important; }
}

/* ------------------------------------------------------------------ tablet (737-980): tidy logo, menu on one line */
@media (min-width: 737px) and (max-width: 980px) {
	.image-component.instance-4 > .frame { width: 26rem !important; max-width: 100%; height: auto !important; aspect-ratio: 392 / 172; margin: 0 auto; }
	.container-component.instance-15 > .wrapper > .inner { --padding-vertical: 1.5rem; }
	#buttons05 { flex-wrap: nowrap !important; gap: 0 !important; justify-content: center; }
	#buttons05 > li > a { padding: 0 0.6rem !important; font-size: 0.85em !important; white-space: nowrap; letter-spacing: 0 !important; }
	#divider03::before { width: 100% !important; }
}

/* ------------------------------------------------------------------ phone (<=736): compact header + menu button */
@media (max-width: 736px) {
	#header { position: relative; }
	#container15 { min-height: 0 !important; }
	#container15 > .wrapper > .inner { --padding-vertical: 0.75rem; }
	#container15 > .wrapper > .inner > :nth-child(1) { margin: 0 !important; }
	#container15 > .wrapper > .inner > :nth-child(2) { display: none; }
	#container15 > .wrapper > .inner > :nth-child(3) { margin: 0 !important; }
	.image-component.instance-4 { margin: 0 !important; }
	.image-component.instance-4 > .frame { width: 15.5rem !important; height: auto !important; aspect-ratio: 392 / 172; margin: 0 !important; }
	#image04 { --flex-alignment: flex-start; text-align: left; }
	#divider03 { display: none; }

	.bdc-menu-toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 5px;
		position: absolute; top: 50%; right: 1.25rem; transform: translateY(-50%);
		width: 2.75rem; height: 2.75rem; padding: 0 0.6rem; margin: 0;
		background: transparent; border: 1.5px solid var(--bdc-navy); border-radius: 0.875rem; cursor: pointer;
		-webkit-tap-highlight-color: transparent; z-index: 5;
	}
	.bdc-menu-toggle span { display: block; height: 2px; width: 100%; background: var(--bdc-navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
	#header.menu-open .bdc-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	#header.menu-open .bdc-menu-toggle span:nth-child(2) { opacity: 0; }
	#header.menu-open .bdc-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	#header nav { display: none; }
	#header.menu-open .bdc-menu-toggle span:nth-child(n) { transform: none; opacity: 1; }

	/* service cards: two per row instead of six full-screen cards */
	.gallery-component.instance-1 ul { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0.5rem !important; }
	.gallery-component.instance-1 ul > li { width: auto !important; }
	.gallery-component.instance-1 ul > li > .thumbnail > .frame > img { aspect-ratio: 1 / 1; height: auto !important; }
	.gallery-component.instance-1 ul > li > .caption > p { font-size: 0.8125em !important; line-height: 1.35 !important; padding: 0.5rem !important; }

	/* form: 16px text stops iPhones zooming in when a field is tapped */
	.form-component input[type="text"], .form-component input[type="email"], .form-component input[type="tel"], .form-component textarea { font-size: 16px !important; }
}

/* ------------------------------------------------------------------ testimonials (text, replacing the image slideshow) */
.bdc-testimonials {
	position: relative;
	width: 100%; max-width: 21rem;
	margin: 0 auto;
	padding: 0 0 2.5rem;
	box-sizing: border-box;
	text-align: left;
	-webkit-user-select: none; user-select: none;
}
.bdc-t-viewport { overflow: hidden; border-radius: 0.5rem; touch-action: pan-y; }
.bdc-t-track { display: flex; transition: transform 0.7s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.bdc-t-slide {
	position: relative; flex: 0 0 100%; margin: 0;
	min-height: 28rem; padding: 5.5rem 11% 1rem 21.5%; box-sizing: border-box;
	font-family: 'Nunito Sans', sans-serif; color: var(--bdc-light);
}
/* quote mark traced from the original testimonial graphics */
.bdc-t-mark {
	position: absolute; left: 2.3%; top: 0.4rem; width: 71.3%; aspect-ratio: 469 / 376;
	background-color: var(--bdc-teal); opacity: 0.19; pointer-events: none;
	-webkit-mask: url('/assets/images/quote-mark.webp') no-repeat center / contain;
	mask: url('/assets/images/quote-mark.webp') no-repeat center / contain;
}
.bdc-t-title {
	position: relative; margin: 0 0 1.5rem;
	font-size: 1.625rem; line-height: 1.12; font-weight: 500; letter-spacing: 0.01em; color: var(--bdc-light);
}
.bdc-t-quote { position: relative; margin: 0; padding: 0; border: 0; }
.bdc-t-quote p { margin: 0 0 1rem; font-size: 0.96rem; line-height: 1.45; font-weight: 400; color: var(--bdc-light); }
.bdc-t-name { position: relative; margin-top: 1.5rem; font-size: 0.75rem; letter-spacing: 0.01em; color: var(--bdc-grey); }
.bdc-t-nav {
	position: absolute; top: 45%; width: 2.25rem; height: 3rem; padding: 0; margin: 0;
	background: transparent; border: 0; cursor: pointer; opacity: 0.6; transition: opacity .2s ease;
}
.bdc-t-nav:hover, .bdc-t-nav:focus-visible { opacity: 1; }
.bdc-t-nav::before {
	content: ''; position: absolute; top: 50%; left: 50%; width: 0.9rem; height: 0.9rem;
	border-left: 1.5px solid var(--bdc-light); border-bottom: 1.5px solid var(--bdc-light);
}
.bdc-t-prev { left: 0; z-index: 2; }
.bdc-t-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.bdc-t-next { right: 0; z-index: 2; }
.bdc-t-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.bdc-t-dots { position: absolute; left: 0; right: 0; bottom: 0.5rem; display: flex; justify-content: center; gap: 0.6rem; }
.bdc-t-dot { width: 0.45rem; height: 0.45rem; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #2f3f4b; cursor: pointer; transition: background .3s ease, transform .3s ease; }
.bdc-t-dot[aria-current="true"] { background: var(--bdc-teal); transform: scale(1.25); }
.bdc-t-nav:focus-visible, .bdc-t-dot:focus-visible { outline: 2px solid var(--bdc-teal); outline-offset: 3px; }
/* more air between the testimonials and the text beside them */
@media (min-width: 1101px) {
	#container05 > .wrapper > .inner > :nth-child(1) { width: 32% !important; }
	#container05 > .wrapper > .inner > :nth-child(2) { width: 68% !important; padding-left: 3rem; }
	.bdc-testimonials { max-width: 23rem; }
}
/* tablets and small laptops: testimonials get their own row instead of a narrow column */
@media (min-width: 737px) and (max-width: 1100px) {
	#container05 > .wrapper > .inner { flex-direction: column !important; align-items: center !important; }
	#container05 > .wrapper > .inner > :nth-child(1) { width: 100% !important; order: 2; margin-top: 2.5rem; }
	#container05 > .wrapper > .inner > :nth-child(2) { width: 100% !important; order: 1; }
	.bdc-testimonials { max-width: 26rem; }
}
@media (max-width: 736px) {
	.bdc-testimonials { max-width: 24rem; }
	.bdc-t-slide { min-height: 0; padding: 4.4rem 13% 1rem 17%; }
	.bdc-t-mark { width: 62%; }
	.bdc-t-title { font-size: 1.5rem; }
	.bdc-t-quote p { font-size: 1rem; }
	.bdc-t-name { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) { .bdc-t-track { transition: none; } }

/* ------------------------------------------------------------------ article pages */
.bdc-article-wrap { display: flex; justify-content: center; width: 100%; }
.bdc-article-wrap > .wrapper { width: 100%; max-width: 46rem; }
.bdc-article-wrap > .wrapper > .inner { padding: 3.5rem 1.75rem 4.5rem; }
.bdc-article { text-align: left; font-family: 'Nunito Sans', sans-serif; color: var(--bdc-light); font-size: 1.0625rem; line-height: 1.75; font-weight: 300; letter-spacing: 0.01em; }
.bdc-article a { color: var(--bdc-teal); text-decoration: underline; text-underline-offset: 0.18em; }
.bdc-article strong { font-weight: 700; }
.bdc-crumbs { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bdc-grey); margin-bottom: 2rem; }
.bdc-crumbs a { color: var(--bdc-grey) !important; text-decoration: none !important; }
.bdc-crumbs a:hover { color: var(--bdc-teal) !important; }
.bdc-crumbs span { margin: 0 0.6rem; }
.bdc-kicker { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.25rem; text-transform: uppercase; color: var(--bdc-teal); }
.bdc-article h1 { margin: 0 0 1rem; font-size: 2.5rem; line-height: 1.2; font-weight: 600; color: var(--bdc-light); letter-spacing: 0; }
.bdc-meta { margin: 0 0 2rem; font-size: 0.875rem; color: var(--bdc-grey); }
.bdc-meta a { color: var(--bdc-grey) !important; }
.bdc-article figure { margin: 2.25rem 0; }
.bdc-article figure img { display: block; width: 100%; height: auto; border-radius: 0.75rem; }
.bdc-article figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--bdc-grey); text-align: center; }
.bdc-cover { margin-top: 0 !important; }
.bdc-article h2 { margin: 2.75rem 0 1rem; font-size: 1.625rem; line-height: 1.3; font-weight: 600; color: var(--bdc-light); }
.bdc-article p { margin: 0 0 1.25rem; }
.bdc-article ul { margin: 0 0 1.5rem; padding-left: 1.25rem; list-style: disc outside; }
.bdc-article li { display: list-item; }
.bdc-article li { margin-bottom: 0.5rem; }
.bdc-article li::marker { color: var(--bdc-teal); }
.bdc-formula { margin: 1.5rem 0 !important; padding: 1.25rem; text-align: center; font-size: 1.375rem; font-weight: 600; color: var(--bdc-teal); border: 1px solid #2f3f4b; border-radius: 0.75rem; }
.bdc-callout { margin: 2rem 0 !important; padding: 1.25rem 1.5rem; font-weight: 600; border-left: 3px solid var(--bdc-teal); background: rgba(106,177,180,0.07); border-radius: 0 0.75rem 0.75rem 0; }
.bdc-rule { border: 0; height: 2px; background: var(--bdc-teal); margin: 3rem 0 2.5rem; }
.bdc-cta h2 { margin-top: 0 !important; }
.bdc-button {
	display: inline-block; padding: 0 1.75rem; height: 3rem; line-height: 3rem; border: 2px solid var(--bdc-grey); border-radius: 0.875rem;
	font-weight: 700; font-size: 0.9375rem; color: var(--bdc-light) !important; text-decoration: none !important; transition: background-color .2s ease, transform .2s ease;
}
.bdc-button:hover { background: var(--bdc-teal); transform: scale(1.03); }
.bdc-also, .bdc-back { font-size: 0.9375rem; }
@media (max-width: 736px) {
	.bdc-article-wrap > .wrapper > .inner { padding: 2rem 1.25rem 3.5rem; }
	.bdc-article { font-size: 1rem; }
	.bdc-article h1 { font-size: 1.875rem; }
	.bdc-article h2 { font-size: 1.375rem; }
}

/* ------------------------------------------------------------------ contact form: roomier, easier to read */
.form-component.instance-1 > .inner { width: 36rem !important; }
.form-component.instance-1 > .inner > * { margin-top: 0.875rem !important; }
.form-component.instance-1 > .inner > :first-child { margin-top: 0 !important; }
.form-component.instance-1 input[type="text"], .form-component.instance-1 input[type="email"], .form-component.instance-1 input[type="tel"] {
	height: 3.25rem !important; line-height: calc(3.25rem - 3px) !important; padding: 0 1.1rem !important;
}
.form-component.instance-1 input[type="text"], .form-component.instance-1 input[type="email"], .form-component.instance-1 input[type="tel"], .form-component.instance-1 textarea {
	font-size: 0.9375em !important; font-weight: 400 !important; color: var(--bdc-light) !important;
	border-width: 1.5px !important; border-radius: 0.875rem !important; background: rgba(255,255,255,0.02);
	letter-spacing: 0.02em; transition: border-color .2s ease, background-color .2s ease;
}
.form-component.instance-1 textarea { height: 11rem !important; padding: 0.9rem 1.1rem !important; line-height: 1.6 !important; }
.form-component.instance-1 input:focus, .form-component.instance-1 textarea:focus { border-color: var(--bdc-teal) !important; background: rgba(106,177,180,0.05); outline: none; }
.form-component.instance-1 ::placeholder { letter-spacing: 0.12em; }
.form-component.instance-1 input[type="checkbox"] + label { font-weight: 400 !important; text-align: left; }
.form-component.instance-1 .actions { margin-top: 1.5rem !important; }

/* ------------------------------------------------------------------ footer: icons on one row, headings unbroken */
@media (min-width: 737px) {
	.container-component.instance-6 > .wrapper > .inner > :nth-child(1) { width: 27% !important; }
	.container-component.instance-6 > .wrapper > .inner > :nth-child(2) { width: 20% !important; }
	.container-component.instance-6 > .wrapper > .inner > :nth-child(3) { width: 20% !important; }
	.container-component.instance-6 > .wrapper > .inner > :nth-child(4) { width: 33% !important; }
	#text14, #text15, #text16 { white-space: nowrap; }
	#icons04 { flex-wrap: nowrap !important; gap: 0.5rem !important; }
	#links01 > li > a, #links02 > li > a { white-space: nowrap; }
	#links01, #links02 { display: flex !important; flex-direction: column !important; align-items: flex-start !important; }
}
@media (max-width: 736px) {
	.form-component.instance-1 > .inner { width: 100% !important; }
}
@media (min-width: 737px) and (max-width: 1100px) {
	.container-component.instance-6 > .wrapper > .inner { flex-wrap: wrap !important; row-gap: 2rem; }
	.container-component.instance-6 > .wrapper > .inner > :nth-child(1) { width: 100% !important; }
	.container-component.instance-6 > .wrapper > .inner { justify-content: center !important; column-gap: 3.5rem; }
	.container-component.instance-6 > .wrapper > .inner > :nth-child(n+2) { width: auto !important; margin: 0 !important; padding: 0 !important; flex: 0 0 auto; }
	#image02 { --flex-alignment: center; text-align: center; }
	#image02 > .frame { margin: 0 auto !important; max-width: 22rem; }
}

/* ------------------------------------------------------------------ phone menu: full-screen pop-up (attached to <body>) */
#bdc-menu { display: none; }
#bdc-menu.open {
	display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000;
	flex-direction: column; justify-content: center; align-items: center;
	padding: 5rem 2rem 3rem; background: rgba(16, 24, 32, 0.97);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	animation: bdc-menu-in .25s ease;
}
@keyframes bdc-menu-in { from { opacity: 0; } to { opacity: 1; } }
#bdc-menu ul { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0.4rem !important; margin: 0 !important; padding: 0; width: 100%; max-width: 22rem; list-style: none; }
#bdc-menu ul, #bdc-menu li, #bdc-menu a { opacity: 1 !important; transform: none !important; filter: none !important; visibility: visible !important; }
#bdc-menu li { width: 100%; }
#bdc-menu a {
	display: block !important; width: 100% !important; height: 3.25rem !important; line-height: 3.25rem !important;
	text-align: center; padding: 0 1rem !important; font-family: 'Nunito Sans', sans-serif; font-weight: 700;
	font-size: 0.9rem !important; letter-spacing: 0.14em !important; text-transform: uppercase; text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	color: var(--bdc-light) !important; background: transparent !important; border-radius: 0.875rem;
}
#bdc-menu a:active, #bdc-menu a:hover { background: rgba(106,177,180,0.15) !important; color: var(--bdc-teal) !important; }
#bdc-menu .bdc-menu-close {
	position: absolute; top: 1.25rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; padding: 0; margin: 0;
	background: transparent; border: 1.5px solid var(--bdc-light); border-radius: 0.875rem; cursor: pointer;
}
#bdc-menu .bdc-menu-close::before, #bdc-menu .bdc-menu-close::after {
	content: ''; position: absolute; top: 50%; left: 50%; width: 1.1rem; height: 2px; background: var(--bdc-light); border-radius: 2px;
}
#bdc-menu .bdc-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
#bdc-menu .bdc-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
#bdc-menu .bdc-menu-logo { position: absolute; top: 1.4rem; left: 1.5rem; font-family: 'Nunito Sans', sans-serif; font-size: 0.7rem; letter-spacing: 0.3em; color: var(--bdc-grey); text-transform: uppercase; }
body.bdc-menu-lock { overflow: hidden !important; }

/* ------------------------------------------------------------------ floating WhatsApp, above back-to-top */
#bdc-whatsapp {
	position: fixed; right: 20px; bottom: 82px; z-index: 99;
	display: flex; align-items: center; justify-content: center;
	width: 50px; height: 50px; border-radius: 50%;
	background: #25D366; box-shadow: 0 6px 18px rgba(0,0,0,0.28);
	transition: transform .2s ease, box-shadow .2s ease;
}
#bdc-whatsapp:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
#bdc-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
#bdc-whatsapp:focus-visible { outline: 2px solid var(--bdc-teal); outline-offset: 3px; }
@media print { #bdc-whatsapp { display: none; } }
