/**
 * Hero — Concierge Chat Widget Styles
 *
 * Scoped entirely under .hcc-* to avoid clashing with theme or other widgets.
 * All brand colors are CSS custom properties bound to Elementor Style controls,
 * so editors can restyle the whole widget without touching this file.
 */

.hcc-hero {
	--hcc-blue: #0064c1;
	--hcc-blue-deep: #003463;
	--hcc-orange: #f8753a;
	--hcc-orange-deep: #e4622a;
	--hcc-ink: #0e2136;
	--hcc-ink-soft: #5b6b7c;
	--hcc-sand: #f6f8fb;
	--hcc-line: #e4e9f0;
	--hcc-white: #ffffff;

	--hcc-overlay-start: #00203d;
	--hcc-overlay-end: #003463;
	--hcc-overlay-angle: 100deg;
	--hcc-overlay-opacity: 0.9;

	position: relative;
	overflow: hidden;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: clamp(90px, 10vw, 116px) 0 clamp(48px, 8vw, 108px);
	font-family: inherit;
	color: var(--hcc-ink);
	box-sizing: border-box;
	/* Full-bleed: break out of any boxed/padded ancestor (theme container,
	   Elementor "Boxed" content width) so the section always spans the full
	   browser width with no left/right gap, regardless of page layout. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.hcc-hero *,
.hcc-hero *::before,
.hcc-hero *::after {
	box-sizing: border-box;
}

.hcc-bg-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-repeat: no-repeat;
	background-position: center 65%;
	background-size: cover;
}

.hcc-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: linear-gradient(
		var(--hcc-overlay-angle),
		var(--hcc-overlay-start) 0%,
		var(--hcc-overlay-end) 38%,
		transparent 100%
	);
	opacity: var(--hcc-overlay-opacity);
}

.hcc-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
}

.hcc-top {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 72px;
	align-items: center;
}

/* ---------- Copy column ---------- */
.hcc-copy {
	animation: hcc-rise-in 0.5s ease both;
}
.hcc-hero.hcc-no-anim .hcc-copy {
	animation: none;
}

.hcc-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 700;
	color: var(--hcc-orange);
	margin-bottom: 22px;
}

.hcc-title {
	font-weight: 600;
	font-size: clamp(34px, 3.6vw, 54px);
	line-height: 1.1;
	letter-spacing: -0.012em;
	color: var(--hcc-white);
	margin: 0 0 34px;
	max-width: 12ch;
}

.hcc-ctas {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.hcc-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	border: none;
	border-radius: 11px;
	padding: 15px 24px;
	font-family: inherit;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hcc-btn-primary {
	background: var(--hcc-orange);
	color: var(--hcc-white);
	box-shadow: 0 16px 30px -10px rgba(248, 117, 58, 0.55);
}
.hcc-btn-primary:hover {
	background: var(--hcc-orange-deep);
	color: var(--hcc-white);
	transform: translateY(-1px);
}

.hcc-btn-ghost {
	background: transparent;
	color: var(--hcc-white);
	border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.hcc-btn-ghost:hover {
	border-color: var(--hcc-white);
	background: rgba(255, 255, 255, 0.08);
	color: var(--hcc-white);
	transform: translateY(-1px);
}

.hcc-trust {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 18px;
}
.hcc-trust svg {
	flex-shrink: 0;
	color: var(--hcc-orange);
}
.hcc-trust strong {
	color: var(--hcc-white);
}

.hcc-whatsapp {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.72);
}
.hcc-whatsapp a,
.hcc-whatsapp strong {
	color: var(--hcc-white);
	font-weight: 700;
}
.hcc-whatsapp svg {
	flex-shrink: 0;
	color: var(--hcc-orange);
}

/* ---------- Concierge card ---------- */
.hcc-concierge {
	position: relative;
	background: var(--hcc-white);
	border: 1px solid var(--hcc-line);
	border-radius: 20px;
	box-shadow: 0 50px 90px -32px rgba(14, 33, 54, 0.22);
	animation: hcc-rise-in 0.5s ease 0.1s both;
}
.hcc-hero.hcc-no-anim .hcc-concierge {
	animation: none;
}

@keyframes hcc-rise-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

.hcc-concierge-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 24px 26px 20px;
}
.hcc-concierge-avatar {
	position: relative;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--hcc-sand);
	border: 1.5px solid var(--hcc-orange);
	display: flex;
	align-items: center;
	justify-content: center;
}
.hcc-concierge-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hcc-concierge-avatar svg {
	color: var(--hcc-blue-deep);
}
.hcc-concierge-who { flex: 1; min-width: 0; }
.hcc-concierge-name {
	font-size: 18px;
	font-weight: 600;
	color: var(--hcc-blue-deep);
}
.hcc-concierge-role {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--hcc-ink-soft);
}
.hcc-pip {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hcc-orange);
	flex-shrink: 0;
}

