/* Condensed padding for specific front-page sections */
.box-1--condensed {
	/* larger even padding on all sides; keep content vertically centered */
	padding: 80px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start; /* preserve left-aligned content on desktop */
}

@media (max-width: 991.98px) {
	.box-1--condensed {
		padding: 32px; /* even padding on smaller screens */
		align-items: center; /* center content on mobile */
		text-align: center;
	}
}

/* Import fonts and set site typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Typography: body copy uses Inter, headings use Outfit */
body,
p,
button,
input,
textarea,
select,
.text-2,
.feature-text,
.review-text,
.portfolio-item-title,
.portfolio-item-price {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.feature-title,
.review-title {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
}

/* Small adjustments so headings and body sizes remain balanced */
body { font-weight: 400; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Shared page header title: slightly larger and wider */
.header.box-1 .post-title {
	width: 100%;
	max-width: 860px;
	flex: 0 0 860px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

@media (max-width: 991.98px) {
	.header.box-1 .post-title {
		max-width: 720px;
		flex-basis: 720px;
	}
}

/* Front-page features: keep cards equal height regardless of copy length */
.features-wrap {
	padding-bottom: 40px;
}

.features-wrap .row {
	row-gap: 40px;
}

.features-wrap .row > [class*="col-"] {
	display: flex;
}

.features-wrap .feature.feature-2 {
	width: 100%;
	height: 100%;
}

.features-wrap .feature.feature-2 .feature-cont {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
}

.features-wrap .feature.feature-2 .decorated {
	margin-top: auto;
	width: 100%;
}

/* PLACE YOU CUSTOM STYLES IN THIS FILE */

/* Fixes for Store & Product pages - align to original template */

/* Ensure isotope filter aligns and does not duplicate UI */
.isotope-container .isotope-filter {
	display: flex;
	justify-content: center;
	gap: 18px;
	padding-left: 0;
}

/* Prevent duplicate filter occasionally injected by template includes */
.isotope-container .isotope-filter:nth-of-type(n+2) {
	display: none;
}

/* Ensure grid items can expand and not cut off */
.isotope-grid .portfolio-item {
	overflow: visible;
}

/* Sticky sidebar adjustments to avoid content cutting under the footer */
.sticky {
	position: relative;
	z-index: 2;
}

/* Product gallery fixes for mobile - allow larger images without clipping */
.gallery .gallery-item .img,
.gallery .gallery-item img {
	max-width: 100%;
	height: auto;
}

/* Make sure box-5 spacing mirrors the original template */
.box-5 { padding: 80px 0 }

/* --------------------------------------------------
   bbPress -> Amdesk mapping
   Basic rules to make bbPress markup inherit theme styles
   -------------------------------------------------- */

/* Tables: ensure bbPress topic/forum lists use dx table look */
.bbp-forums .bbp-forum, .bbp-forums .bbp-forum-title,
.bbp-topics .bbp-topic, .bbp-topics .bbp-topic-title {
	/* let our table style dominate by ensuring links display like table titles */
}

/* Titles */
.bbp-forum-title a,
.bbp-topic-title a,
.bbp-topic-permalink {
	display: block;
	font-weight: 600;
	color: inherit;
}

/* Meta lines (author/date) */
.bbp-topic-meta,
.bbp-topic-starter,
.bbp-reply-author,
.bbp-forum-content .author {
	color: #6c6c6c;
	font-size: 14px;
}

/* Replies: present like dx-comment */
.bbp-replies .bbp-reply,
.bbp-reply {
	display: flex;
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid #eee;
}
.bbp-reply .bbp-reply-author {
	width: 72px;
}
.bbp-reply .bbp-reply-author img,
.bbp-author-avatar img {
	max-width: 64px;
	height: auto;
	border-radius: 50%;
}
.bbp-reply .bbp-reply-content {
	flex: 1;
}

/* Reply form: align buttons and editor spacing */
.bbp-reply-form .bbp-submit-wrapper .button,
.bbp-reply-form input[type="submit"],
.bbp-submit-wrapper .button {
	background: var(--amdesk-accent, #2b6fbf);
	border: none;
	color: #fff;
	padding: 10px 18px;
	border-radius: 4px;
}

/* Pagination mapping to dx-pagination */
.bbp-pagination,
.bbp-replies .bbp-pagination,
.bbp-topic-pagination {
	margin-top: 24px;
}

/* Small responsive fixes for topic tables */
@media (max-width: 991px) {
	.table.table-default thead { display: none; }
	.table.table-default tbody tr { display: block; margin-bottom: 18px; }
}

/* --------------------------------------------------
   Navbar dropdown helpers (mobile touch support)
   These rules complement the existing `amdesk` navbar styles
   - `.nav-item-drop` is added by the theme walker
   - `.open` is toggled by `nav-dropdown.js` on small screens
   -------------------------------------------------- */

/* show dropdown when `open` class is present */
.navbar .nav-item-drop.open > .navbar-dropdown {
	visibility: visible;
	opacity: 1;
	-webkit-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
}

.navbar .nav-item-drop > .nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.navbar .nav-item-drop > .nav-link .nav-link-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.625rem;
	line-height: 1;
	opacity: 0.78;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar .nav-item-drop:hover > .nav-link .nav-link-indicator,
.navbar .nav-item-drop:focus-within > .nav-link .nav-link-indicator,
.navbar .nav-item-drop.open > .nav-link .nav-link-indicator {
	opacity: 1;
}

.navbar .nav-item-drop.open > .nav-link .nav-link-indicator {
	transform: rotate(180deg);
}

.navbar-fullscreen .nav-link-indicator,
.navbar-fullscreen .navbar-dropdown-triangle {
	display: none !important;
}

.navbar-fullscreen .nav-item-drop > .nav-link {
	gap: 0;
}

/* --------------------------------------------------
   DX Navbar compatibility
   Ensure the `dx-` navbar fullscreen classes mirror the non-dx rules
-------------------------------------------------- */
.dx-navbar.dx-navbar-fullscreen {
	visibility: hidden;
	opacity: 0;
	transition: visibility .3s ease-in-out, opacity .3s ease-in-out;
	z-index: -1000;
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100vw;
	overflow-x: hidden;
	overflow-y: auto;
}

.dx-navbar.dx-navbar-fullscreen.dx-navbar-fullscreen-open {
	visibility: visible;
	opacity: 1;
	z-index: 1000;
}

.dx-navbar.dx-navbar-fullscreen .dx-navbar-content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 90px 20px;
}

.dx-navbar.dx-navbar-fullscreen .dx-nav {
	display: flex;
	flex-direction: column;
}

.dx-navbar-burger,
.navbar-burger {
	cursor: pointer;
}

html {
	scroll-behavior: smooth;
}

/* --------------------------------------------------
   Services page refresh
   -------------------------------------------------- */

.services-page {
	--services-bg: #f3f3f3;
	--services-ink: #111111;
	--services-muted: #4c4c4c;
	--services-panel: #ffffff;
	--services-border: #d9d9d9;
	--services-accent: #111111;
	--services-accent-rgb: 17, 17, 17;
	--services-accent-dark: #111111;
	background: linear-gradient(180deg, #ffffff 0%, var(--services-bg) 100%);
	color: var(--services-ink);
}

.services-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #111111;
	border: 1px solid #111111;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
}

.services-kicker--dark {
	background: #111111;
	border-color: #111111;
	color: #ffffff;
}

.services-hero {
	position: relative;
	overflow: hidden;
	padding: 152px 0 92px;
	background: #000;
	color: #fff;
}

.services-hero::after {
	content: "";
	position: absolute;
	pointer-events: none;
	opacity: 1;
}

.services-hero::after {
	left: 0;
	right: 0;
	bottom: 0;
	height: 96px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000);
}

.services-hero__media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.services-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.services-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.08) brightness(0.68);
}

