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

   THEMING: PHP prints two palettes per section as --hcc-d-* (dark) and --hcc-l-* (light).
   [data-mode="light|dark"] on the root decides which palette feeds the working --hcc-* tokens.
   Any of these can be overridden from your own theme CSS, e.g.:
     .hcc-cp-root { --hcc-l-accent: #ff6600; }
*/

/* ---------- Palette mapping ---------- */
.hcc-cp-root {
	--hcc-bg1: var(--hcc-l-bg1);        --hcc-bg2: var(--hcc-l-bg2);
	--hcc-heading: var(--hcc-l-heading); --hcc-text: var(--hcc-l-text);
	--hcc-accent: var(--hcc-l-accent);   --hcc-accent2: var(--hcc-l-accent2);
	--hcc-accent-deep: var(--hcc-l-accent-deep); --hcc-on-accent: var(--hcc-l-on-accent);
	--hcc-bg1-rgb: var(--hcc-l-bg1-rgb); --hcc-bg2-rgb: var(--hcc-l-bg2-rgb);
	--hcc-accent-rgb: var(--hcc-l-accent-rgb); --hcc-accent2-rgb: var(--hcc-l-accent2-rgb);

	/* surfaces (light) */
	--hcc-card: rgba(255, 255, 255, .8);
	--hcc-line: rgba(18, 22, 58, .11);
	--hcc-input: rgba(18, 22, 58, .035);
	--hcc-shadow: 0 18px 44px rgba(18, 22, 58, .10);
	--hcc-opt-bg: #ffffff; --hcc-opt-fg: #12163a;
	--hcc-orb-op: .32;
	color-scheme: light;
}
.hcc-cp-root[data-mode="dark"] {
	--hcc-bg1: var(--hcc-d-bg1);        --hcc-bg2: var(--hcc-d-bg2);
	--hcc-heading: var(--hcc-d-heading); --hcc-text: var(--hcc-d-text);
	--hcc-accent: var(--hcc-d-accent);   --hcc-accent2: var(--hcc-d-accent2);
	--hcc-accent-deep: var(--hcc-d-accent-deep); --hcc-on-accent: var(--hcc-d-on-accent);
	--hcc-bg1-rgb: var(--hcc-d-bg1-rgb); --hcc-bg2-rgb: var(--hcc-d-bg2-rgb);
	--hcc-accent-rgb: var(--hcc-d-accent-rgb); --hcc-accent2-rgb: var(--hcc-d-accent2-rgb);

	--hcc-card: rgba(255, 255, 255, .06);
	--hcc-line: rgba(255, 255, 255, .13);
	--hcc-input: rgba(255, 255, 255, .07);
	--hcc-shadow: 0 22px 54px rgba(0, 0, 0, .38);
	--hcc-opt-bg: #14183a; --hcc-opt-fg: #ffffff;
	--hcc-orb-op: .42;
	color-scheme: dark;
}

/* ---------- Root ---------- */
.hcc-cp-root {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 80px 24px;
	border-radius: 22px;
	color: var(--hcc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.55;
	box-sizing: border-box;
	transition: color .45s ease;
}
.hcc-cp-root *, .hcc-cp-root *::before, .hcc-cp-root *::after { box-sizing: border-box; }
.hcc-cp-container { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }

/* ---------- Background: cross-fading dark/light layers + orbs + dot grid ---------- */
.hcc-cp-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hcc-layer { position: absolute; inset: 0; transition: opacity .6s ease; }
.hcc-layer-light { background: linear-gradient(135deg, var(--hcc-l-bg1), var(--hcc-l-bg2)); opacity: 1; }
.hcc-layer-dark  { background: linear-gradient(135deg, var(--hcc-d-bg1), var(--hcc-d-bg2)); opacity: 0; }
.hcc-cp-root[data-mode="dark"] .hcc-layer-dark  { opacity: 1; }
.hcc-cp-root[data-mode="dark"] .hcc-layer-light { opacity: 0; }

.hcc-orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: var(--hcc-orb-op); transition: opacity .6s ease; will-change: transform; }
.hcc-orb-1 { width: 420px; height: 420px; top: -140px; left: -110px; background: rgba(var(--hcc-accent-rgb), 1); animation: hccDrift1 16s ease-in-out infinite alternate; }
.hcc-orb-2 { width: 480px; height: 480px; bottom: -190px; right: -120px; background: rgba(var(--hcc-accent2-rgb), 1); animation: hccDrift2 19s ease-in-out infinite alternate; }
.hcc-orb-3 { width: 240px; height: 240px; top: 38%; left: 52%; background: rgba(var(--hcc-accent-rgb), 1); opacity: calc(var(--hcc-orb-op) * .55); animation: hccDrift3 23s ease-in-out infinite alternate; }
@keyframes hccDrift1 { to { transform: translate(120px, 70px) scale(1.12); } }
@keyframes hccDrift2 { to { transform: translate(-110px, -60px) scale(1.08); } }
@keyframes hccDrift3 { to { transform: translate(-160px, 90px) scale(.85); } }

.hcc-grid {
	position: absolute; inset: 0; opacity: .55;
	background-image: radial-gradient(rgba(var(--hcc-accent2-rgb), .28) 1px, transparent 1.3px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
	        mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}
.hcc-cp-root[data-effects="off"] .hcc-orb { animation: none; }

/* ---------- Dark / Light switch ---------- */
.hcc-toggle {
	position: absolute; top: 18px; right: 18px; z-index: 6;
	background: none; border: 0; padding: 4px; margin: 0; cursor: pointer; border-radius: 999px; line-height: 0;
}
.hcc-toggle:focus-visible { outline: 2px solid var(--hcc-accent); outline-offset: 2px; }
.hcc-toggle-track {
	position: relative; display: block; width: 62px; height: 32px; border-radius: 999px;
	background: var(--hcc-card); border: 1px solid var(--hcc-line);
	box-shadow: var(--hcc-shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	transition: background .4s ease, border-color .4s ease;
}
.hcc-toggle:hover .hcc-toggle-track { border-color: var(--hcc-accent); }
.hcc-toggle-knob {
	position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
	background: linear-gradient(135deg, var(--hcc-accent), var(--hcc-accent-deep));
	box-shadow: 0 4px 12px rgba(var(--hcc-accent-rgb), .5);
	transition: transform .45s cubic-bezier(.6, -.3, .3, 1.4);
}
.hcc-cp-root[data-mode="dark"] .hcc-toggle-knob { transform: translateX(30px); }
.hcc-toggle .hcc-ico { position: absolute; top: 8px; width: 15px; height: 15px; z-index: 2; color: var(--hcc-text); transition: color .3s, transform .45s; }
.hcc-t-sun  { left: 8px; }
.hcc-t-moon { right: 8px; }
.hcc-cp-root[data-mode="light"] .hcc-t-sun,
.hcc-cp-root[data-mode="dark"]  .hcc-t-moon { color: var(--hcc-on-accent); }
.hcc-cp-root[data-mode="light"] .hcc-t-sun { animation: hccSpinOnce .7s ease; }
.hcc-cp-root[data-mode="dark"] .hcc-t-moon { animation: hccSwing .7s ease; }
@keyframes hccSpinOnce { from { transform: rotate(-180deg) scale(.4); } to { transform: none; } }
@keyframes hccSwing { from { transform: rotate(40deg) scale(.4); } to { transform: none; } }

/* ---------- Header ---------- */
.hcc-cp-head { text-align: center; margin-bottom: 52px; }
.hcc-cp-logo-row { margin-bottom: 18px; }
.hcc-cp-logo { display: inline-block; }
.hcc-logo-img { display: block; height: var(--hcc-logo-h, 110px); width: auto; max-width: 100%; }
.hcc-logo-for-dark { display: none; }
.hcc-cp-root[data-mode="dark"] .hcc-logo-for-dark { display: block; }
.hcc-cp-root[data-mode="dark"] .hcc-logo-for-light { display: none; }

.hcc-cp-eyebrow-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 16px; }
.hcc-cp-eyebrow {
	display: inline-flex; align-items: center; padding: 7px 18px; border-radius: 999px;
	border: 1px solid rgba(var(--hcc-accent-rgb), .4); background: rgba(var(--hcc-accent-rgb), .09);
	color: var(--hcc-accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hcc-cp-heading {
	margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1;
	color: var(--hcc-heading); letter-spacing: -.01em;
}
.hcc-cp-subheading { max-width: 620px; margin: 0 auto; line-height: 1.7; font-size: 17px; }
.hcc-cp-quick { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- Live status badge ---------- */
.hcc-status {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
	font-size: 12.5px; font-weight: 600; background: var(--hcc-card); border: 1px solid var(--hcc-line); color: var(--hcc-heading);
}
.hcc-status[hidden] { display: none; }
.hcc-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #9aa0b4; flex: none; }
.hcc-status.is-open .hcc-dot { background: #22c55e; }
.hcc-status.is-open .hcc-dot::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; opacity: 0; animation: hccPing 1.8s ease-out infinite;
}
.hcc-status.is-closed .hcc-dot { background: #f59e0b; }
@keyframes hccPing { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Pills (quick actions) ---------- */
.hcc-pill {
	display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
	background: var(--hcc-card); border: 1px solid var(--hcc-line); color: var(--hcc-heading) !important;
	font-size: 14px; font-weight: 600; text-decoration: none !important;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, background .3s;
}
.hcc-pill .hcc-ico { width: 17px; height: 17px; color: var(--hcc-accent); transition: transform .3s; }
.hcc-pill:hover { transform: translateY(-3px); border-color: var(--hcc-accent); box-shadow: 0 12px 26px rgba(var(--hcc-accent-rgb), .22); }
.hcc-pill:hover .hcc-ico { transform: scale(1.18) rotate(-8deg); }

/* ---------- Heading hover effects ---------- */
.hcc-cp-root h2, .hcc-cp-root h3, .hcc-cp-root h4 { text-transform: none; }

/* A) Gradient Text Sweep  &  B) Text Fill Wipe  – an overlay copy of the text is wiped in
      from the left (clip-path); the sweep variant also lets the gradient flow while hovered. */
.hcc-hover-sweep, .hcc-hover-fill { position: relative; display: inline-block; max-width: 100%; }
.hcc-hover-sweep::after, .hcc-hover-fill::after {
	content: attr(data-text);
	content: attr(data-text) / "";
	position: absolute; inset: 0; pointer-events: none;
	clip-path: inset(0 100% 0 0);
	transition: clip-path .75s cubic-bezier(.65, 0, .35, 1);
	color: transparent; -webkit-text-fill-color: transparent;
	-webkit-background-clip: text; background-clip: text;
}
.hcc-hover-sweep::after {
	background-image: linear-gradient(90deg, var(--hcc-accent), var(--hcc-accent2), var(--hcc-accent));
	background-size: 200% 100%;
}
.hcc-hover-fill::after { background-image: linear-gradient(90deg, var(--hcc-accent), var(--hcc-accent)); }
.hcc-hover-sweep:hover::after, .hcc-hover-fill:hover::after { clip-path: inset(0 0 0 0); }
.hcc-hover-sweep:hover::after { animation: hccSweepFlow 2.6s linear infinite; }
@keyframes hccSweepFlow { to { background-position: 200% 0; } }

.hcc-hover-underline { position: relative; display: inline-block; }
.hcc-hover-underline::after {
	content: ""; position: absolute; left: 50%; bottom: -6px; height: 3px; width: 0;
	background: linear-gradient(90deg, var(--hcc-accent), var(--hcc-accent2)); 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 { transition: color .25s ease; }
.hcc-hover-color:hover { color: var(--hcc-accent) !important; }
.hcc-hover-scale { display: inline-block; transition: transform .25s ease; }
.hcc-hover-scale:hover { transform: scale(1.05); }
.hcc-hover-glow { transition: text-shadow .3s ease; }
.hcc-hover-glow:hover { text-shadow: 0 0 16px rgba(var(--hcc-accent-rgb), .75); }

/* ---------- Grid ---------- */
.hcc-cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.hcc-cp-info { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Info cards (spotlight + tilt) ---------- */
.hcc-cp-info-block {
	position: relative; overflow: hidden;
	display: flex; gap: 16px; align-items: flex-start;
	background: var(--hcc-card); border: 1px solid var(--hcc-line);
	padding: 20px; border-radius: 18px;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
	transition: transform .25s ease-out, border-color .3s, box-shadow .3s, background .45s;
}
.hcc-cp-hover-card:hover { --ty: -4px; border-color: rgba(var(--hcc-accent-rgb), .55); box-shadow: var(--hcc-shadow); }
.hcc-cp-info-block::before, .hcc-cp-form::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--hcc-accent-rgb), .16), transparent 46%);
}
.hcc-cp-info-block:hover::before, .hcc-cp-form:hover::before { opacity: 1; }
.hcc-cp-root[data-effects="off"] .hcc-cp-info-block::before, .hcc-cp-root[data-effects="off"] .hcc-cp-form::before { display: none; }
.hcc-cp-info-block > *, .hcc-cp-form > * { position: relative; z-index: 1; }

.hcc-cp-icon {
	flex: none; width: 48px; height: 48px; border-radius: 15px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(var(--hcc-accent-rgb), .18), rgba(var(--hcc-accent2-rgb), .16));
	color: var(--hcc-accent); border: 1px solid rgba(var(--hcc-accent-rgb), .25);
	transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.hcc-cp-icon .hcc-ico { width: 22px; height: 22px; }
.hcc-cp-hover-card:hover .hcc-cp-icon { transform: rotate(-8deg) scale(1.1); }

.hcc-cp-info-body { min-width: 0; flex: 1; }
.hcc-cp-info-block h4 { margin: 0 0 8px; padding: 0; color: var(--hcc-heading); font-size: 17px; font-weight: 700; line-height: 1.3; }
.hcc-cp-info-block p { margin: 3px 0; }
.hcc-cp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hcc-cp-info-block a { color: var(--hcc-text); text-decoration: none; transition: color .2s; word-break: break-word; }
.hcc-cp-info-block a:hover { color: var(--hcc-accent); }
.hcc-cp-label { opacity: .7; font-size: .92em; }

.hcc-copy {
	position: relative; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; cursor: pointer;
	background: transparent; color: var(--hcc-text); opacity: .55; display: inline-flex; align-items: center; justify-content: center;
	transition: opacity .2s, background .2s, color .2s, transform .2s;
}
.hcc-copy:hover, .hcc-copy:focus-visible { opacity: 1; background: rgba(var(--hcc-accent-rgb), .14); color: var(--hcc-accent); transform: scale(1.1); outline: none; }
.hcc-copy .hcc-ico { width: 15px; height: 15px; }
.hcc-check-ico { display: none; }
.hcc-copy.is-copied { opacity: 1; color: #22c55e; background: rgba(34, 197, 94, .14); }
.hcc-copy.is-copied .hcc-copy-ico { display: none; }
.hcc-copy.is-copied .hcc-check-ico { display: block; animation: hccPop .4s ease; }
@keyframes hccPop { from { transform: scale(.3); } 60% { transform: scale(1.3); } to { transform: scale(1); } }

.hcc-cp-map-inline, .hcc-cp-map-inline iframe { width: 100%; border: 0; border-radius: 18px; min-height: 230px; display: block; }
.hcc-cp-map-inline { overflow: hidden; border: 1px solid var(--hcc-line); box-shadow: var(--hcc-shadow); }
.hcc-cp-root[data-mode="dark"] .hcc-cp-map-inline iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8) contrast(.95); }

/* ---------- Form ---------- */
.hcc-cp-form-wrap { display: flex; }
.hcc-cp-form {
	position: relative; overflow: hidden; width: 100%;
	background: var(--hcc-card); border: 1px solid var(--hcc-line); border-radius: 22px;
	padding: 34px; display: flex; flex-direction: column; gap: 16px;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--hcc-shadow);
	transition: background .45s, border-color .3s;
}
.hcc-cp-form h3 { margin: 0 0 6px; padding: 0; color: var(--hcc-heading); font-size: 24px; font-weight: 800; align-self: flex-start; }

.hcc-field { position: relative; }
.hcc-field input, .hcc-field select, .hcc-field textarea {
	display: block; width: 100%; margin: 0; padding: 24px 15px 8px; min-height: 56px;
	background: var(--hcc-input); border: 1px solid var(--hcc-line); border-radius: 13px;
	color: var(--hcc-heading); font: inherit; font-size: 15.5px; line-height: 1.4; box-shadow: none;
	transition: border-color .25s, box-shadow .25s, background .3s; -webkit-appearance: none; appearance: none;
}
.hcc-field textarea { resize: vertical; min-height: 104px; padding-top: 28px; }
.hcc-field label {
	position: absolute; left: 16px; top: 17px; margin: 0; font-size: 15px; color: var(--hcc-text); opacity: .85;
	pointer-events: none; transform-origin: left top; transition: transform .22s ease, color .22s ease, opacity .22s;
}
.hcc-field input:focus + label,
.hcc-field input:not(:placeholder-shown) + label,
.hcc-field textarea:focus + label,
.hcc-field textarea:not(:placeholder-shown) + label,
.hcc-field select + label { transform: translateY(-11px) scale(.76); color: var(--hcc-accent); opacity: 1; font-weight: 600; }
.hcc-field input:focus, .hcc-field select:focus, .hcc-field textarea:focus {
	outline: none; border-color: var(--hcc-accent); box-shadow: 0 0 0 4px rgba(var(--hcc-accent-rgb), .18);
}
.hcc-field-line {
	position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--hcc-accent), var(--hcc-accent2)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; pointer-events: none;
}
.hcc-field:focus-within .hcc-field-line { transform: scaleX(1); }
.hcc-field.is-invalid input { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); animation: hccShake .4s ease; }
@keyframes hccShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.hcc-field-select select {
	padding-right: 42px; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, var(--hcc-heading) 50%), linear-gradient(135deg, var(--hcc-heading) 50%, transparent 50%);
	background-position: calc(100% - 22px) 27px, calc(100% - 16px) 27px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.hcc-field select option { background: var(--hcc-opt-bg); color: var(--hcc-opt-fg); }
.hcc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.hcc-btn {
	position: relative; overflow: hidden; isolation: isolate; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 30px; border-radius: 15px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
	color: var(--hcc-on-accent) !important; text-decoration: none !important;
	background: linear-gradient(135deg, var(--hcc-accent), var(--hcc-accent-deep));
	box-shadow: 0 10px 24px rgba(var(--hcc-accent-rgb), .35);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.hcc-btn::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .7s ease;
}
.hcc-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(var(--hcc-accent-rgb), .5); filter: brightness(1.06); }
.hcc-btn:hover::before { left: 130%; }
.hcc-btn:active { transform: translateY(0); }
.hcc-btn:focus-visible { outline: 3px solid rgba(var(--hcc-accent2-rgb), .6); outline-offset: 3px; }
.hcc-btn .hcc-ico { width: 19px; height: 19px; }
.hcc-btn-arrow { transition: transform .25s ease; }
.hcc-btn:hover .hcc-btn-arrow { transform: translateX(5px); }
.hcc-submit { width: 100%; margin-top: 6px; }
.hcc-submit.is-done { animation: hccPulseBtn .6s ease; }
@keyframes hccPulseBtn { 50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(var(--hcc-accent-rgb), .0), 0 0 40px rgba(var(--hcc-accent-rgb), .6); } }
.hcc-ripple { position: absolute; border-radius: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: rgba(255, 255, 255, .55); transform: scale(0); animation: hccRipple .65s ease-out forwards; pointer-events: none; z-index: -1; }
@keyframes hccRipple { to { transform: scale(26); opacity: 0; } }

