/**
 * YCP Real Estate — extras for pages built in Elementor.
 * Colours, fonts and spacing are set in Elementor itself; this file only adds the small
 * touches Elementor has no control for (eyebrow line, card hover, sticky sidebars, etc.).
 * First class doubled on purpose so theme resets cannot override it.
 */

/* Eyebrow: short line before small uppercase labels */
.ycp-eyebrow-w.ycp-eyebrow-w .elementor-heading-title { display: inline-flex; align-items: center; gap: 10px; }
.ycp-eyebrow-w.ycp-eyebrow-w .elementor-heading-title::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
.ycp-eyebrow-w--center.ycp-eyebrow-w--center .elementor-heading-title { justify-content: center; }

/* Remove the outer spacing of built-in blocks when they sit inside an Elementor layout */
.ycp-el-bare.ycp-el-bare .ycp-container,
.ycp-bare.ycp-bare .ycp-container,
.ycp-blog--bare.ycp-blog--bare .ycp-container { max-width: none; padding-left: 0; padding-right: 0; }
.ycp-el-bare.ycp-el-bare .ycp-listing { background: none; padding-bottom: 0; }
.ycp-el-bare.ycp-el-bare .ycp-listing__layout { padding-top: 0; }
.ycp-el-bare.ycp-el-bare .ycp-prop-head { padding: 0; }
.ycp-blog--bare.ycp-blog--bare { padding: 0; background: none; }
.ycp-el-post-head.ycp-el-post-head .ycp-crumbs { margin-bottom: 18px; }
.elementor-widget-ycp-property-gallery .ycp-gallery { margin-bottom: 0; }
@media (min-width: 768px) {
	.ycp-gallery.ycp-gallery .ycp-gallery__track { height: var(--ycp-gal-h, clamp(380px, 46vw, 540px)); }
}
@media (max-width: 767px) {
	.elementor-widget-ycp-property-gallery .ycp-gallery { margin-inline: 0; }
	.elementor-widget-ycp-property-gallery .ycp-gallery__track { border-radius: 16px; }
}

/* Message shown only inside the Elementor editor */
.ycp-el-note.ycp-el-note {
	padding: 16px 18px; border: 1px dashed #F5B51B; border-radius: 12px;
	background: #FFFBEB; color: #6B4E00; font: 500 14px/1.5 Inter, system-ui, sans-serif;
}

/* Cards */
.ycp-el-card.ycp-el-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.ycp-el-lift.ycp-el-lift:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(6, 43, 89, .35); border-color: #D4DCE6; }
.ycp-el-card .elementor-icon-box-wrapper { text-align: left; }
@media (prefers-reduced-motion: reduce) { .ycp-el-lift.ycp-el-lift:hover { transform: none; } }

/* Sticky side column (property enquiry card, blog sidebar) on large screens */
@media (min-width: 1025px) {
	.ycp-el-sticky.ycp-el-sticky { position: sticky; top: calc(var(--ycp-header-h, 84px) + 20px); }
}

/* Process steps */
.ycp-el-step.ycp-el-step { position: relative; padding-top: 4px; }
.ycp-step-num.ycp-step-num .elementor-heading-title {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: #fff; color: #DE6F08; border: 2px solid #F58216; box-shadow: 0 8px 20px -10px rgba(245, 130, 22, .6);
}
@media (min-width: 1025px) {
	.ycp-el-steps.ycp-el-steps > .e-con-inner, .ycp-el-steps.ycp-el-steps { position: relative; }
	.ycp-el-step.ycp-el-step:not(:last-child)::after {
		content: ""; position: absolute; top: 30px; left: 64px; right: -16px; height: 2px;
		background: repeating-linear-gradient(90deg, #F5B51B 0 8px, transparent 8px 14px); opacity: .7;
	}
}

/* "25 Years" badge over the About photo */
.ycp-el-photo.ycp-el-photo { position: relative; }
.ycp-xp-badge.ycp-xp-badge {
	position: absolute; right: -18px; bottom: 28px; z-index: 2; width: auto;
	padding: 18px 22px; border-radius: 16px; background: #F58216; box-shadow: 0 18px 40px -16px rgba(245, 130, 22, .7);
}
.ycp-xp-badge.ycp-xp-badge p { margin: 0; display: flex; flex-direction: column; line-height: 1.15; }
.ycp-xp-badge.ycp-xp-badge strong { font-family: Manrope, sans-serif; font-size: 40px; font-weight: 800; line-height: 1; }
.ycp-xp-badge.ycp-xp-badge span { font-size: 13px; font-weight: 600; opacity: .95; }
@media (max-width: 767px) { .ycp-xp-badge.ycp-xp-badge { right: 12px; bottom: 12px; padding: 12px 16px; } .ycp-xp-badge.ycp-xp-badge strong { font-size: 30px; } }

/* Navy panels: soft glow */
.ycp-el-navy-panel.ycp-el-navy-panel { position: relative; overflow: hidden; }
.ycp-el-navy-panel.ycp-el-navy-panel::before {
	content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 130, 22, .28), transparent 65%); pointer-events: none;
}
.ycp-el-navy-panel.ycp-el-navy-panel > * { position: relative; z-index: 1; }
.ycp-el-pagehero.ycp-el-pagehero { position: relative; overflow: hidden; }
.ycp-el-pagehero.ycp-el-pagehero::after {
	content: ""; position: absolute; width: 640px; height: 640px; right: -200px; bottom: -380px; border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 181, 27, .16), transparent 65%); pointer-events: none;
}

