/*
 * Sheetal Metals - "Company Profile" section
 * Markup: inc/sheetal-profile.php  (WPBakery element "Company Profile")
 *
 * Same type and colour system as the rest of the home page: 'Exo' throughout,
 * #f97307 accent, #16243c headings, #5a6577 body. Every colour below comes from
 * a --sm-pf-* custom property the shortcode writes inline from its Design
 * Options, so the CSS never needs editing to recolour the section.
 *
 *   1. Shell + grid
 *   2. Copy
 *   3. Competency list
 *   4. Note, tagline, button
 *   5. Image composition
 *   6. Floating card
 *   7. Responsive
 */

/* ========================================================= 1. Shell + grid */
.sm-prof {
	--sm-pf-accent: #f97307;
	--sm-pf-ink: #16243c;
	--sm-pf-text: #5a6577;
	--sm-pf-eyebrow: #16243c;
	--sm-pf-note: #8a93a3;
	--sm-pf-tagline: #f97307;
	--sm-pf-badge: #ffffff;
	--sm-pf-badge-text: #16243c;
	--sm-pf-badge-ico: #f97307;
	--sm-pf-badge-ico-clr: #ffffff;

	/* photo panel */
	--sm-pf-imgh: 520px;
	--sm-pf-radius: 28px;

	/* set from the "Container width" option */
	--sm-pf-max: 1600px;

	position: relative;
	font-family: 'Exo', sans-serif;
}

.sm-prof-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 70px;
	max-width: var(--sm-pf-max);
	margin-inline: auto;
}

/* Break out of the page container so the background runs edge to edge. Margins
   do the whole job: 50% resolves against the container, so `50% - 50vw` is
   exactly the gap between the container edge and the screen edge. */
.sm-prof--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sm-prof--full .sm-prof-grid {
	padding-inline: 40px;
}

.sm-prof--flip .sm-prof-visual {
	order: -1;
}

/* =============================================================== 2. Copy */
.sm-prof-content {
	min-width: 0;
}

.sm-prof-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
	color: var(--sm-pf-eyebrow);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2.6px;
	text-transform: uppercase;
}

.sm-prof-eyebrow i {
	display: block;
	flex: 0 0 auto;
	width: 34px;
	height: 3px;
	border-radius: 2px;
	background: var(--sm-pf-accent);
}

.sm-prof .sm-prof-title {
	margin: 0 0 20px;
	padding: 0;
	font-family: 'Exo', sans-serif;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--sm-pf-ink);
	text-transform: none;
}

.sm-prof .sm-prof-title span {
	color: var(--sm-pf-accent);
}

.sm-prof-text {
	color: var(--sm-pf-text);
	font-size: 16px;
	line-height: 1.75;
}

.sm-prof-text p {
	margin: 0 0 18px;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.sm-prof-text p:last-child {
	margin-bottom: 0;
}

/* ==================================================== 3. Competency list */
.sm-prof-comp {
	margin-top: 26px;
}

.sm-prof .sm-prof-comp-title {
	margin: 0 0 16px;
	padding: 0;
	font-family: 'Exo', sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sm-pf-ink);
	text-transform: none;
}

.sm-prof-list {
	display: grid;
	gap: 14px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-prof-list--1 { grid-template-columns: minmax(0, 1fr); }
.sm-prof-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-prof-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sm-prof-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	color: var(--sm-pf-text);
	font-size: 15.5px;
	line-height: 1.5;
	list-style: none;
}

/*
 * Round accent bullet. `flex: 0 0 auto` with an explicit width is what keeps it
 * a circle - left to itself a flex child shrinks into an oval as soon as the
 * label beside it wraps to a second line.
 */
.sm-prof-tick {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--sm-pf-accent);
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

/* -- bullet styles, set by the "Bullet style" option ------------------- */

/* Outlined circle: accent ring, accent icon. */
.sm-prof-list--b-outline .sm-prof-tick {
	background: transparent;
	border: 2px solid var(--sm-pf-accent);
	color: var(--sm-pf-accent);
	font-size: 10px;
}

