/* Hub Code custom styles */

:root {
	--hc-bg: #ffffff;
	--hc-text: #212529;
	--hc-muted: #6c757d;
	--hc-primary: #0d6efd;
	--hc-surface: #f8f9fa;
	--hc-card: #ffffff;
	--hc-border: #dee2e6;
}

/* Dark theme variables */
body.dark {
	--hc-bg: #0b0f14;
	--hc-text: #e9ecef;
	--hc-muted: #adb5bd;
	--hc-primary: #66b2ff;
	--hc-surface: #0f141a;
	--hc-card: #121821;
	--hc-border: #253042;
}

body {
	background: var(--hc-bg);
	color: var(--hc-text);
}

.navbar,
.offcanvas,
.dropdown-menu {
	background-color: var(--hc-surface) !important;
	color: var(--hc-text) !important;
}

.navbar .nav-link,
.navbar .navbar-brand,
.dropdown-item {
	color: var(--hc-text) !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
	color: var(--hc-primary) !important;
}

.hero {
	background: linear-gradient(135deg, rgba(13,110,253,0.12), rgba(102,178,255,0.12));
	border-bottom: 1px solid var(--hc-border);
}

.card {
	background-color: var(--hc-card);
	border-color: var(--hc-border);
}

.section-title {
	font-weight: 700;
}

.slogan {
	font-size: 0.9rem;
	color: var(--hc-muted);
}

/* Floating WhatsApp Button */
.whatsapp-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background-color: #25d366;
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
	z-index: 1050;
	cursor: pointer;
}

.whatsapp-fab:hover { filter: brightness(0.95); }

.whatsapp-fab .bi-whatsapp { font-size: 1.6rem; }

/* Chat Widget */
.chat-widget {
	position: fixed;
	right: 18px;
	bottom: 84px; /* above fab */
	width: 320px;
	max-width: calc(100vw - 36px);
	background: var(--hc-card);
	border: 1px solid var(--hc-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(0,0,0,0.25);
	display: none;
	z-index: 1049;
}

.chat-header {
	background: var(--hc-surface);
	border-bottom: 1px solid var(--hc-border);
}

.chat-messages {
	height: 260px;
	overflow-y: auto;
	padding: 12px;
	background: linear-gradient(180deg, var(--hc-card), var(--hc-surface));
}

.msg { font-size: 0.95rem; margin-bottom: 8px; display: flex; }
.msg .bubble {
	padding: 8px 12px;
	border-radius: 12px;
	max-width: 80%;
	line-height: 1.3;
}
.msg.bot { justify-content: flex-start; }
.msg.bot .bubble {
	background: #e6f3ff;
	color: #0b4a7a;
}
body.dark .msg.bot .bubble {
	background: #0e2536;
	color: #bfe2ff;
}
.msg.user { justify-content: flex-end; }
.msg.user .bubble {
	background: #25d366;
	color: #fff;
}

.chat-input {
	border-top: 1px solid var(--hc-border);
	background: var(--hc-card);
}

.contact-cta-card {
	background: var(--hc-surface);
	border: 1px dashed var(--hc-border);
}

.partner-logos img {
	max-height: 48px;
	filter: grayscale(1);
	opacity: 0.8;
}
.partner-logos img:hover { filter: none; opacity: 1; }

.footer a { color: inherit; }

/* Utilities */
.pointer { cursor: pointer; }

/* Consistent project card thumbnails */
#projetos .card-img-top {
	height: 220px;           /* bigger, more filled */
	width: 100%;
	object-fit: contain;     /* keep aspect ratio without cropping */
	object-position: center; /* center the image */
	background-color: transparent;
	padding: 0 !important;   /* override Bootstrap p-4 on images */
}

