/* Sarmed Contracting – shared V4 page helpers (home redesign and future pages). */

/* Gold Playfair accent: wrap words in <em> inside any element with global class sc-accent */
.sc-accent em {
	font-family: "Playfair Display", Georgia, serif;
	font-style: italic;
	font-weight: 600;
	color: #C79F40;
	letter-spacing: 0;
}

/* Hero background video (e-youtube with global class sc-hero-video).
   Sized with container query units so it always covers the hero box,
   whatever its height (portrait phones included). */
.sc-hero-video {
	position: absolute !important;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
	aspect-ratio: auto !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	container-type: size;
}
.sc-hero-video iframe,
.sc-hero-video > div,
.sc-hero-video video {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: max(100cqw, 177.78cqh) !important;
	height: max(100cqh, 56.25cqw) !important;
	max-width: none !important;
	transform: translate(-50%, -50%) scale(1.08);
	border: 0;
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	.sc-hero-video { display: none !important; }
}
/* Inline links inside lead paragraphs */
.sc-lead a {
	color: #121212;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: #C79F40;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.sc-lead a:hover { color: #B8892A; }

/* FAQ accordion (e-accordion with global class sc-faq): gold plus/close indicator */
.sc-faq details > summary { position: relative; list-style: none; padding-inline-end: 64px !important; }
.sc-faq details > summary::-webkit-details-marker { display: none; }
.sc-faq details > summary::after {
	content: "";
	position: absolute;
	inset-inline-end: 22px;
	top: 50%;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	border-radius: 50%;
	background: #F6EFDF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat;
	transition: transform .25s ease, background-color .25s ease;
}
.sc-faq details[open] > summary::after { transform: rotate(45deg); background-color: #C79F40; }
.sc-faq details[open] { border-color: #C79F40 !important; }
.sc-faq .e-accordion-item-icon, .sc-faq [class*="accordion-item-icon"] { display: none !important; }

/* Scroll-snap carousel: .sc-carousel-wrap > (.sc-car-prev/.sc-car-next buttons) + .sc-carousel track of cards */
.sc-carousel {
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-block-end: 6px !important;
}
.sc-carousel::-webkit-scrollbar { display: none; }
.sc-carousel > * {
	flex: 0 0 calc((100% - 36px) / 3);
	min-width: 0;
	scroll-snap-align: start;
}
@media (max-width: 1024px) { .sc-carousel > * { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 767px) { .sc-carousel > * { flex-basis: 84%; } }
.sc-car-prev, .sc-car-next { cursor: pointer; display: inline-grid !important; place-items: center; }
.sc-car-prev[disabled], .sc-car-next[disabled] { opacity: .35; cursor: default; pointer-events: none; }
@media (max-width: 767px) { .sc-car-prev, .sc-car-next { width: 42px !important; height: 42px !important; } }

/* ---------- Animated tabs (.sc-tabwrap > .sc-tablist .sc-tab-btn + .sc-tab-panels .sc-tab-panel) ---------- */
.sc-tab-btn { font: inherit; }
.sc-tabwrap.is-ready .sc-tab-panel { display: none !important; }
.sc-tabwrap.is-ready .sc-tab-panel.is-active { display: grid !important; animation: scPanelIn .65s cubic-bezier(.2,.7,.2,1) both; }
.sc-tab-panel.is-active img { animation: scImgIn 1.4s cubic-bezier(.2,.7,.2,1) both; }
.sc-tab-panel.is-active > :last-child > * { animation: scRise .7s cubic-bezier(.2,.7,.2,1) both; }
.sc-tab-panel.is-active > :last-child > :nth-child(2) { animation-delay: .08s; }
.sc-tab-panel.is-active > :last-child > :nth-child(3) { animation-delay: .16s; }
.sc-tab-panel.is-active > :last-child > :nth-child(4) { animation-delay: .24s; }
@keyframes scPanelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scImgIn { from { transform: scale(1.1); filter: saturate(.5) brightness(.85); } to { transform: scale(1); filter: none; } }
@keyframes scRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sc-tab-btn.is-active {
	background-color: #121212 !important;
	border-color: #121212 !important;
	box-shadow: 0 24px 48px -24px rgba(18,18,18,.55);
	transform: translateX(8px);
}
.sc-tab-btn.is-active .sc-tab-t { color: #fff !important; }
.sc-tab-btn.is-active .sc-tab-s { color: rgba(255,255,255,.65) !important; }
.sc-tab-btn:focus-visible { outline: 3px solid #C79F40; outline-offset: 3px; }
.sc-tab-btn .sc-tab-progress { width: 0; }
.sc-tabwrap.in-view.is-auto .sc-tab-btn.is-active .sc-tab-progress { animation: scTabProg var(--sc-tab-dur, 7s) linear forwards; }
.sc-tabwrap.is-auto:hover .sc-tab-btn.is-active .sc-tab-progress,
.sc-tabwrap.is-auto:focus-within .sc-tab-btn.is-active .sc-tab-progress { animation-play-state: paused; }
@keyframes scTabProg { from { width: 0; } to { width: 100%; } }
@media (max-width: 1024px) {
	.sc-tab-btn.is-active { transform: none; }
	.sc-tablist { scrollbar-width: none; scroll-snap-type: x mandatory; }
	.sc-tablist::-webkit-scrollbar { display: none; }
	.sc-tab-btn { scroll-snap-align: start; flex: 0 0 auto; }
}

/* Gold tick list (.sc-tick) */
.sc-tick::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .15em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #C79F40 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Building cards: slow zoom on hover */
.sc-bcard .sc-bcard-img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.sc-bcard:hover .sc-bcard-img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
	.sc-tab-panel.is-active, .sc-tab-panel.is-active img, .sc-tab-panel.is-active > :last-child > * { animation: none !important; }
	.sc-bcard:hover .sc-bcard-img { transform: none; }
}

/* Tabs on tablet/mobile: all three tabs always visible as an equal-width row (no hidden tabs). The panel can be swiped left/right to change tab. */
@media (max-width: 1024px) {
	.sc-tablist { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible !important; }
	.sc-tablist > .sc-tab-btn { flex: none !important; min-width: 0 !important; }
}
@media (max-width: 767px) {
	.sc-tablist { gap: 8px !important; }
	.sc-tablist > .sc-tab-btn { padding: 12px 8px 14px !important; align-items: center; text-align: center !important; border-radius: 14px !important; }
	.sc-tablist .sc-tab-s { display: none !important; }
	.sc-tablist .sc-tab-t { font-size: 14px !important; line-height: 1.25 !important; }
	.sc-tablist .sc-tab-n { font-size: 11px !important; }
	.sc-tab-panels { touch-action: pan-y; }
}


/* Home: white page background so the framed hero sits on white */
body.home,
body:has(.elementor.elementor-10),
body:has(.elementor.elementor-3195),
body.single-project:has(.elementor-4347),
body:has(.elementor.elementor-596),
body:has(.elementor.elementor-4596),
body:has(.elementor.elementor-590),
body:has(.elementor.elementor-4574),
body:has(.elementor.elementor-4564) { background-color: #FFFFFF; }

/* Header V4 sticky */
.elementor-location-header.elementor-4592{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:999;}