.hcc-cp-form-msg { margin: 0; font-size: 14px; min-height: 20px; }
.hcc-cp-form-msg.is-success { color: #16a34a; font-weight: 600; }
.hcc-cp-root[data-mode="dark"] .hcc-cp-form-msg.is-success { color: #4ade80; }
.hcc-cp-form-msg.is-error { color: #ef4444; font-weight: 600; }
.hcc-cp-credit { text-align: center; margin-top: 48px; font-size: 12px; opacity: .6; letter-spacing: .05em; }

/* ---------- Toast ---------- */
.hcc-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 99999; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
	padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
	background: var(--hcc-heading); color: var(--hcc-bg1); box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
	transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1.2);
}
.hcc-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Logo animations ---------- */
.hcc-logo-float { animation: hccFloat 4.5s ease-in-out infinite; }
@keyframes hccFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hcc-logo-pulse { animation: hccPulse 2.6s ease-in-out infinite; }
@keyframes hccPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.hcc-logo-spin { animation: hccSpin 12s linear infinite; }
@keyframes hccSpin { to { transform: rotate(360deg); } }
.hcc-logo-glow { animation: hccGlow 2.8s ease-in-out infinite; }
@keyframes hccGlow { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 18px rgba(var(--hcc-accent-rgb), .75)); } }

