/* Amigos Connect Header — self-contained. All rules are scoped to .amgh so nothing else on the site is touched. */
.amgh, .amgh * { box-sizing: border-box; }
.amgh {
	--amgh-bg: #0F172A; --amgh-bg2: #17233f; --amgh-line: rgba(255,255,255,.10); --amgh-text: #fff; --amgh-muted: #cbd5e1; --amgh-accent: #B30106; --amgh-accent2: #d4141a;
	--amgh-h: 72px; --amgh-gutter: 24px;
	position: relative; z-index: 9000; width: 100%; background: var(--amgh-bg); color: var(--amgh-text);
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.2;
	border-bottom: 1px solid var(--amgh-line); box-shadow: 0 2px 14px rgba(2,6,23,.25);
}
.amgh.is-sticky { position: sticky; top: 0; }
body.admin-bar .amgh.is-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .amgh.is-sticky { top: 46px; } }
.amgh ul { list-style: none; margin: 0; padding: 0; }
.amgh li { margin: 0; padding: 0; }
.amgh a { color: inherit; text-decoration: none; box-shadow: none; }
.amgh button { font: inherit; color: inherit; }
.amgh :focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

.amgh__bar { max-width: 1320px; margin: 0 auto; padding: 0 var(--amgh-gutter); min-height: var(--amgh-h); display: flex; align-items: center; gap: 24px; }
.amgh__logo { display: inline-flex; align-items: center; flex: 0 0 auto; height: var(--amgh-h); max-width: 220px; }
.amgh__logo img { display: block; height: var(--amgh-logo-h, 46px); width: auto; max-width: 100%; object-fit: contain; margin: 0; }
#amgh .amgh__logo img { display: block !important; height: var(--amgh-logo-h, 46px) !important; max-height: var(--amgh-logo-h, 46px) !important; width: auto !important; max-width: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.amgh__wordmark { font-weight: 700; font-size: 20px; letter-spacing: .2px; }

