/* Hypercognito Contact Page Builder — Frontend Styles
   Designed by Hypercognito Computings */

.hcc-cp-root {
	position: relative;
	overflow: hidden;
	padding: 70px 24px;
	background: linear-gradient(135deg, var(--hcc-bg-start), var(--hcc-bg-end));
	color: var(--hcc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	border-radius: 18px;
	isolation: isolate;
}

.hcc-cp-bg-glow {
	position: absolute;
	inset: -20%;
	background:
		radial-gradient(circle at 15% 20%, rgba(var(--hcc-accent-rgb), .18) 0%, transparent 40%),
		radial-gradient(circle at 85% 80%, rgba(var(--hcc-accent-rgb), .12) 0%, transparent 45%);
	pointer-events: none;
	z-index: 0;
}

.hcc-cp-container { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }

/* Header */
.hcc-cp-head { text-align: center; margin-bottom: 46px; }
.hcc-cp-logo { max-height: 72px; margin: 0 auto 18px; display: block; }
.hcc-cp-heading {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	color: var(--hcc-heading);
	margin: 0 0 10px;
	display: inline-block;
	position: relative;
	transition: transform .3s ease, color .3s ease, text-shadow .3s ease;
}
.hcc-cp-subheading { max-width: 620px; margin: 0 auto; opacity: .85; line-height: 1.6; }

/* Heading hover effects (applied to any element with a hcc-hover-* class) */
.hcc-hover-underline { position: relative; }
.hcc-hover-underline::after {
	content: ""; position: absolute; left: 50%; bottom: -6px; height: 3px; width: 0;
	background: var(--hcc-accent); transition: width .35s ease, left .35s ease; border-radius: 2px;
}
.hcc-cp-info-block h4.hcc-hover-underline::after,
.hcc-cp-form h3.hcc-hover-underline::after { left: 0; }
.hcc-hover-underline:hover::after { width: 100%; left: 0; }

.hcc-hover-color:hover { color: var(--hcc-accent); transition: color .25s ease; }
.hcc-hover-scale:hover { transform: scale(1.05); display: inline-block; transition: transform .25s ease; }
.hcc-hover-glow:hover { text-shadow: 0 0 14px rgba(var(--hcc-accent-rgb), .7); transition: text-shadow .3s ease; }

/* Grid layout (base = template 1: split hero) */
.hcc-cp-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.hcc-cp-info { display: flex; flex-direction: column; gap: 18px; }

.hcc-cp-info-block {
	display: flex; gap: 16px; align-items: flex-start;
	background: var(--hcc-card-bg);
	border: 1px solid rgba(255,255,255,.08);
	padding: 20px; border-radius: 14px;
	transition: transform .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hcc-cp-hover-card:hover {
	transform: translateY(-4px);
	border-color: rgba(var(--hcc-accent-rgb), .5);
	box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.hcc-cp-icon {
	flex: none; width: 44px; height: 44px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(var(--hcc-accent-rgb), .2);
	color: var(--hcc-accent); font-size: 20px;
}
.hcc-cp-info-block h4 { margin: 0 0 6px; color: var(--hcc-heading); font-size: 16px; }
.hcc-cp-info-block p { margin: 2px 0; opacity: .9; }
.hcc-cp-info-block a { color: var(--hcc-text); text-decoration: none; }
.hcc-cp-info-block a:hover { color: var(--hcc-accent); }
.hcc-cp-label { opacity: .65; }

.hcc-cp-map-inline, .hcc-cp-map-inline iframe {
	width: 100%; border: 0; border-radius: 14px; min-height: 220px; display: block;
}

/* Form */
.hcc-cp-form-wrap { display: flex; }
.hcc-cp-form {
	width: 100%;
	background: var(--hcc-card-bg);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 18px;
	padding: 32px;
	display: flex; flex-direction: column; gap: 16px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.hcc-cp-form h3 { margin: 0 0 8px; color: var(--hcc-heading); display: inline-block; }
.hcc-cp-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; opacity: .9; }
.hcc-cp-form input, .hcc-cp-form select, .hcc-cp-form textarea {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 10px; padding: 12px 14px; color: #fff; font-size: 15px;
	transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
	font-family: inherit;
}
.hcc-cp-form input::placeholder, .hcc-cp-form textarea::placeholder { color: rgba(255,255,255,.55); }
.hcc-cp-form input:focus, .hcc-cp-form select:focus, .hcc-cp-form textarea:focus {
	outline: none; border-color: var(--hcc-accent);
	box-shadow: 0 0 0 3px rgba(var(--hcc-accent-rgb), .25);
	background: rgba(255,255,255,.12);
}
.hcc-cp-form select option { color: #111; }

.hcc-cp-submit {
	margin-top: 6px; border: none; cursor: pointer;
	background: linear-gradient(135deg, var(--hcc-accent), #0b8f5b);
	color: #06251a; font-weight: 700; font-size: 16px;
	padding: 14px 20px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.hcc-cp-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--hcc-accent-rgb), .45); filter: brightness(1.05); }
.hcc-cp-submit:active { transform: translateY(0); }
.hcc-cp-wa-icon { font-size: 18px; }
.hcc-cp-form-msg { margin: 0; font-size: 14px; min-height: 18px; }
.hcc-cp-form-msg.is-success { color: var(--hcc-accent); }
.hcc-cp-form-msg.is-error { color: #ff8b8b; }

.hcc-cp-credit { text-align: center; margin-top: 46px; font-size: 12px; opacity: .55; letter-spacing: .04em; }

/* ============ CONTACT TEASER SECTION (Home / About pages) ============ */
.hcc-cp-teaser { padding: 64px 24px; text-align: center; }
.hcc-cp-teaser-inner { max-width: 760px; }

.hcc-cp-teaser-tag {
	display: inline-block; margin-bottom: 18px; padding: 8px 20px;
	border: 1px solid rgba(var(--hcc-accent-rgb), .45);
	border-radius: 999px; color: var(--hcc-accent);
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.hcc-cp-teaser-title {
	font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--hcc-heading);
	margin: 0 0 16px; display: inline-block; position: relative;
	transition: transform .3s ease, color .3s ease, text-shadow .3s ease;
}

.hcc-cp-teaser-desc { max-width: 620px; margin: 0 auto 28px; opacity: .85; line-height: 1.7; }

.hcc-cp-teaser-quick { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hcc-cp-teaser-quick a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 20px; border-radius: 999px;
	background: var(--hcc-card-bg); border: 1px solid rgba(255,255,255,.14);
	color: var(--hcc-text); text-decoration: none; font-size: 14px;
	transition: transform .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.hcc-cp-teaser-quick a:hover {
	transform: translateY(-3px);
	border-color: var(--hcc-accent); color: var(--hcc-accent);
	box-shadow: 0 12px 26px rgba(var(--hcc-accent-rgb), .25);
}
.hcc-cp-icon-inline { display: inline-block; }

.hcc-cp-teaser-btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: linear-gradient(135deg, var(--hcc-accent), #0b8f5b);
	color: #06251a; font-weight: 700; font-size: 16px; text-decoration: none;
	padding: 14px 28px; border-radius: 12px;
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.hcc-cp-teaser-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(var(--hcc-accent-rgb), .45);
	filter: brightness(1.05);
	color: #06251a;
}
.hcc-cp-btn-arrow { transition: transform .25s ease; }
.hcc-cp-teaser-btn:hover .hcc-cp-btn-arrow { transform: translateX(4px); }

/* Scroll-in animation (class toggled by frontend.js via IntersectionObserver) */
.hcc-cp-anim { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.hcc-cp-anim-fade-up { transform: translateY(28px); }
.hcc-cp-anim-zoom-in { transform: scale(.88); }
.hcc-cp-anim-slide-left { transform: translateX(-40px); }
.hcc-cp-anim.hcc-cp-inview { opacity: 1; transform: none; }

/* Stagger children slightly for a nicer reveal */
.hcc-cp-teaser-tag.hcc-cp-anim { transition-delay: 0s; }
.hcc-cp-teaser-title.hcc-cp-anim { transition-delay: .08s; }
.hcc-cp-teaser-desc.hcc-cp-anim { transition-delay: .16s; }
.hcc-cp-teaser-quick.hcc-cp-anim { transition-delay: .24s; }
.hcc-cp-teaser-btn.hcc-cp-anim { transition-delay: .32s; }

@media (max-width: 560px) {
	.hcc-cp-teaser { padding: 44px 16px; }
	.hcc-cp-teaser-quick { flex-direction: column; align-items: center; }
}

/* ---- Light mode override for the Contact Teaser section ---- */
.hcc-cp-teaser.hcc-cp-mode-light {
	background: linear-gradient(135deg, #ffffff, #eef1f8);
	color: #565a78;
	border: 1px solid rgba(0,0,0,.06);
}
.hcc-cp-teaser.hcc-cp-mode-light .hcc-cp-bg-glow {
	background:
		radial-gradient(circle at 15% 20%, rgba(var(--hcc-accent-rgb), .10) 0%, transparent 40%),
		radial-gradient(circle at 85% 80%, rgba(var(--hcc-accent-rgb), .08) 0%, transparent 45%);
}
.hcc-cp-teaser.hcc-cp-mode-light .hcc-cp-teaser-tag {
	background: rgba(var(--hcc-accent-rgb), .1);
	border-color: rgba(var(--hcc-accent-rgb), .4);
}
.hcc-cp-teaser.hcc-cp-mode-light .hcc-cp-teaser-title { color: #171933; }
.hcc-cp-teaser.hcc-cp-mode-light .hcc-cp-teaser-desc { color: #5b5f7d; opacity: 1; }
.hcc-cp-teaser.hcc-cp-mode-light .hcc-cp-teaser-quick a {
	background: rgba(0,0,0,.035);
	border: 1px solid rgba(0,0,0,.1);
	color: #33364f;
}
.hcc-cp-teaser.hcc-cp-mode-light .hcc-cp-teaser-quick a:hover {
	border-color: var(--hcc-accent);
	color: var(--hcc-accent);
	box-shadow: 0 12px 26px rgba(var(--hcc-accent-rgb), .18);
}
.hcc-cp-teaser.hcc-cp-mode-light .hcc-cp-teaser-btn { color: #06251a; }
.hcc-cp-teaser.hcc-cp-mode-light .hcc-cp-teaser-btn:hover { color: #06251a; }

/* Logo animations */
.hcc-logo-float { animation: hccFloat 4s ease-in-out infinite; }
@keyframes hccFloat { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.hcc-logo-pulse { animation: hccPulse 2.4s ease-in-out infinite; }
@keyframes hccPulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.08);} }

.hcc-logo-spin { animation: hccSpin 10s linear infinite; }
@keyframes hccSpin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

.hcc-logo-glow { animation: hccGlow 2.6s ease-in-out infinite; }
@keyframes hccGlow {
	0%,100% { filter: drop-shadow(0 0 0 transparent); }
	50% { filter: drop-shadow(0 0 16px var(--hcc-accent)); }
}

/* ============ TEMPLATE VARIANTS ============ */

/* Template 1: Split Hero (default grid above already matches this) */
.hcc-tpl-1 .hcc-cp-head { text-align: left; max-width: 640px; }
.hcc-tpl-1 .hcc-cp-heading::after,
.hcc-tpl-1 .hcc-cp-subheading { margin-left: 0; }
.hcc-tpl-1.hcc-form-pos-left .hcc-cp-grid { direction: rtl; }
.hcc-tpl-1.hcc-form-pos-left .hcc-cp-grid > * { direction: ltr; }
.hcc-tpl-1.hcc-form-pos-center .hcc-cp-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.hcc-tpl-1.hcc-form-pos-center .hcc-cp-info { display: none; }

/* Template 2: Card Grid — info cards in a row above a centered form */
.hcc-tpl-2 .hcc-cp-grid { grid-template-columns: 1fr; }
.hcc-tpl-2 .hcc-cp-info { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.hcc-tpl-2 .hcc-cp-info-block { flex: 1 1 260px; flex-direction: column; text-align: center; align-items: center; }
.hcc-tpl-2 .hcc-cp-map-inline { flex: 1 1 100%; }
.hcc-tpl-2 .hcc-cp-form-wrap { max-width: 640px; margin: 0 auto; width: 100%; }

/* Template 3: Map Backdrop — full bleed map behind a floating glass form.
   The map is decorative scenery only: it must sit far behind a strongly
   opaque, blurred overlay and an opaque form/info panel so text and pins
   never compete with the content. */
.hcc-tpl-3 { padding-top: 0; padding-bottom: 0; min-height: 640px; display: flex; align-items: center; border-radius: 18px; }
.hcc-cp-map-backdrop {
	position: absolute; inset: 0; z-index: 0; overflow: hidden;
	pointer-events: none;
}
.hcc-cp-map-backdrop iframe {
	width: 100%; height: 100%; border: 0;
	filter: grayscale(.55) contrast(1.05) brightness(.75);
	pointer-events: none;
}
.hcc-tpl-3 .hcc-cp-bg-glow {
	inset: 0; z-index: 1;
	background: linear-gradient(
		135deg,
		rgba(var(--hcc-bg-start-rgb), .92),
		rgba(var(--hcc-bg-end-rgb), .85)
	);
}
.hcc-tpl-3 .hcc-cp-container { padding: 70px 0; }
.hcc-tpl-3 .hcc-cp-grid { grid-template-columns: .9fr 1.1fr; align-items: center; }
.hcc-tpl-3 .hcc-cp-map-inline { display: none; }
.hcc-tpl-3 .hcc-cp-info-block {
	background: rgba(var(--hcc-bg-start-rgb), .55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.hcc-tpl-3 .hcc-cp-form {
	background: rgba(var(--hcc-bg-start-rgb), .65);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 30px 60px rgba(0,0,0,.4);
}

/* Template 4: Sidebar Info — sticky dark sidebar, wide form */
.hcc-tpl-4 .hcc-cp-grid { grid-template-columns: 320px 1fr; }
.hcc-tpl-4 .hcc-cp-info {
	background: rgba(0,0,0,.18); border-radius: 18px; padding: 24px; position: sticky; top: 20px;
	border: 1px solid rgba(255,255,255,.08);
}
.hcc-tpl-4 .hcc-cp-info-block { background: transparent; border: none; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
.hcc-tpl-4 .hcc-cp-info-block:last-child { border-bottom: none; }
.hcc-tpl-4 .hcc-cp-hover-card:hover { transform: translateX(6px); box-shadow: none; }
.hcc-tpl-4.hcc-form-pos-left .hcc-cp-grid { grid-template-columns: 1fr 320px; }
.hcc-tpl-4.hcc-form-pos-left .hcc-cp-info { order: 2; }
.hcc-tpl-4.hcc-form-pos-left .hcc-cp-form-wrap { order: 1; }

/* Template 5: Minimal Glass — single centered card, no side info panel (info shown compact inline) */
.hcc-tpl-5 { padding-top: 90px; padding-bottom: 90px; }
.hcc-tpl-5 .hcc-cp-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
.hcc-tpl-5 .hcc-cp-info { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 8px; }
.hcc-tpl-5 .hcc-cp-info-block { flex: 1 1 auto; background: transparent; border: none; padding: 6px 14px; align-items: center; }
.hcc-tpl-5 .hcc-cp-icon { width: 34px; height: 34px; font-size: 16px; }
.hcc-tpl-5 .hcc-cp-info-block h4 { display: none; }
.hcc-tpl-5 .hcc-cp-map-inline { display: none; }
.hcc-tpl-5 .hcc-cp-form { border-radius: 24px; box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.hcc-tpl-5 .hcc-cp-head { margin-bottom: 30px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
	.hcc-cp-grid, .hcc-tpl-3 .hcc-cp-grid, .hcc-tpl-4 .hcc-cp-grid { grid-template-columns: 1fr !important; }
	.hcc-tpl-4 .hcc-cp-info { position: static; }
	.hcc-tpl-1 .hcc-cp-head { text-align: center; margin: 0 auto 40px; }
	.hcc-tpl-4.hcc-form-pos-left .hcc-cp-info,
	.hcc-tpl-4.hcc-form-pos-left .hcc-cp-form-wrap { order: initial; }
}

@media (max-width: 560px) {
	.hcc-cp-root { padding: 44px 16px; border-radius: 12px; }
	.hcc-cp-form { padding: 22px; }
	.hcc-tpl-2 .hcc-cp-info { flex-direction: column; }
	.hcc-tpl-5 .hcc-cp-info { flex-direction: column; align-items: flex-start; }
}
