/**
 * Dany theme on top of Bootstrap 5.3: clean, white, plenty of whitespace,
 * magenta (#c5034c) only as an accent.
 */

:root {
	--dany-brand: #c5034c;
	--dany-brand-dark: #9e023d;
	--dany-brand-soft: #fdf0f4;
	--dany-heading: #1d1f22;
	--dany-text: #4a4f55;
	--dany-muted: #6c737a;
	--dany-line: #e9eaec;
	--dany-surface: #f7f7f8;
	--dany-radius: 14px;

	--bs-body-font-family: "nimbus-sans", "Helvetica Neue", Arial, sans-serif;
	--bs-body-font-size: 1.0625rem;
	--bs-body-line-height: 1.7;
	--bs-body-color: var(--dany-text);
	--bs-emphasis-color: var(--dany-heading);
	--bs-heading-color: var(--dany-heading);
	--bs-link-color: var(--dany-brand);
	--bs-link-color-rgb: 197, 3, 76;
	--bs-link-hover-color: var(--dany-brand-dark);
	--bs-link-hover-color-rgb: 158, 2, 61;
	--bs-primary: var(--dany-brand);
	--bs-primary-rgb: 197, 3, 76;
	--bs-border-color: var(--dany-line);
	--bs-border-radius: 10px;
	--bs-focus-ring-color: rgba(197, 3, 76, .25);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
}

a {
	text-decoration: none;
}

svg.bi {
	width: 1em;
	height: 1em;
	vertical-align: -.125em;
}

/* BUTTONS & FORMS
----------------------------------------- */
.btn {
	--bs-btn-font-weight: 700;
	--bs-btn-border-radius: 999px;
	--bs-btn-padding-x: 1.4rem;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}
.btn-lg {
	--bs-btn-padding-x: 1.75rem;
	--bs-btn-font-size: 1.05rem;
}
.btn-primary {
	--bs-btn-bg: var(--dany-brand);
	--bs-btn-border-color: var(--dany-brand);
	--bs-btn-hover-bg: var(--dany-brand-dark);
	--bs-btn-hover-border-color: var(--dany-brand-dark);
	--bs-btn-active-bg: var(--dany-brand-dark);
	--bs-btn-active-border-color: var(--dany-brand-dark);
	--bs-btn-disabled-bg: var(--dany-brand);
	--bs-btn-disabled-border-color: var(--dany-brand);
	--bs-btn-focus-shadow-rgb: 197, 3, 76;
}
.btn-outline-dark {
	--bs-btn-color: var(--dany-heading);
	--bs-btn-border-color: #cfd2d6;
	--bs-btn-hover-bg: var(--dany-heading);
	--bs-btn-hover-border-color: var(--dany-heading);
}

.form-control,
.form-select {
	padding: .7rem .9rem;
	border-color: #d9dbde;
}
.form-control:focus,
.form-select:focus {
	border-color: rgba(197, 3, 76, .5);
	box-shadow: 0 0 0 .25rem rgba(197, 3, 76, .12);
}

/* HEADER
----------------------------------------- */
.site-header {
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	border-top: 4px solid var(--dany-brand);
	border-bottom: 1px solid var(--dany-line);
}
.site-header .navbar {
	padding-top: .85rem;
	padding-bottom: .85rem;
}
.site-header .navbar-brand img {
	height: 44px;
	width: auto;
}
.site-header .navbar-toggler {
	border: 0;
	padding: .5rem;
}
.site-header .navbar-toggler:focus {
	box-shadow: 0 0 0 .2rem rgba(197, 3, 76, .2);
}

.main-nav .nav-link {
	color: var(--dany-heading);
	font-weight: 700;
	font-size: .98rem;
	padding: .5rem 0;
	position: relative;
}
.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
	color: var(--dany-brand);
}
.main-nav .nav-link.current,
.main-nav .nav-link.section {
	color: var(--dany-brand);
}