.services-hero .container,
.services-overview .container,
.services-grid-section .container,
.services-cta-band .container {
	position: relative;
	z-index: 1;
}

.services-hero__content {
	max-width: 760px;
}

.services-hero h1 {
	margin: 18px 0 14px;
	font-size: clamp(3rem, 2.3rem + 2.5vw, 5rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: #fff;
}

.services-hero__lead {
	max-width: 620px;
	margin-bottom: 0;
	font-size: clamp(1.08rem, 1rem + 0.45vw, 1.32rem);
	line-height: 1.68;
	color: #d4d4d4;
}

.services-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
	margin-bottom: 28px;
}

.services-hero__actions .btn {
	min-width: 180px;
	background: #ffffff;
	border: 1px solid #ffffff;
	color: #111111;
}

.services-hero__actions .btn:hover,
.services-hero__actions .btn:focus {
	background: #111111;
	border-color: #ffffff;
	color: #ffffff;
}

.services-hero__actions .btn.btn-transparent {
	background: #111111;
	border-color: #ffffff;
	color: #ffffff;
}

.services-hero__actions .btn.btn-transparent:hover,
.services-hero__actions .btn.btn-transparent:focus {
	background: #ffffff;
	color: #111111;
}

.services-hero__meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

.services-hero__meta-item {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	height: 100%;
	padding: 18px 20px;
	border-radius: 0;
	background: rgba(17, 17, 17, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: none;
}

.services-hero__meta-item strong {
	display: block;
	margin-bottom: 8px;
	font-size: 1rem;
	line-height: 1.2;
	color: #fff;
}

.services-hero__meta-item span {
	display: block;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #c9c9c9;
}

.services-overview {
	position: relative;
	margin-top: 0;
	padding: 34px 0 24px;
}

.services-overview__panel {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
	gap: 22px;
	padding: 26px;
	border: 1px solid #d8d8d8;
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
}

.services-section-heading h2 {
	margin: 12px 0 10px;
	font-size: clamp(2rem, 1.6rem + 1vw, 3rem);
	line-height: 1.04;
	letter-spacing: -0.04em;
	color: var(--services-ink);
}

.services-section-heading p,
.services-mini-card p,
.services-card p,
.services-cta-band__panel p {
	color: var(--services-muted);
	line-height: 1.68;
}

.services-overview__highlights {
	display: grid;
	gap: 12px;
}

.services-mini-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 16px 18px;
	border-radius: 0;
	background: #fff;
	border: 1px solid var(--services-border);
	box-shadow: none;
}

