/* ==========================================================================
   Global Max CRM — landing pages, hubs, menu com submenu, WhatsApp, form
   ========================================================================== */

/* ---------- Header: submenus ---------- */
.gm-nav { align-items: center; }
.gm-nav-item { position: relative; }
.gm-nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.gm-nav-caret { width: 10px; height: 10px; opacity: .6; transition: transform .15s ease; }
.gm-submenu {
	position: absolute; top: calc(100% + 6px); left: -8px; min-width: 300px; z-index: 60;
	background: #fff; border: 1px solid var(--gm-border); border-radius: var(--gm-radius-md);
	box-shadow: 0 20px 50px rgba(15, 23, 42, .12); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.gm-submenu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.gm-nav-item:hover .gm-submenu, .gm-nav-item:focus-within .gm-submenu { opacity: 1; visibility: visible; transform: none; }
.gm-nav-item:hover .gm-nav-caret { transform: rotate(180deg); }
.gm-nav .gm-submenu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; white-space: normal; }
.gm-submenu__t { font-size: 14px; font-weight: 600; color: var(--gm-navy); }
.gm-submenu__d { font-size: 12.5px; font-weight: 400; color: var(--gm-text-secondary); }
.gm-submenu a:hover .gm-submenu__t { color: var(--gm-blue); }
.gm-submenu__all { border-top: 1px solid var(--gm-border); margin-top: 4px; }
.gm-nav .gm-submenu__all a { font-size: 13px; font-weight: 600; color: var(--gm-blue); }

@media (max-width: 1024px) {
	.gm-nav-item { width: 100%; }
	.gm-submenu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
		padding: 0 0 6px 12px; min-width: 0; display: none;
	}
	.gm-nav-item.is-open .gm-submenu { display: block; }
	.gm-nav-item.is-open .gm-nav-caret { transform: rotate(180deg); }
	.gm-nav-item > a { width: 100%; justify-content: space-between; }
	.gm-submenu__d { display: none; }
}

/* ---------- Breadcrumb ---------- */
.gm-lp-crumbs { max-width: var(--gm-max); margin: 0 auto; padding: 20px 32px 0; font-size: 13px; color: var(--gm-text-secondary); display: flex; flex-wrap: wrap; gap: 8px; }
.gm-lp-crumbs a { color: var(--gm-text-secondary); font-weight: 500; }
.gm-lp-crumbs a:hover { color: var(--gm-blue); }