/* ---------- desktop (wide) ---------- */
.amgh__toggle { display: none; }
.amgh__menu { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; }
.amgh__nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.amgh__nav ul { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.amgh__nav a { position: relative; display: block; padding: 10px 14px; font-weight: 600; font-size: 15px; letter-spacing: .2px; white-space: nowrap; color: var(--amgh-muted); transition: color .18s ease; }
.amgh__nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--amgh-accent2); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.amgh__nav a:hover, .amgh__nav a:focus-visible, .amgh__nav a.is-current { color: #fff; }
.amgh__nav a:hover::after, .amgh__nav a.is-current::after { transform: scaleX(1); }

.amgh__acct { flex: 0 0 auto; position: relative; }
.amgh__acct.is-inline .amgh__acct-list { display: flex; align-items: center; gap: 10px; }
.amgh-link { display: inline-block; padding: 10px 14px; font-weight: 600; color: #fff; white-space: nowrap; border-radius: 8px; transition: background .18s ease; }
.amgh-link:hover { background: rgba(255,255,255,.08); }
.amgh-cta { display: inline-block; padding: 11px 18px; font-weight: 700; color: #fff !important; white-space: nowrap; background: var(--amgh-accent); border-radius: 8px; transition: background .18s ease, transform .18s ease; }
.amgh-cta:hover { background: var(--amgh-accent2); transform: translateY(-1px); }

.amgh__acct-btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: rgba(255,255,255,.07); border: 1px solid var(--amgh-line); border-radius: 999px; cursor: pointer; font-weight: 600; white-space: nowrap; transition: background .18s ease; }
.amgh__acct-btn:hover, .amgh__acct-btn[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.amgh__avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amgh-accent); color: #fff; font-weight: 700; font-size: 14px; }
.amgh__chev { transition: transform .2s ease; }
.amgh__acct-btn[aria-expanded="true"] .amgh__chev { transform: rotate(180deg); }
.amgh__acct.is-drop .amgh__acct-list {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; background: var(--amgh-bg2); border: 1px solid var(--amgh-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(2,6,23,.45);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.amgh__acct.is-drop.is-open .amgh__acct-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.amgh__acct.is-drop .amgh__acct-list a { display: block; padding: 11px 14px; border-radius: 8px; font-weight: 600; white-space: nowrap; color: #fff; transition: background .15s ease; }
.amgh__acct.is-drop .amgh__acct-list a:hover, .amgh__acct.is-drop .amgh__acct-list a.is-current { background: rgba(255,255,255,.09); }
.amgh__acct.is-drop .amgh__acct-list a.amgh-out { color: #fca5a5; border-top: 1px solid var(--amgh-line); border-radius: 0 0 8px 8px; margin-top: 6px; padding-top: 13px; }

/* ---------- tablet and phone: hamburger ---------- */
@media (max-width: 1099px) {
	.amgh { --amgh-h: 64px; --amgh-gutter: 18px; }
	.amgh__bar { justify-content: space-between; gap: 12px; }
	.amgh__logo { max-width: calc(100% - 64px); }
	.amgh__logo img { height: calc(var(--amgh-logo-h, 46px) * .9); }
	#amgh .amgh__logo img { height: calc(var(--amgh-logo-h, 46px) * .9) !important; max-height: calc(var(--amgh-logo-h, 46px) * .9) !important; }
	.amgh__toggle { display: inline-grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; margin-right: -8px; background: transparent; border: 0; border-radius: 10px; cursor: pointer; transition: background .15s ease; }
	.amgh__toggle:hover { background: rgba(255,255,255,.08); }
	.amgh__bars { position: relative; display: block; width: 24px; height: 18px; }
	.amgh__bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
	.amgh__bars i:nth-child(1) { top: 0; } .amgh__bars i:nth-child(2) { top: 8px; } .amgh__bars i:nth-child(3) { top: 16px; }
	.amgh__toggle[aria-expanded="true"] .amgh__bars i:nth-child(1) { top: 8px; transform: rotate(45deg); }
	.amgh__toggle[aria-expanded="true"] .amgh__bars i:nth-child(2) { opacity: 0; }
	.amgh__toggle[aria-expanded="true"] .amgh__bars i:nth-child(3) { top: 8px; transform: rotate(-45deg); }

	.amgh__menu {
		position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
		background: var(--amgh-bg); border-bottom: 1px solid var(--amgh-line); box-shadow: 0 18px 30px rgba(2,6,23,.4);
		max-height: calc(100vh - var(--amgh-h)); max-height: calc(100dvh - var(--amgh-h)); overflow-y: auto; overscroll-behavior: contain;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
	}
	.amgh.is-open .amgh__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	html:not(.amgh-js) .amgh__menu { position: static; opacity: 1; visibility: visible; transform: none; max-height: none; box-shadow: none; } /* no script: menu simply stays open under the bar */
	html:not(.amgh-js) .amgh__bar { flex-wrap: wrap; } html:not(.amgh-js) .amgh__toggle { display: none; }
	.amgh__nav { display: block; padding: 8px var(--amgh-gutter) 4px; }
	.amgh__nav ul { display: block; }
	.amgh__nav a { padding: 15px 4px; font-size: 17px; color: #fff; border-bottom: 1px solid var(--amgh-line); }
	.amgh__nav li:last-child a { border-bottom: 0; }
	.amgh__nav a::after { left: 4px; right: auto; width: 28px; bottom: 9px; }

	.amgh__acct { padding: 14px var(--amgh-gutter) 22px; background: var(--amgh-bg2); border-top: 1px solid var(--amgh-line); }
	.amgh__acct-btn { display: none; }
	.amgh__acct.is-drop .amgh__acct-list, .amgh__acct.is-inline .amgh__acct-list {
		position: static; display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: inherit; transform: none; transition: none;
	}
	.amgh__acct.is-drop .amgh__acct-list a, .amgh-link { display: block; padding: 14px 16px; font-size: 16px; text-align: center; background: rgba(255,255,255,.07); border-radius: 10px; color: #fff; }
	.amgh__acct.is-drop .amgh__acct-list a.amgh-out { margin: 4px 0 0; border-top: 0; border-radius: 10px; color: #fca5a5; background: rgba(252,165,165,.10); }
	.amgh-cta { display: block; padding: 14px 16px; font-size: 16px; text-align: center; border-radius: 10px; }
}
@media (max-width: 480px) { .amgh { --amgh-gutter: 14px; } .amgh__logo img { height: calc(var(--amgh-logo-h, 46px) * .85); } #amgh .amgh__logo img { height: calc(var(--amgh-logo-h, 46px) * .85) !important; max-height: calc(var(--amgh-logo-h, 46px) * .85) !important; } }
@media (prefers-reduced-motion: reduce) { .amgh *, .amgh *::before, .amgh *::after { transition: none !important; } }

/* ---------- never two headers: hide the older Elementor / theme header while this one is on ---------- */
body.amgh-hide-old .elementor-location-header,
body.amgh-hide-old > header#masthead, body.amgh-hide-old > header.site-header, body.amgh-hide-old > #site-header,
body.amgh-hide-old > .site > header.site-header { display: none !important; }

/* Theme / shop-page button styles must not leak into the header: the hamburger is desktop-hidden for certain, and styled by us only. */
@media (min-width: 1100px) { #amgh .amgh__toggle { display: none !important; } }
@media (max-width: 1099px) { #amgh .amgh__toggle { display: inline-grid !important; width: 46px !important; height: 46px !important; padding: 0 !important; margin: 0 -8px 0 0 !important; background: transparent !important; border: 0 !important; color: #fff !important; box-shadow: none !important; min-width: 0 !important; line-height: 1 !important; } #amgh .amgh__toggle:hover { background: rgba(255,255,255,.08) !important; } }
#amgh .amgh__acct-btn { background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.10) !important; color: #fff !important; box-shadow: none !important; text-transform: none !important; }