/* Plain: no circle at all, just the accent icon - reads best with an arrow. */
.sm-prof-list--b-plain .sm-prof-tick {
	width: auto;
	min-width: 14px;
	height: auto;
	border-radius: 0;
	background: none;
	color: var(--sm-pf-accent);
	font-size: 17px;
	font-weight: 700;
}

/* Small solid dot, no icon inside. */
.sm-prof-list--b-dot .sm-prof-tick {
	width: 8px;
	height: 8px;
	margin-left: 6px;
	margin-right: 6px;
}

.sm-prof-list li a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.sm-prof-list li a:hover,
.sm-prof-list li a:focus-visible {
	color: var(--sm-pf-accent);
}

/* ========================================== 4. Note, tagline and button */
.sm-prof-note {
	margin: 26px 0 0;
	color: var(--sm-pf-note);
	font-size: 15px;
	line-height: 1.7;
}

.sm-prof-tagline {
	margin: 14px 0 0;
	color: var(--sm-pf-tagline);
	font-size: 16px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.5;
}

.sm-prof-actions {
	margin-top: 28px;
}

/* Shape and size come from the --sm-btn-* tokens in sheetal-custom.css, so
   this matches every other button on the site. */
.sm-prof .sm-prof-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sm-btn-gap);
	padding: var(--sm-btn-pad-y) var(--sm-btn-pad-x);
	border-radius: var(--sm-btn-radius);
	background: var(--sm-pf-accent);
	color: #fff;
	font-size: var(--sm-btn-size);
	font-weight: var(--sm-btn-weight);
	line-height: 1.2;
	letter-spacing: var(--sm-btn-tracking);
	text-decoration: none;
	transition: filter 0.25s ease, box-shadow 0.25s ease;
}

.sm-prof .sm-prof-btn:hover,
.sm-prof .sm-prof-btn:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	box-shadow: var(--sm-btn-shadow-hover);
}

/* Same Font Awesome arrow and the same nudge on hover as the header button. */
.sm-prof-btn i {
	transition: transform 0.25s ease;
}

.sm-prof-btn:hover i {
	transform: translateX(4px);
}

/* ================================================= 5. Image composition */
.sm-prof-visual {
	position: relative;
	min-width: 0;
	/* Room for the frame, dots and card, which all sit outside the photo. */
	padding: 26px 26px 34px;
}

.sm-prof-media {
	position: relative;
	z-index: 2;
	margin: 0;
	overflow: hidden;
	border-radius: var(--sm-pf-radius);
	box-shadow: 0 22px 50px rgba(22, 36, 60, 0.14);
}

.sm-prof-media .sm-prof-img {
	display: block;
	width: 100%;
	height: var(--sm-pf-imgh);
	object-fit: cover;
	object-position: center;
}

/* "Fit" mode: show the picture whole - a collage or a PNG with transparency
   would be wrecked by a crop, so let it size itself. */
.sm-prof--fit .sm-prof-media .sm-prof-img {
	height: auto;
	max-height: var(--sm-pf-imgh);
	object-fit: contain;
}

/*
 * Accent wedge in the far top corner of the photo. The 100% radius on the
 * inner corner is what curves it, so it reads as a swept cut rather than a
 * plain triangle.
 */
.sm-prof-corner {
	position: absolute;
	top: 0;
	right: 0;
	width: 130px;
	height: 130px;
	background: var(--sm-pf-accent);
	border-radius: 0 var(--sm-pf-radius) 0 100%;
}

.sm-prof--flip .sm-prof-corner {
	right: auto;
	left: 0;
	border-radius: var(--sm-pf-radius) 0 100% 0;
}

/* L-frame hugging the opposite corner, sitting behind the photo. */
.sm-prof-frame {
	position: absolute;
	z-index: 1;
	left: 0;
	bottom: 0;
	width: 190px;
	height: 160px;
	border-left: 14px solid var(--sm-pf-accent);
	border-bottom: 14px solid var(--sm-pf-accent);
	border-radius: 0 0 0 var(--sm-pf-radius);
}