/* ---------- Hero ---------- */
.gm-lp-hero__grid {
	max-width: var(--gm-max); margin: 0 auto; padding: 40px 32px 24px;
	display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.gm-lp-h1 { margin-top: 16px; font-family: 'Archivo', 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 50px; line-height: 1.06; letter-spacing: -.02em; }
.gm-lp-lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--gm-text-secondary); max-width: 600px; }
.gm-lp-answer {
	background: #fff; border: 1px solid var(--gm-border); border-radius: var(--gm-radius-lg);
	padding: 26px; box-shadow: var(--gm-shadow-mock); position: relative; overflow: hidden;
}
.gm-lp-answer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gm-gradient); }
.gm-lp-answer__label { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--gm-violet); }
.gm-lp-answer p { margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: #334155; }
.gm-lp-answer .gm-module-tags { margin-top: 16px; }

/* ---------- Dores ---------- */
.gm-lp-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.gm-lp-pain { background: #fff; border: 1px solid var(--gm-border); border-radius: var(--gm-radius-md); padding: 24px; }
.gm-lp-pain__n { font-family: 'Archivo', 'Inter', sans-serif; font-weight: 800; font-size: 14px; color: var(--gm-error); letter-spacing: .06em; }
.gm-lp-pain__t { margin-top: 10px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.gm-lp-pain__d { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--gm-text-secondary); }

/* ---------- Cards clicáveis ---------- */
.gm-module-card--link { color: inherit; }
.gm-module-card--link:hover { color: inherit; border-color: var(--gm-blue); }
.gm-module-card .gm-inline-link { font-size: 13.5px; margin-top: auto; }
h3.gm-module-name { margin: 0; }

/* ---------- Fluxo ---------- */
.gm-lp-flow { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 0; flex-wrap: wrap; counter-reset: none; }
.gm-lp-flow__step {
	flex: 1 1 160px; position: relative; padding: 18px 28px 18px 18px; background: #fff;
	border: 1px solid var(--gm-border); margin-right: -1px; font-size: 14.5px; font-weight: 600; line-height: 1.35;
	display: flex; align-items: center; gap: 12px;
}
.gm-lp-flow__step:first-child { border-radius: var(--gm-radius-md) 0 0 var(--gm-radius-md); }
.gm-lp-flow__step:last-child { border-radius: 0 var(--gm-radius-md) var(--gm-radius-md) 0; }
.gm-lp-flow__step:not(:last-child)::after {
	content: "→"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--gm-blue); font-weight: 700;
}
.gm-lp-flow__n {
	flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gm-gradient); color: #fff;
	font-size: 12.5px; display: flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.gm-lp-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.gm-lp-faq__list { border-top: 1px solid var(--gm-border); }
.gm-lp-faq__item { border-bottom: 1px solid var(--gm-border); }
.gm-lp-faq__item summary {
	list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-size: 16px; font-weight: 600; position: relative;
}
.gm-lp-faq__item summary::-webkit-details-marker { display: none; }
.gm-lp-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--gm-blue); font-weight: 400; }
.gm-lp-faq__item[open] summary::after { content: "−"; }
.gm-lp-faq__item p { padding: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--gm-text-secondary); }

/* ---------- Relacionados ---------- */
.gm-lp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.gm-lp-related__card {
	display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius-md); color: inherit; transition: border-color .15s ease, transform .15s ease;
}
.gm-lp-related__card:hover { border-color: var(--gm-blue); transform: translateY(-2px); color: inherit; }
.gm-lp-related__t { font-size: 15.5px; font-weight: 700; }
.gm-lp-related__d { font-size: 13.5px; color: var(--gm-text-secondary); }

/* ---------- CTA + formulário ---------- */
.gm-lp-demo {
	border-radius: var(--gm-radius-xl); padding: 48px; background: var(--gm-gradient-cta); color: #fff;
	display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
	box-shadow: 0 24px 70px rgba(37, 99, 235, .24);
}
.gm-lp-demo .gm-cta-title { margin-top: 12px; }
.gm-lp-demo .gm-btn-cta-secondary { margin-top: 24px; font-size: 15px; padding: 12px 20px; }
.gm-lp-demo__form { background: #fff; color: var(--gm-text); border-radius: var(--gm-radius-lg); padding: 28px; }

.gm-field select {
	font-family: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius-sm); background: var(--gm-bg); color: var(--gm-text);
}
.gm-field select:focus { outline: none; border-color: var(--gm-blue); background: #fff; }
.gm-optional { font-weight: 400; color: var(--gm-text-secondary); }
.gm-form-legal { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--gm-text-secondary); }
.gm-form-legal a { text-decoration: underline; }
.gm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hubs ---------- */
.gm-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gm-hub-card {
	display: flex; flex-direction: column; gap: 12px; padding: 30px; background: #fff; color: inherit;
	border: 1px solid var(--gm-border); border-radius: var(--gm-radius-md); box-shadow: var(--gm-shadow-card);
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.gm-hub-card:hover { color: inherit; transform: translateY(-3px); border-color: var(--gm-blue); box-shadow: var(--gm-shadow-card-hover); }
.gm-hub-card__t { font-family: 'Archivo', 'Inter', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.gm-hub-card__d { font-size: 15px; line-height: 1.55; color: var(--gm-text-secondary); }
.gm-hub-card .gm-inline-link { margin-top: auto; }

/* ---------- Home: soluções por segmento ---------- */
.gm-segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.gm-segment {
	display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; color: inherit;
	border: 1px solid var(--gm-border); border-radius: var(--gm-radius-md); box-shadow: var(--gm-shadow-card);
	transition: transform .15s ease, border-color .15s ease;
}
.gm-segment:hover { color: inherit; transform: translateY(-3px); border-color: var(--gm-blue); }
.gm-segment__t { font-size: 18px; font-weight: 700; line-height: 1.25; }
.gm-segment__d { font-size: 14px; line-height: 1.55; color: var(--gm-text-secondary); }
.gm-segment .gm-inline-link { margin-top: auto; font-size: 14px; }
a.gm-module-card { color: inherit; }
a.gm-module-card:hover { color: inherit; border-color: var(--gm-blue); }

/* ---------- Botão flutuante WhatsApp ---------- */
.gm-wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
	background: #25D366; color: #fff; border-radius: 999px; padding: 12px 18px 12px 14px;
	font-size: 14.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(22, 163, 74, .35);
	transition: transform .15s ease, box-shadow .15s ease;
}
.gm-wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(22, 163, 74, .45); }