.lang-nav {
	gap: .25rem;
	padding: .5rem 0 .75rem;
}
.lang-nav .nav-link {
	color: var(--dany-muted);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .2rem .5rem;
	border-radius: 999px;
}
.lang-nav .nav-link:hover {
	color: var(--dany-heading);
}
.lang-nav .nav-link.current {
	color: var(--dany-brand);
	background: var(--dany-brand-soft);
}

@media (min-width: 992px) {
	.main-nav {
		gap: 2rem;
	}
	.main-nav .nav-link.current::after,
	.main-nav .nav-link.section::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -1.05rem;
		height: 2px;
		background: var(--dany-brand);
	}
	.lang-nav {
		padding: 0;
		border-left: 1px solid var(--dany-line);
		padding-left: 1rem;
	}
}

/* LAYOUT
----------------------------------------- */
.site-main {
	flex: 1 0 auto;
	padding-bottom: 4rem;
}

.page-header {
	padding: 3.5rem 0 2rem;
}
.page-header h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0;
}
.page-lead {
	max-width: 46rem;
	margin-top: 1rem;
	font-size: 1.15rem;
	color: var(--dany-muted);
}
.page-lead p:last-child {
	margin-bottom: 0;
}

.page-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	border-radius: var(--dany-radius);
	margin-bottom: 2.5rem;
}

.content-narrow {
	max-width: 48rem;
}

/* SECTIONS (home page)
----------------------------------------- */
.hero {
	padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 8vw, 5.5rem);
}
.eyebrow {
	color: var(--dany-brand);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.hero-title {
	font-size: clamp(2.4rem, 6vw, 4rem);
	letter-spacing: -.025em;
	line-height: 1.08;
	margin-bottom: 1.5rem;
}
.hero-lead {
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	color: var(--dany-muted);
	max-width: 40rem;
	margin-bottom: 2.25rem;
}

.section {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section-muted {
	background: var(--dany-surface);
}
.site-main > .section:last-child {
	margin-bottom: -4rem;
}
.section-head {
	margin-bottom: 2.5rem;
}
.section-title {
	font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}
.section-head p,
.section-lead {
	color: var(--dany-muted);
	font-size: 1.15rem;
	margin: .5rem 0 0;
}

.link-arrow {
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}
.link-arrow svg,
.teaser-link svg,
.btn svg {
	transition: transform .2s ease;
}
.link-arrow:hover svg,
.teaser:hover .teaser-link svg,
.btn:hover svg {
	transform: translateX(3px);
}

/* Teasers (skills) */
.teaser {
	position: relative;
	padding: 2rem;
	border: 1px solid var(--dany-line);
	border-radius: var(--dany-radius);
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.teaser:hover {
	border-color: transparent;
	box-shadow: 0 18px 40px -18px rgba(29, 31, 34, .25);
	transform: translateY(-3px);
}
.teaser-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 12px;
	background: var(--dany-brand-soft);
	color: var(--dany-brand);
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}
.teaser h3 {
	font-size: 1.3rem;
	margin-bottom: .75rem;
}
.teaser p {
	color: var(--dany-muted);
	flex-grow: 1;
}
.teaser-link {
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

/* Contact */
.contact-line a {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-weight: 700;
	font-size: 1.1rem;
}
.contact-card {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--dany-radius);
	background: var(--dany-surface);
}
.contact-card form .field label {
	font-weight: 700;
	font-size: .9rem;
	color: var(--dany-heading);
	margin-bottom: .35rem;
}
.contact-card .btn-toolbar {
	margin-top: .5rem;
}

/* SERVICES PAGE
----------------------------------------- */
.service-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: 2rem;
}
.service-nav a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem 1.1rem;
	border: 1px solid var(--dany-line);
	border-radius: 999px;
	color: var(--dany-heading);
	font-weight: 700;
	font-size: .95rem;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.service-nav a svg {
	color: var(--dany-brand);
}
.service-nav a:hover {
	border-color: var(--dany-brand);
	color: var(--dany-brand);
	background: var(--dany-brand-soft);
}

.service {
	scroll-margin-top: 80px;
}
.service .typography {
	max-width: 42rem;
}

.service-card {
	padding: 2rem;
	border-radius: var(--dany-radius);
	background: #fff;
	border: 1px solid var(--dany-line);
}
.section-muted .service-card {
	border-color: transparent;
}
.service-card-title {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dany-muted);
	margin-bottom: 1.25rem;
}