.sm-prof--flip .sm-prof-frame {
	left: auto;
	right: 0;
	border-left: 0;
	border-right: 14px solid var(--sm-pf-accent);
	border-radius: 0 0 var(--sm-pf-radius) 0;
}

.sm-prof-dots {
	position: absolute;
	z-index: 0;
	top: 0;
	right: 0;
	width: 96px;
	height: 96px;
	background-image: radial-gradient(circle, rgba(249, 115, 7, 0.42) 2px, transparent 2.1px);
	background-size: 17px 17px;
	pointer-events: none;
}

.sm-prof--flip .sm-prof-dots {
	right: auto;
	left: 0;
}

/* ==================================================== 6. Floating card */
.sm-prof-badge {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: 46px;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 72%;
	padding: 14px 22px 14px 14px;
	border-radius: 14px;
	background: var(--sm-pf-badge);
	color: var(--sm-pf-badge-text);
	box-shadow: 0 16px 38px rgba(22, 36, 60, 0.16);
}

.sm-prof--flip .sm-prof-badge {
	right: auto;
	left: 0;
}

.sm-prof-badge-ico {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--sm-pf-badge-ico);
	color: var(--sm-pf-badge-ico-clr);
	font-size: 24px;
	line-height: 1;
}

.sm-prof-badge-ico img {
	display: block;
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.sm-prof-badge-txt {
	display: block;
	min-width: 0;
}

.sm-prof-badge-l1,
.sm-prof-badge-l2 {
	display: block;
	color: inherit;
	line-height: 1.3;
}

.sm-prof-badge-l1 {
	font-size: 15px;
	font-weight: 400;
}

.sm-prof-badge-l2 {
	font-size: 16px;
	font-weight: 700;
}

/* ========================================================= 7. Responsive */
@media (max-width: 1400px) {
	.sm-prof { --sm-pf-imgh: 470px; }
	.sm-prof-grid { gap: 50px; }
	.sm-prof .sm-prof-title { font-size: 38px; }
}

@media (max-width: 1199px) {
	.sm-prof { --sm-pf-imgh: 420px; }
	.sm-prof-grid { gap: 38px; }
	.sm-prof .sm-prof-title { font-size: 33px; }
	.sm-prof-text { font-size: 15.5px; }
	.sm-prof-corner { width: 100px; height: 100px; }
	.sm-prof-frame { width: 150px; height: 130px; border-width: 11px; }
	.sm-prof-badge { max-width: 84%; }
	.sm-prof--full .sm-prof-grid { padding-inline: 30px; }
}

@media (max-width: 991px) {
	/* Single column: the photo drops under the copy. */
	.sm-prof { --sm-pf-imgh: 400px; }
	.sm-prof-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.sm-prof--flip .sm-prof-visual { order: 0; }
	.sm-prof-dots { display: none; }
}

@media (max-width: 767px) {
	.sm-prof { --sm-pf-imgh: 300px; --sm-pf-radius: 20px; }
	.sm-prof .sm-prof-title { font-size: 28px; }
	.sm-prof-eyebrow { font-size: 12.5px; letter-spacing: 2px; }
	.sm-prof-list--2,
	.sm-prof-list--3 { grid-template-columns: minmax(0, 1fr); }

	.sm-prof-visual { padding: 18px 18px 26px; }
	.sm-prof-corner { width: 78px; height: 78px; }
	.sm-prof-frame { width: 110px; height: 96px; border-width: 9px; }

	/* Sitting the card over a short photo hides too much of it, so let it sit
	   under the picture and run the full width instead. */
	.sm-prof-badge {
		position: static;
		max-width: none;
		margin-top: 16px;
	}

	/* Button sizing at this width comes from the --sm-btn-* tokens, which
	   sheetal-custom.css steps down for every button at once. */
	.sm-prof--full .sm-prof-grid { padding-inline: 18px; }
}