/* ---------- Scroll reveal (class added by frontend.js; safe without JS) ---------- */
.hcc-js [data-hcc-reveal]:not(.hcc-in) { opacity: 0; animation: hccFailsafe 0s linear 3.5s forwards; }
@keyframes hccFailsafe { to { opacity: 1; } }
.hcc-js [data-hcc-reveal].hcc-in { animation: hccFadeUp .8s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--hcc-d, 0s); }
.hcc-cp-root[data-anim="zoom-in"] [data-hcc-reveal].hcc-in { animation-name: hccZoomIn; }
.hcc-cp-root[data-anim="slide-left"] [data-hcc-reveal].hcc-in { animation-name: hccSlideIn; }
@keyframes hccFadeUp { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes hccZoomIn { from { opacity: 0; scale: .88; } to { opacity: 1; scale: 1; } }
@keyframes hccSlideIn { from { opacity: 0; translate: -42px 0; } to { opacity: 1; translate: 0 0; } }

/* ============ CONTACT TEASER (Home / About) ============ */
.hcc-cp-teaser { padding: 80px 24px; text-align: center; }
.hcc-cp-teaser-inner { max-width: 780px; }
.hcc-cp-teaser-tag {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 8px 20px;
	border: 1px solid rgba(var(--hcc-accent-rgb), .45); background: rgba(var(--hcc-accent-rgb), .09); border-radius: 999px; color: var(--hcc-accent);
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hcc-cp-teaser-tag .hcc-ico { width: 15px; height: 15px; animation: hccCompass 6s ease-in-out infinite; }
@keyframes hccCompass { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(40deg); } }
.hcc-cp-teaser-title { margin: 0 0 18px; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; line-height: 1.12; color: var(--hcc-heading); letter-spacing: -.01em; }
.hcc-cp-teaser-desc { max-width: 620px; margin: 0 auto 28px; line-height: 1.75; font-size: 17px; }
.hcc-cp-teaser-quick { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-bottom: 30px; }

/* ============ TEMPLATE VARIANTS ============ */
.hcc-tpl-1 .hcc-cp-head { text-align: left; max-width: 680px; }
.hcc-tpl-1 .hcc-cp-eyebrow-row, .hcc-tpl-1 .hcc-cp-quick { justify-content: flex-start; }
.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: 660px; margin: 0 auto; }
.hcc-tpl-1.hcc-form-pos-center .hcc-cp-info { display: none; }