.check-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.check-list li {
	display: flex;
	gap: .75rem;
	padding: .65rem 0;
	border-bottom: 1px solid var(--dany-line);
	color: var(--dany-heading);
	line-height: 1.45;
}
.check-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.check-list svg {
	flex-shrink: 0;
	color: var(--dany-brand);
	margin-top: .2rem;
}

.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--dany-radius);
	background: var(--dany-heading);
	color: #fff;
}
.cta .section-title {
	color: #fff;
}
.cta .section-lead {
	color: rgba(255, 255, 255, .75);
}

/* ABOUT PAGE: INTRO
----------------------------------------- */
.about-hero {
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.about-hero .hero-lead {
	margin-bottom: 2.5rem;
}

.about-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding-top: 2rem;
	border-top: 1px solid var(--dany-line);
}
.about-facts dt {
	color: var(--dany-brand);
	font-size: clamp(1.9rem, 3.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.1;
}
.about-facts dd {
	margin: .35rem 0 0;
	color: var(--dany-muted);
	font-size: .95rem;
	line-height: 1.4;
}

.about-mosaic {
	position: relative;
	z-index: 0;
	display: grid;
	gap: .9rem;
}
.about-mosaic::before {
	content: "";
	position: absolute;
	inset: 2.5rem -1.25rem -1.25rem 2.5rem;
	background: var(--dany-brand-soft);
	border-radius: var(--dany-radius);
	z-index: -1;
}
.about-mosaic-2 { grid-template-columns: 1fr; }
.about-mosaic-3 { grid-template-columns: repeat(2, 1fr); }
.about-mosaic-4 { grid-template-columns: repeat(3, 1fr); }
.about-mosaic figure:first-child {
	grid-column: 1 / -1;
}
.about-mosaic figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--dany-radius);
	background: var(--dany-surface);
	box-shadow: 0 24px 50px -30px rgba(29, 31, 34, .45);
}
.about-mosaic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.about-mosaic figure:hover img {
	transform: scale(1.04);
}
.about-mosaic figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2rem 1rem .75rem;
	background: linear-gradient(transparent, rgba(29, 31, 34, .75));
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	opacity: 0;
	transition: opacity .3s ease;
}
.about-mosaic figure:first-child figcaption,
.about-mosaic figure:hover figcaption {
	opacity: 1;
}
@media (hover: none) {
	.about-mosaic figcaption {
		opacity: 1;
	}
}
@media (max-width: 575.98px) {
	.about-mosaic::before {
		inset: 2rem -.75rem -.75rem 2rem;
	}
	.about-mosaic-4 figure:not(:first-child) figcaption {
		display: none;
	}
}

.about-story {
	padding-bottom: clamp(3rem, 7vw, 5rem);
}
.about-story h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 1.25rem;
}
.about-history {
	position: relative;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	border-radius: var(--dany-radius);
	background: var(--dany-surface);
	border-top: 4px solid var(--dany-brand);
}
.about-history h2,
.about-history h3 {
	font-size: 1.35rem;
	margin-bottom: 1rem;
}
.about-history p {
	color: var(--dany-text);
}
.about-history p:last-child {
	margin-bottom: 0;
}

/* ABOUT PAGE: BIOGRAPHY
----------------------------------------- */
.bio-photo {
	margin: 0;
	position: relative;
}
.bio-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--dany-radius);
	box-shadow: 0 24px 50px -28px rgba(29, 31, 34, .45);
}
.bio-photo::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 2px solid var(--dany-brand);
	border-radius: var(--dany-radius);
	z-index: -1;
}
.bio {
	position: relative;
	z-index: 0;
}
.bio-role {
	color: var(--dany-muted);
	font-size: 1.15rem;
	margin-bottom: 2rem;
}
.bio-social {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: .5rem;
}
.bio-social .btn {
	--bs-btn-padding-x: .9rem;
	gap: .4rem;
}
.bio-highlights {
	padding: 1.75rem;
	border-radius: var(--dany-radius);
	background: #fff;
}
.bio-highlights li {
	font-weight: 700;
}
@media (max-width: 767.98px) {
	.bio-photo {
		max-width: 320px;
	}
}