.services-mini-card__icon,
.services-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 0;
	background: #111111;
	color: #ffffff;
	box-shadow: none;
	font-size: 1.35rem;
}

.services-mini-card h3,
.services-card h3,
.services-cta-band__panel h2 {
	margin: 0 0 10px;
	color: var(--services-ink);
	letter-spacing: -0.03em;
}

.services-mini-card h3 {
	font-size: 1.1rem;
	line-height: 1.2;
}

.services-mini-card p {
	margin: 0;
	font-size: 0.94rem;
}

.services-grid-section {
	padding: 34px 0 72px;
}

.services-section-heading--center {
	max-width: 760px;
	margin: 0 auto 24px;
	text-align: center;
}

.services-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 24px;
	border: 1px solid var(--services-border);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.services-card::after {
	content: "";
	position: absolute;
	inset: auto 24px 0;
	height: 2px;
	border-radius: 0;
	background: #111111;
	opacity: 0;
	transform: translateY(12px);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.services-card:hover {
	transform: translateY(-4px);
	border-color: #111111;
	box-shadow: none;
}

.services-card:hover::after {
	opacity: 1;
	transform: translateY(-16px);
}

.services-card__tag {
	display: inline-block;
	margin: 16px 0 10px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--services-accent-dark);
}

.services-card h3 {
	font-size: 1.5rem;
	line-height: 1.08;
}

.services-card p {
	margin-bottom: 0;
	font-size: 0.98rem;
}

.services-cta-band {
	padding: 0 0 72px;
}

.services-cta-band__panel {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 28px 32px;
	border-radius: 0;
	background: #111111;
	box-shadow: none;
}

.services-cta-band__panel .services-kicker,
.services-cta-band__panel h2,
.services-cta-band__panel p {
	color: #fff;
}
.services-cta-band__panel .services-kicker {
	color: #fff;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.services-cta-band__panel p {
	max-width: 680px;
	margin-bottom: 0;
	color: #d6d6d6;
}

.services-cta-band__actions {
	flex: 0 0 auto;
}

.services-cta-band__actions .btn {
	background: #ffffff;
	border: 1px solid #ffffff;
	color: #111111;
}

.services-cta-band__actions .btn:hover,
.services-cta-band__actions .btn:focus {
	background: #111111;
	border-color: #ffffff;
	color: #ffffff;
}

@media (max-width: 1199.98px) {
	.services-hero__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.services-hero {
		padding: 132px 0 78px;
	}

	.services-overview {
		padding-top: 26px;
	}

	.services-overview__panel,
	.services-cta-band__panel {
		grid-template-columns: 1fr;
		display: grid;
	}

	.services-cta-band__panel {
		padding: 24px;
	}
}