.hcc-concierge hr {
	border: none;
	border-top: 1px solid var(--hcc-line);
	margin: 0 26px;
}

.hcc-concierge-body {
	padding: 22px 26px 6px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-height: 320px;
	overflow-y: auto;
}

.hcc-note {
	max-width: 88%;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--hcc-ink);
	padding-left: 14px;
	border-left: 2px solid var(--hcc-orange);
	margin: 0;
	transform-origin: left bottom;
	animation: hcc-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hcc-hero.hcc-no-anim .hcc-note {
	animation: none;
}
.hcc-note-first {
	font-style: italic;
	font-size: 17px;
	font-weight: 600;
	color: var(--hcc-blue-deep);
}

@keyframes hcc-pop {
	0% { opacity: 0; transform: translateY(10px) scale(0.94); }
	60% { opacity: 1; transform: translateY(-1px) scale(1.01); }
	100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hcc-reply {
	align-self: flex-end;
	max-width: 78%;
	background: var(--hcc-blue-deep);
	color: var(--hcc-white);
	font-weight: 600;
	font-size: 14px;
	padding: 10px 16px;
	margin: 0;
	border-radius: 12px 12px 3px 12px;
	transform-origin: right bottom;
	animation: hcc-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hcc-hero.hcc-no-anim .hcc-reply {
	animation: none;
}

.hcc-typing {
	display: flex;
	align-items: center;
	gap: 4px;
	padding-left: 14px;
	border-left: 2px solid var(--hcc-line);
}
.hcc-typing span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hcc-ink-soft);
	animation: hcc-bounce 1.1s ease-in-out infinite;
}
.hcc-typing span:nth-child(2) { animation-delay: 0.15s; }
.hcc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hcc-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-3px); opacity: 1; }
}

.hcc-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	padding: 6px 26px 22px;
}
.hcc-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--hcc-white);
	border: 1px solid var(--hcc-line);
	color: var(--hcc-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 15px 8px 12px;
	border-radius: 100px;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.hcc-chip:hover {
	border-color: var(--hcc-orange);
	background: var(--hcc-sand);
	transform: translateY(-1px);
}

.hcc-concierge-input {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	padding: 18px 26px 24px;
	border-top: 1px solid var(--hcc-line);
	margin: 0;
}
.hcc-concierge-input-field { flex: 1; min-width: 0; }
.hcc-concierge-input-field label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hcc-ink-soft);
	margin-bottom: 6px;
}
.hcc-concierge-input-field input {
	width: 100%;
	border: none;
	border-bottom: 1.5px solid var(--hcc-line);
	padding: 4px 0 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--hcc-ink);
	background: transparent;
}
.hcc-concierge-input-field input::placeholder { color: #b7c0cb; font-weight: 500; }
.hcc-concierge-input-field input:focus {
	outline: none;
	border-color: var(--hcc-orange);
}

.hcc-concierge-send {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--hcc-orange);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 20px -6px rgba(248, 117, 58, 0.5);
	transition: background 0.18s ease, transform 0.18s ease;
}
.hcc-concierge-send:hover {
	background: var(--hcc-orange-deep);
	transform: translateY(-1px) rotate(8deg);
}
.hcc-concierge-send:focus-visible,
.hcc-chip:focus-visible,
.hcc-btn:focus-visible,
.hcc-concierge-input-field input:focus-visible {
	outline: 2px solid var(--hcc-orange);
	outline-offset: 2px;
}

.hcc-concierge-done {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 18px 26px 24px;
	font-size: 13.5px;
	color: var(--hcc-ink-soft);
	border-top: 1px solid var(--hcc-line);
}
.hcc-concierge-done.is-visible { display: flex; }
.hcc-concierge-done a {
	color: var(--hcc-blue-deep);
	font-weight: 700;
	border-bottom: 1px solid var(--hcc-line);
}
.hcc-concierge-input.is-hidden { display: none; }
.hcc-chip-row.is-hidden { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
	.hcc-hero { min-height: auto; }
	.hcc-top { grid-template-columns: 1fr; gap: 38px; }
	.hcc-title { max-width: none; }
	.hcc-concierge { max-width: 480px; }
}
@media (max-width: 480px) {
	.hcc-hero { padding: 56px 0 40px; }
	.hcc-note, .hcc-reply { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
	.hcc-pip,
	.hcc-note,
	.hcc-reply,
	.hcc-copy,
	.hcc-concierge,
	.hcc-typing span {
		animation: none !important;
	}
}