/* Founder */
.ycp-el-portrait.ycp-el-portrait { overflow: hidden; }
.ycp-monogram.ycp-monogram .elementor-heading-title {
	display: grid; place-items: center; width: 140px; height: 140px; margin: 0 auto; border-radius: 50%;
	background: linear-gradient(140deg, #062B59, #041D3B); letter-spacing: 2px;
}
.ycp-quote.ycp-quote { padding-left: 18px; border-left: 3px solid #F58216; }
.ycp-quote.ycp-quote p { margin: 0; }

/* Contact details */
.ycp-el-contact-links.ycp-el-contact-links p { margin: 0; }
.ycp-el-contact-links.ycp-el-contact-links a { color: inherit; text-decoration: none; }
.ycp-el-contact-links.ycp-el-contact-links a:hover { color: #DE6F08; }
.ycp-el-map.ycp-el-map iframe { display: block; border-radius: 16px; }

/* Numbered list ("What happens next?") */
.ycp-el-numbered.ycp-el-numbered { list-style: none; margin: 0; padding: 0; counter-reset: ycp; display: grid; gap: 14px; }
.ycp-el-numbered.ycp-el-numbered li { counter-increment: ycp; position: relative; padding-left: 42px; }
.ycp-el-numbered.ycp-el-numbered li::before {
	content: counter(ycp); position: absolute; left: 0; top: 0; display: grid; place-items: center;
	width: 28px; height: 28px; border-radius: 50%; background: #FEF0E3; color: #DE6F08; font: 800 13px/1 Manrope, sans-serif;
}
.ycp-el-numbered.ycp-el-numbered strong { display: block; color: #062B59; font-family: Manrope, sans-serif; }

/* 404 */
.ycp-404-code.ycp-404-code .elementor-heading-title {
	background: linear-gradient(135deg, #062B59, #F58216); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}

/* YCP Form widget: field widths (full, half, third) */
.ycp-elform.ycp-elform .ycp-form__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 18px; }
.ycp-elform.ycp-elform .ycp-field--w100 { grid-column: span 6; }
.ycp-elform.ycp-elform .ycp-field--w50 { grid-column: span 3; }
.ycp-elform.ycp-elform .ycp-field--w33 { grid-column: span 2; }
@media (max-width: 767px) {
	.ycp-elform.ycp-elform .ycp-field--w50,
	.ycp-elform.ycp-elform .ycp-field--w33 { grid-column: span 6; }
}
.ycp-elform.ycp-elform .ycp-form__submit { width: 100%; margin-top: 18px; }
.ycp-elform.ycp-elform .ycp-form__submit--auto { width: auto; }
.ycp-elform--nolabels.ycp-elform--nolabels .ycp-field__label:not(legend) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.ycp-elform__set.ycp-elform__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.ycp-elform.ycp-elform.is-sending { opacity: .75; }

/* Entrance animations must never hide content inside the editor */
.elementor-editor-active [data-ycp-reveal],
.elementor-editor-preview [data-ycp-reveal] { opacity: 1 !important; transform: none !important; }

/* Main wrapper for template-driven pages */
.ycp-el-main.ycp-el-main { display: block; }