@media (max-width: 767.98px) {
	.services-hero {
		padding: 118px 0 64px;
	}

	.services-hero h1 {
		margin-bottom: 16px;
	}

	.services-hero__lead {
		font-size: 1rem;
	}

	.services-hero__meta {
		grid-template-columns: 1fr;
	}

	.services-overview__panel,
	.services-card,
	.services-cta-band__panel {
		padding: 20px;
	}

	.services-grid-section {
		padding: 28px 0 56px;
	}

	.services-mini-card {
		padding: 14px;
	}

	.services-mini-card,
	.services-card {
		border-radius: 0;
	}

	.services-cta-band {
		padding-bottom: 56px;
	}

	.services-cta-band__actions .btn,
	.services-hero__actions .btn {
		width: 100%;
	}
}

/* Keep anchored sections visible below the sticky navbar. */
[id] {
	scroll-margin-top: 110px;
}


/* On small screens, make dropdowns flow in the document instead of absolute-positioned */
@media (max-width: 991.98px) {
	[id] {
		scroll-margin-top: 90px;
	}

	.navbar .navbar-dropdown {
		position: static;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		padding-left: 0;
		background: #fff;
		box-shadow: 0 6px 18px rgba(0,0,0,0.08);
		margin-top: 12px;
		padding: 12px 0;
	}
	.navbar .navbar-dropdown .nav-link {
		padding-left: 18px;
		text-transform: none;
		font-weight: 500;
	}

	/* show the triangle as a centered element above the static dropdown */
	.navbar .navbar-dropdown .navbar-dropdown-triangle {
		display: block;
		position: relative;
		width: 0;
		height: 0;
		margin: 0 auto 8px auto;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-bottom: 8px solid #fff;
	}

	.navbar .nav-item-drop > .nav-link {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* --------------------------------------------------
   Footer widget responsive refinements
   -------------------------------------------------- */
.footer .box-1 {
	padding-top: 28px;
	padding-bottom: 28px;
}

.footer .widget-footer {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 10px 0;
	gap: 16px;
}

.footer .widget-footer .widget-title {
	margin-bottom: 8px;
	line-height: 1.45;
	letter-spacing: 0.08em;
}

.footer .widget-footer .widget-text,
.footer .widget-footer .widget-post-text {
	line-height: 1.65;
}

.footer .widget-footer .widget-logo {
	margin-bottom: 0;
	line-height: 1.15;
	word-break: break-word;
}

.footer .footer-social ul,
.footer .footer-links ul {
	display: grid;
	gap: 12px;
}

.footer .footer-social li,
.footer .footer-links li {
	margin: 0;
	padding: 0;
}

.footer .footer-social a,
.footer .footer-links a {
	display: inline-block;
	line-height: 1.5;
	word-break: break-word;
}

.footer .widget-post {
	align-items: flex-start;
	padding: 0;
	line-height: 1.5;
}

.footer .widget-post + .widget-post {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .widget-post .widget-post-text {
	gap: 6px;
}

.footer .widget-post .widget-post-title,
.footer .widget-post .widget-post-date {
	line-height: 1.45;
	word-break: break-word;
}

@media (max-width: 991.98px) {
	.footer .box-1 {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.footer .row > [class*='col-'] {
		margin-bottom: 22px;
	}

	.footer .row > [class*='col-']:last-child {
		margin-bottom: 0;
	}

	.footer .widget-footer {
		padding: 12px 0;
		gap: 14px;
	}

	.footer .widget-footer .widget-title {
		margin-bottom: 4px;
	}
}

@media (max-width: 575.98px) {
	.footer .row > .col-6,
	.footer .row > .col-lg-3,
	.footer .row > .col-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.footer .box-1 {
		padding-top: 16px;
		padding-bottom: 18px;
	}

	.footer .widget-footer {
		padding: 14px 0;
		gap: 12px;
	}

	.footer .widget-footer .widget-title {
		font-size: 0.78rem;
		margin-bottom: 2px;
	}

	.footer .footer-social ul,
	.footer .footer-links ul {
		gap: 10px;
	}

	.footer .widget-post + .widget-post {
		margin-top: 14px;
		padding-top: 14px;
	}
}