/* FOOTER
----------------------------------------- */
.site-footer {
	border-top: 1px solid var(--dany-line);
	padding: 2rem 0;
	font-size: .85rem;
	color: var(--dany-muted);
}
.site-footer p {
	margin: 0;
}
.site-footer a {
	color: var(--dany-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.site-footer a:hover {
	color: var(--dany-brand);
}
.footer-logo {
	height: 31px;
	width: auto;
	opacity: .9;
}

/* CONTENT (also used in the CMS editor via editor.css)
----------------------------------------- */
.typography h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.typography h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.typography h4 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.typography h5, .typography h6 { font-size: 1rem; }
.typography > :first-child { margin-top: 0; }
.typography p { margin-bottom: 1.25rem; }
.typography a { text-decoration: underline; text-underline-offset: 2px; }
.typography blockquote {
	margin: 2rem 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--dany-brand);
	font-size: 1.2rem;
	color: var(--dany-heading);
}
.typography img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.typography ul.dany {
	list-style-image: url(../../images/brick.jpg);
}

/* Old CMS content uses fixed-width layout tables: let them stack on small screens */
@media (max-width: 767.98px) {
	.typography table,
	.typography tbody,
	.typography tr,
	.typography td {
		display: block;
		width: 100% !important;
		float: none !important;
	}
}

/* REFERENCES / PROJECTS
----------------------------------------- */
.project {
	border-color: var(--dany-line);
	border-radius: var(--dany-radius);
	overflow: hidden;
	transition: box-shadow .2s ease;
}
.project:hover {
	box-shadow: 0 18px 40px -22px rgba(29, 31, 34, .3);
}
.project .card-body {
	padding: 1.25rem 1.5rem 1.5rem;
}
.project-title {
	font-size: 1.15rem;
	margin-bottom: .35rem;
}
.project-title a {
	color: inherit;
}
.project-title a:hover {
	color: var(--dany-brand);
}
.project-meta {
	font-size: .9rem;
	color: var(--dany-muted);
	margin-bottom: 0;
}

.project-image,
.project-carousel {
	background: var(--dany-surface);
	overflow: hidden;
}
.project-image,
.project-carousel .carousel-item {
	aspect-ratio: 16 / 9;
}
.project-image img,
.project-carousel .carousel-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.project-carousel .carousel-control-prev,
.project-carousel .carousel-control-next {
	width: 12%;
}
.project-carousel .carousel-control-prev-icon,
.project-carousel .carousel-control-next-icon {
	background-color: rgba(29, 31, 34, .55);
	border-radius: 50%;
	background-size: 50%;
	width: 2.5rem;
	height: 2.5rem;
}
.project-carousel .carousel-indicators [data-bs-target] {
	background-color: var(--dany-heading);
}
.project-carousel .carousel-indicators .active {
	background-color: var(--dany-brand);
}

/* NEWS
----------------------------------------- */
.news-item {
	padding-bottom: 2rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--dany-line);
}
.news-date {
	color: var(--dany-brand);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-bottom: .35rem;
}

/* SILVERSTRIPE FORMS
----------------------------------------- */
form .field {
	margin-bottom: 1.1rem;
}
form .field label.left {
	display: block;
}
form .message {
	display: block;
	margin-top: .35rem;
	font-size: .875em;
}
form .message.required,
form .message.validation,
form .message.bad,
form .message.error {
	color: var(--bs-danger);
}
form .message.good {
	color: #146c43;
}
form > .message:not(:empty) {
	padding: .9rem 1.1rem;
	margin: 0 0 1.25rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid currentColor;
	font-size: 1rem;
	font-weight: 700;
}
