/* CRN Layanan — category grid, breadcrumb and service content. */

/* ---------- Category grid (same card as the homepage services grid) ---------- */
.crn-lk-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.crn-lk-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 467px;
	overflow: hidden;
	background: #B9C4CF;
	color: #FFFFFF;
	text-decoration: none;
}
.crn-lk-card .crn-lk-card__img {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	max-width: none;
	height: 100% !important; /* beats Elementor's `.elementor img { height: auto }` */
	object-fit: cover;
	transition: transform .6s ease;
	will-change: transform;
}
/* Hover (Figma prototype): the photo zooms in and turns slightly to the left. */
@media (hover: hover) {
	.crn-lk-card:hover .crn-lk-card__img { transform: scale(1.15) rotate(-4deg); }
}
.crn-lk-card:focus-visible .crn-lk-card__img { transform: scale(1.15) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) {
	.crn-lk-card .crn-lk-card__img { transition: none; }
}
.crn-lk-card:focus-visible { outline: 3px solid #00C1B2; outline-offset: 3px; }
.crn-lk-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: 16px 0 0 16px;
	background: rgba(70, 70, 70, .55);
	color: #FFFFFF;
	font-size: 34px;
	line-height: 1;
}
.crn-lk-card__icon svg { width: 34px; height: 34px; fill: #FFFFFF; }
.crn-lk-card__icon i { color: #FFFFFF; }
.crn-lk-card__icon .crn-lk-card__icon-img { width: 40px; height: 40px; object-fit: contain; }
.crn-lk-card__title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 91px;
	padding: 16px 20px;
	background: rgba(55, 55, 55, .62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.crn-lk-card__title h3 {
	margin: 0;
	color: #FFFFFF;
	font-family: "DM Sans", sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
}
.crn-lk-empty { text-align: center; color: #6B7280; }

@media (max-width: 1024px) {
	.crn-lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.crn-lk-card { min-height: 420px; }
}
@media (max-width: 767px) {
	.crn-lk-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.crn-lk-card { min-height: 380px; }
	.crn-lk-card__title h3 { font-size: 20px; }
}

/* ---------- Breadcrumb ---------- */
.crn-breadcrumb p {
	margin: 0;
	color: #4B5563;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	line-height: 1.5;
}
.crn-breadcrumb a { color: #4B5563; text-decoration: none; transition: color .2s; }
.crn-breadcrumb a:hover { color: #1F3765; }
.crn-breadcrumb .crn-sep { margin: 0 2px; }
.crn-breadcrumb .crn-current { color: #00C1B2; font-weight: 600; }

/* ---------- Service detail content (post content written in the block editor) ---------- */
.crn-layanan-content {
	color: #3A3A3A;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	line-height: 1.75;
}
.crn-layanan-content p { margin: 0 0 16px; text-align: justify; }
.crn-layanan-content h2,
.crn-layanan-content h3,
.crn-layanan-content h4 {
	margin: 32px 0 12px;
	color: #191919;
	font-family: "DM Sans", sans-serif;
	font-weight: 700;
	line-height: 1.35;
}
.crn-layanan-content h2 { font-size: 22px; }
.crn-layanan-content h3 { font-size: 19px; }
.crn-layanan-content h4 { font-size: 17px; }
.crn-layanan-content > :first-child,
.crn-layanan-content .elementor-widget-container > :first-child { margin-top: 0; }
.crn-layanan-content ul,
.crn-layanan-content ol { margin: 0 0 16px; padding-left: 22px; }
.crn-layanan-content li { margin-bottom: 6px; }
.crn-layanan-content li::marker { color: #1F3765; }
.crn-layanan-content a { color: #1F3765; text-decoration: underline; text-underline-offset: 3px; }
.crn-layanan-content img { display: block; max-width: 100%; height: auto; }
.crn-layanan-content figure { margin: 0 0 20px; }
.crn-layanan-content figure.wp-block-image { position: relative; }
.crn-layanan-content figcaption {
	margin-top: 8px;
	color: #6B7280;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}
/* Captions laid over the photo (e.g. "Verticality Test, Site: Bandung"). */
.crn-layanan-content .is-style-crn-caption-overlay figcaption {
	position: absolute;
	left: 0;
	bottom: 0;
	margin: 0;
	padding: 10px 14px;
	color: #FFFFFF;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
	width: 100%;
}
.crn-layanan-content .wp-block-columns {
	display: flex;
	flex-wrap: nowrap;
	gap: 32px;
	align-items: flex-start;
	margin: 0 0 24px;
}
.crn-layanan-content .wp-block-columns.are-vertically-aligned-center { align-items: center; }
.crn-layanan-content .wp-block-column { flex: 1 1 0; min-width: 0; }
.crn-layanan-content .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
.crn-layanan-content .wp-block-column > :last-child { margin-bottom: 0; }
.crn-layanan-content .wp-block-image img { width: 100%; object-fit: cover; }
.crn-layanan-content .wp-block-image.is-contain img { object-fit: contain; }
.crn-layanan-content .wp-block-gallery,
.crn-layanan-content .crn-photo-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 8px 0 24px;
}
/* Photos side by side share one height. */
.crn-layanan-content .wp-block-columns .wp-block-image img,
.crn-layanan-content .crn-photo-row img { aspect-ratio: 4 / 3; }

@media (max-width: 767px) {
	.crn-layanan-content { font-size: 15px; }
	/* Justified text leaves wide word gaps on narrow screens. */
	.crn-layanan-content p { text-align: left; }
	.crn-layanan-content .wp-block-columns { flex-direction: column; gap: 20px; }
	.crn-layanan-content .wp-block-column { flex-basis: auto !important; width: 100%; }
	.crn-layanan-content .wp-block-gallery,
	.crn-layanan-content .crn-photo-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* =====================================================================
   Service detail content (from the client's detail document)
   ===================================================================== */
.crn-layanan-content .crn-sec { margin: 0 0 56px; padding: 0; }
.crn-layanan-content .crn-sec:last-child { margin-bottom: 0; }
.crn-layanan-content .crn-sec > :first-child { margin-top: 0; }
.crn-layanan-content h2.crn-sec__title {
	position: relative;
	margin: 0 0 24px;
	padding-bottom: 14px;
	color: #191919;
	font-size: 26px;
	line-height: 1.3;
}
.crn-layanan-content h2.crn-sec__title::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: #00C1B2;
}
.crn-layanan-content .crn-sec--detail h3 { margin-top: 28px; color: #1F3765; }
.crn-layanan-content .crn-sec p strong { color: #191919; }

/* Bullets with a teal dot */
.crn-layanan-content ul.crn-bullets { margin: 0 0 20px; padding: 0; list-style: none; }
.crn-layanan-content ul.crn-bullets li { position: relative; margin: 0 0 10px; padding-left: 22px; }
.crn-layanan-content ul.crn-bullets li::before {
	content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: #00C1B2;
}

/* Numbered step cards */
.crn-steps { counter-reset: crn-step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px !important; padding: 0 !important; list-style: none; }
.crn-steps li {
	counter-increment: crn-step;
	position: relative; display: flex; flex-direction: column; gap: 6px;
	margin: 0 !important; padding: 22px 22px 22px 74px;
	border: 1px solid #E3E8F0; border-radius: 10px; background: #FFFFFF;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.crn-steps li::marker { content: none; }
.crn-steps li::before {
	content: counter(crn-step, decimal-leading-zero);
	position: absolute; left: 20px; top: 20px;
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 8px;
	background: #E4EDFC; color: #1F3765; font-weight: 700; font-size: 14px; line-height: 1;
	transition: background-color .25s ease, color .25s ease;
}
@media (hover: hover) {
	.crn-steps li:hover { border-color: #00C1B2; box-shadow: 0 10px 26px rgba(15, 40, 80, .08); transform: translateY(-2px); }
	.crn-steps li:hover::before { background: #00C1B2; color: #FFFFFF; }
}
.crn-steps li strong { color: #191919; font-size: 16px; line-height: 1.4; }
.crn-steps li span { color: #4B5563; font-size: 14.5px; line-height: 1.65; text-align: left; }
.crn-steps li:only-child, .crn-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Output checklist box */
.crn-layanan-content .crn-sec--output {
	padding: 32px 36px; border-radius: 14px; background: #F2F6FD; border: 1px solid #E1E9F7;
}
.crn-layanan-content .crn-sec--output h2.crn-sec__title { margin-bottom: 20px; }
.crn-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0 0 16px !important; padding: 0 !important; list-style: none; }
.crn-checklist:last-child { margin-bottom: 0 !important; }
.crn-checklist li { position: relative; margin: 0 !important; padding-left: 32px; line-height: 1.6; }
.crn-checklist li::marker { content: none; }
.crn-checklist li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
	background: #00C1B2 no-repeat center / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.crn-layanan-content .crn-sec--output p { margin: 8px 0 12px; }

/* =====================================================================
   Category sections: introduction, general steps, why-us + CTA
   ===================================================================== */
.crn-lx { padding: 64px 20px; font-family: "DM Sans", sans-serif; }
.crn-lx__inner { width: 100%; max-width: 1280px; margin: 0 auto; }
.crn-lx--intro { padding-bottom: 8px; }
.crn-lx__prose > p:first-child { font-size: 17px; color: #191919; }
.crn-lx__prose h3 { margin: 28px 0 12px; color: #1F3765; font-size: 20px; }
.crn-lx--steps { background: #F4F7FC; }
.crn-lx__title { margin: 0 0 28px; color: #191919; font-size: 28px; font-weight: 700; line-height: 1.3; text-align: center; }
.crn-steps--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crn-steps--grid li:last-child:nth-child(odd) { grid-column: auto; }

.crn-lx--why { padding-top: 0; }
.crn-lx--steps + .crn-lx--why { padding-top: 64px; }
.crn-why {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: center;
	padding: 48px 52px; border-radius: 16px; background: #1F3765; color: #FFFFFF;
}
.crn-why::after {
	content: ""; position: absolute; right: -80px; top: -80px; z-index: -1; width: 320px; height: 320px; border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 193, 178, .28), rgba(0, 193, 178, 0) 70%);
}
.crn-why__title { margin: 0 0 22px; color: #FFFFFF; font-size: 26px; font-weight: 700; line-height: 1.3; }
.crn-why__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.crn-why__list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: rgba(255, 255, 255, .92); font-size: 15px; line-height: 1.55; }
.crn-why__ico { flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #00C1B2; color: #FFFFFF; }
.crn-why__ico svg { width: 13px; height: 13px; }
.crn-why__cta { padding: 28px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.crn-why__cta-text { margin: 0 0 18px; color: #FFFFFF; font-size: 18px; font-weight: 600; line-height: 1.45; }
.crn-why__btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 8px;
	background: #00C1B2; color: #FFFFFF !important; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none;
	transition: background-color .25s ease, transform .25s ease;
}
.crn-why__btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.crn-why__btn:hover { background: #00A396; }
.crn-why__btn:hover svg { transform: translateX(4px); }
.crn-why__btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

@media (max-width: 1024px) {
	.crn-steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.crn-why { grid-template-columns: minmax(0, 1fr); padding: 40px 36px; gap: 28px; }
}
@media (max-width: 767px) {
	.crn-layanan-content .crn-sec { margin-bottom: 40px; }
	.crn-layanan-content h2.crn-sec__title { font-size: 22px; }
	.crn-steps, .crn-steps--grid, .crn-checklist { grid-template-columns: minmax(0, 1fr); }
	.crn-steps li { padding: 18px 18px 18px 66px; }
	.crn-steps li::before { left: 16px; top: 18px; width: 34px; height: 34px; }
	.crn-layanan-content .crn-sec--output { padding: 24px 20px; }
	.crn-lx { padding: 48px 20px; }
	.crn-lx--intro { padding-bottom: 0; }
	.crn-lx__title { font-size: 23px; }
	.crn-why { padding: 32px 22px; }
	.crn-why__title { font-size: 22px; }
	.crn-why__btn { width: 100%; justify-content: center; }
}

/* WordPress gives constrained groups a ~800px content width; service content uses the full 1280px column. */
.crn-layanan-content .wp-block-group.crn-sec > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Related-services carousel: a single related card keeps the normal card width instead of filling the row. */
.crn-layanan-related .swiper-slide { max-width: calc((100% - 48px) / 3); }
@media (max-width: 1024px) { .crn-layanan-related .swiper-slide { max-width: calc((100% - 24px) / 2); } }
@media (max-width: 767px) { .crn-layanan-related .swiper-slide { max-width: none; } }

/* =====================================================================
   WhatsApp CTA banner under the category's service cards
   ===================================================================== */
.crn-lx--cta { padding-top: 0; padding-bottom: 72px; }
.crn-cta {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	min-height: 300px; padding: 56px 32px; text-align: center; border-radius: 4px;
	background-color: #1F3765; background-position: center center; background-size: cover; background-repeat: no-repeat;
}
.crn-cta::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(10, 22, 40, .58), rgba(10, 22, 40, .72));
}
.crn-cta__title { margin: 0; color: #FFFFFF; font-size: 28px; font-weight: 700; line-height: 1.3; }
.crn-cta__text { max-width: 760px; margin: 0; color: rgba(255, 255, 255, .92); font-size: 16px; line-height: 1.6; }
.crn-cta__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	margin-top: 18px; padding: 14px 26px; border-radius: 6px;
	background: #1F3765; color: #FFFFFF !important; font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
	transition: background-color .25s ease, transform .3s ease, box-shadow .25s ease;
}
.crn-cta__btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
@media (hover: hover) and (pointer: fine) {
	.crn-cta__btn:hover { background: #00C1B2; transform: scale(1.05); box-shadow: 0 12px 28px rgba(0, 193, 178, .35); }
}
.crn-cta__btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
@media (max-width: 767px) {
	.crn-lx--cta { padding-bottom: 48px; }
	.crn-cta { min-height: 0; padding: 40px 22px; }
	.crn-cta__title { font-size: 22px; }
	.crn-cta__text { font-size: 15px; }
	.crn-cta__btn { width: 100%; }
}

/* =====================================================================
   Service detail: second section with a photo on the right (mirrors the first section)
   ===================================================================== */
.crn-layanan-content .crn-sec--media {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
	column-gap: 40px;
	align-items: center;
}
.crn-layanan-content .wp-block-group.crn-sec--media > .crn-sec__body { min-width: 0; }
.crn-layanan-content .crn-sec__body > :first-child { margin-top: 0; }
.crn-layanan-content .crn-sec__body > :last-child { margin-bottom: 0; }
.crn-layanan-content .crn-sec__media {
	position: sticky;
	top: 120px;
	align-self: start;
	margin: 0;
	overflow: hidden;
	height: 380px;
	background: #C9D6E2;
}
.crn-layanan-content .crn-sec__media img.crn-sec__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100% !important;
	object-fit: cover;
}
/* Short text: keep the text vertically centred next to the photo instead of the photo sticking. */
/* Short text (one or two paragraphs): shown as a highlighted note, centred next to the photo. */
.crn-layanan-content .crn-sec--media:not(:has(> .crn-sec__body > :nth-child(3))) .crn-sec__media { position: static; align-self: center; }
.crn-layanan-content .crn-sec--media:not(:has(> .crn-sec__body > :nth-child(3))) > .crn-sec__body {
	padding: 32px 36px; border-left: 4px solid #00C1B2; border-radius: 0 12px 12px 0; background: #F2F6FD;
}
.crn-layanan-content .crn-sec--media:not(:has(> .crn-sec__body > :nth-child(3))) > .crn-sec__body p { font-size: 16px; color: #191919; }
@media (max-width: 1024px) {
	.crn-layanan-content .crn-sec--media { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
	.crn-layanan-content .crn-sec__media { order: -1; position: static; height: 400px; }
}
@media (max-width: 767px) {
	.crn-layanan-content .crn-sec__media { height: 240px; }
	.crn-layanan-content .crn-sec--media:not(:has(> .crn-sec__body > :nth-child(3))) > .crn-sec__body { padding: 22px 20px; }
}