.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-line { justify-content: center; }
.hcc-tpl-2 .hcc-cp-map-inline { flex: 1 1 100%; }
.hcc-tpl-2 .hcc-cp-form-wrap { max-width: 660px; margin: 0 auto; width: 100%; }

/* Template 3: map is decorative scenery behind a strong tinted overlay */
.hcc-tpl-3 { padding-top: 0; padding-bottom: 0; min-height: 660px; display: flex; align-items: center; }
.hcc-tpl-3 > .hcc-cp-container { width: 100%; padding: 80px 0; }
.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(.6) contrast(1.05); pointer-events: none; }
.hcc-tpl-3 .hcc-layer-light { background: linear-gradient(135deg, rgba(var(--hcc-l-bg1-rgb), .93), rgba(var(--hcc-l-bg2-rgb), .88)); }
.hcc-tpl-3 .hcc-layer-dark  { background: linear-gradient(135deg, rgba(var(--hcc-d-bg1-rgb), .94), rgba(var(--hcc-d-bg2-rgb), .9)); }
.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-bg1-rgb), .62); }
.hcc-tpl-3 .hcc-cp-form { background: rgba(var(--hcc-bg1-rgb), .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.hcc-tpl-4 .hcc-cp-grid { grid-template-columns: 340px 1fr; }
.hcc-tpl-4 .hcc-cp-info { background: var(--hcc-card); border: 1px solid var(--hcc-line); border-radius: 22px; padding: 12px 22px; position: sticky; top: 20px; box-shadow: var(--hcc-shadow); }
.hcc-tpl-4 .hcc-cp-info-block { background: transparent; border: 0; box-shadow: none; padding: 16px 0; border-bottom: 1px solid var(--hcc-line); border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hcc-tpl-4 .hcc-cp-info-block:last-of-type { border-bottom: 0; }
.hcc-tpl-4 .hcc-cp-hover-card:hover { --ty: 0px; transform: translateX(6px); box-shadow: none; }
.hcc-tpl-4.hcc-form-pos-left .hcc-cp-grid { grid-template-columns: 1fr 340px; }
.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; }

.hcc-tpl-5 { padding-top: 96px; padding-bottom: 96px; }
.hcc-tpl-5 .hcc-cp-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.hcc-tpl-5 .hcc-cp-info { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 4px; }
.hcc-tpl-5 .hcc-cp-info-block { flex: 0 1 auto; padding: 10px 16px; border-radius: 999px; align-items: center; }
.hcc-tpl-5 .hcc-cp-icon { width: 32px; height: 32px; border-radius: 10px; }
.hcc-tpl-5 .hcc-cp-icon .hcc-ico { width: 16px; height: 16px; }
.hcc-tpl-5 .hcc-cp-info-block h4 { display: none; }
.hcc-tpl-5 .hcc-cp-info-block .hcc-cp-line { margin: 0; }
.hcc-tpl-5 .hcc-cp-map-inline { display: none; }
.hcc-tpl-5 .hcc-cp-form { border-radius: 28px; padding: 38px; }
.hcc-tpl-5 .hcc-cp-head { margin-bottom: 32px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
	.hcc-cp-grid, .hcc-tpl-3 .hcc-cp-grid, .hcc-tpl-4 .hcc-cp-grid, .hcc-tpl-4.hcc-form-pos-left .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 44px; }
	.hcc-tpl-1 .hcc-cp-eyebrow-row, .hcc-tpl-1 .hcc-cp-quick { justify-content: center; }
	.hcc-tpl-1 .hcc-cp-subheading { margin: 0 auto; }
	.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: 64px 16px 44px; border-radius: 16px; }
	.hcc-cp-teaser { padding: 64px 16px 48px; }
	.hcc-cp-form, .hcc-tpl-5 .hcc-cp-form { padding: 24px 20px; }
	.hcc-tpl-2 .hcc-cp-info, .hcc-tpl-5 .hcc-cp-info { flex-direction: column; align-items: stretch; }
	.hcc-tpl-5 .hcc-cp-info-block { border-radius: 16px; }
	.hcc-cp-teaser-quick { flex-direction: column; }
	.hcc-toggle { top: 12px; right: 12px; }
}

/* ============ ACCESSIBILITY: reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
	.hcc-cp-root *, .hcc-cp-root *::before, .hcc-cp-root *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
	.hcc-orb { animation: none !important; }
	.hcc-hover-sweep:hover::after { animation: none !important; }
}