/* Footer com 5 colunas */
.gm-footer__inner { grid-template-columns: 1.3fr repeat(4, 1fr); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
	.gm-lp-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.gm-lp-pains { grid-template-columns: 1fr; }
	.gm-lp-faq { grid-template-columns: 1fr; gap: 20px; }
	.gm-lp-related { grid-template-columns: 1fr; }
	.gm-lp-demo { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
	.gm-segments { grid-template-columns: repeat(2, 1fr); }
	.gm-footer__inner { grid-template-columns: 1fr 1fr; }
	.gm-lp-flow__step { flex-basis: 100%; margin-right: 0; margin-bottom: -1px; border-radius: 0 !important; }
	.gm-lp-flow__step:first-child { border-radius: var(--gm-radius-md) var(--gm-radius-md) 0 0 !important; }
	.gm-lp-flow__step:last-child { border-radius: 0 0 var(--gm-radius-md) var(--gm-radius-md) !important; }
	.gm-lp-flow__step:not(:last-child)::after { content: "↓"; }
}
@media (max-width: 760px) {
	.gm-lp-crumbs { padding: 16px 20px 0; }
	.gm-lp-hero__grid { padding: 24px 20px 8px; }
	.gm-lp-h1 { font-size: 32px; }
	.gm-lp-lead { font-size: 16px; }
	.gm-hub-grid, .gm-segments { grid-template-columns: 1fr; }
	.gm-lp-demo { padding: 24px; }
	.gm-lp-demo__form { padding: 20px; }
	.gm-footer__inner { grid-template-columns: 1fr; }
	.gm-wa-float span { display: none; }
	.gm-wa-float { padding: 14px; right: 16px; bottom: 16px; }
}

/* Botão 'Tirar dúvidas agora' é um <button>: remove o fundo cinza padrão do navegador */
button.gm-serv-cta__btn { width: 100%; font-family: 'Archivo', 'Inter', system-ui, sans-serif; text-align: left; -webkit-appearance: none; appearance: none; }
button.gm-serv-cta__btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
button.gm-serv-cta__btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Home: ícones dos módulos */
.gm-module-card .gm-module-icon {
	width: 46px; height: 46px; border-radius: 12px; flex: none;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.gm-module-card .gm-module-icon svg { width: 23px; height: 23px; }
.gm-module-card:hover .gm-module-icon { transform: scale(1.06) rotate(-3deg); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .25), 0 8px 18px rgba(37, 99, 235, .15); }
.gm-module-card .gm-module-head { gap: 14px; }
.gm-module-card .gm-module-name { font-size: 17px; letter-spacing: .04em; }
/* Home: 5 segmentos */
.gm-segments { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .gm-segments { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .gm-segments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gm-segments { grid-template-columns: 1fr; } }

/* Home: 6 segmentos em 3 colunas */
.gm-segments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .gm-segments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gm-segments { grid-template-columns: 1fr; } }
