/* ==========================================================================
   Ask for Indie Beer – WordPress / Elementor compatibility layer.
   The look itself lives in iba-original.css (copied verbatim from the original build).
   This file only neutralises WordPress, Hello Elementor and Elementor wrappers so the
   output renders exactly like the original React site.
   ========================================================================== */

/* Hello Elementor skip link + WP screen-reader text (theme CSS is disabled). */
.screen-reader-text,
.iba-site .sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important;
	width: auto;
	height: auto;
	top: 5px;
	left: 5px;
	z-index: 100000;
	display: block;
	padding: 12px 20px;
	background: var(--brand-cream);
	color: var(--brand-ink);
	font-weight: 700;
}

/* Elementor layout wrappers: no spacing of their own. */
.iba-site .e-con.iba-stack,
.iba-site .elementor-location-header .e-con,
.iba-site .elementor-location-footer .e-con {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--content-width: 100%;
	--container-max-width: 100%;
	--width: 100%;
	padding: 0;
	gap: 0;
	min-height: 0;
}
.iba-site .elementor-widget[class*="elementor-widget-iba-"] {
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	--kit-widget-spacing: 0px;
}
.iba-site .elementor-widget[class*="elementor-widget-iba-"] > .elementor-widget-container {
	margin: 0;
	padding: 0;
}

/* On the live site the wrappers are transparent, so the sections behave exactly as in the original DOM. */
body.iba-site:not(.elementor-editor-active) .elementor-location-header,
body.iba-site:not(.elementor-editor-active) .elementor-location-header .e-con,
body.iba-site:not(.elementor-editor-active) .elementor-location-header .e-con-inner,
body.iba-site:not(.elementor-editor-active) .elementor-location-header .elementor-widget,
body.iba-site:not(.elementor-editor-active) .elementor-location-header .elementor-widget-container {
	display: contents;
}

/* Elementor's generic img rule must not override the original image sizing. */
.iba-site .elementor .hero-stamp img { height: 90px; }
.iba-site .elementor .seal-outline img { height: 240px; }
.iba-site .elementor .footer-seal img { height: 125px; }
.iba-site .elementor .feature-image img,
.iba-site .elementor .sp-news-image img,
.iba-site .elementor .sp-trail-image img { height: 100%; }
@media (max-width: 850px) {
	.iba-site .elementor .hero-stamp img { height: 70px; }
	.iba-site .elementor .seal-outline img { height: 190px; }
}
@media (max-width: 560px) {
	.iba-site .elementor .hero-stamp img { height: 64px; }
}

/* Leaflet popup content inside Elementor keeps the original typography. */
.iba-site .elementor a.leaflet-control-zoom-in,
.iba-site .elementor a.leaflet-control-zoom-out { text-decoration: none; }

/* In the Elementor editor, keep the mobile menu closed and the map visible. */
.elementor-editor-active .iba-live-map { z-index: 0; }

/* ---------- 404 (recreates the original Tailwind card) ---------- */
.iba-404 {
	min-height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: linear-gradient(to bottom right, oklch(98.4% .003 247.858), oklch(96.8% .007 247.896));
	font-family: 'DM Sans', sans-serif;
}
.iba-404-card {
	width: 100%;
	max-width: 32rem;
	margin-inline: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	border-radius: .75rem;
	border: 0;
	padding-block: 1.5rem;
	background: color-mix(in oklab, #fff 80%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}
.iba-404-content { padding: 2rem 1.5rem; text-align: center; }
.iba-404-icon { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.iba-404-icon > div { position: relative; }
.iba-404-pulse {
	position: absolute;
	inset: 0;
	background: oklch(93.6% .032 17.717);
	border-radius: 9999px;
	animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
.iba-404-icon svg { position: relative; width: 4rem; height: 4rem; color: oklch(63.7% .237 25.331); }
.iba-404 h1 { font-size: 2.25rem; line-height: calc(2.5 / 2.25); font-weight: 700; color: oklch(20.8% .042 265.755); margin: 0; }
.iba-404 h2 { font-size: 1.25rem; line-height: calc(1.75 / 1.25); font-weight: 600; color: oklch(37.2% .044 257.287); margin: 0; }
.iba-404 p { color: oklch(44.6% .043 257.281); margin: 0; line-height: 1.625; } /* original: global h1,h2,p{margin:0} beats the Tailwind mb-* utilities */
.iba-404-actions { display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
@media (min-width: 40rem) { .iba-404-actions { flex-direction: row; } }
.iba-404-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	white-space: nowrap;
	font-size: .875rem;
	line-height: calc(1.25 / .875);
	font-weight: 500;
	color: #fff;
	background: oklch(54.6% .245 262.881);
	height: 2.25rem; /* h-9 */
	padding: .625rem .75rem; /* has-[>svg]:px-3 wins over px-6 in the original */
	border-radius: .5rem;
	box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
	transition: all .2s cubic-bezier(.4, 0, .2, 1);
}
.iba-404-button:hover { background: oklch(48.8% .243 264.376); box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.iba-404-button svg { width: 1rem; height: 1rem; margin-right: .5rem; flex-shrink: 0; }

/* ==========================================================================
   Live-site features (not in the original mock-up), styled to match it.
   ========================================================================== */

/* Contact form */
.sp-contact-form .sp-form-submit:not(:disabled) { opacity: 1; cursor: pointer; }
.sp-contact-form .sp-form-submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.sp-contact-form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 2px #b3261e22; }
.sp-contact-form .sp-form-caption:empty { display: none; }
.sp-contact-form .sp-form-caption.is-success { color: #1f6b48; font-weight: 700; }
.sp-contact-form .sp-form-caption.is-error { color: #b3261e; font-weight: 700; }
.sp-contact-form .iba-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Brewery map: popup website link, spacing when the optional note is hidden */
.iba-map-popup span:last-child:not(:has(a)) { border-top: 0; padding-top: 0; font-size: 15px; color: inherit; }
.iba-map-popup .iba-map-popup-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-blue); font-weight: 700; font-size: 14px; text-decoration: none; }
.iba-map-popup .iba-map-popup-link:hover { text-decoration: underline; }
.iba-map-shell:not(:has(.iba-map-note)) .iba-map-reset { bottom: 25px; }
.brewery-map-panel:not(:has(.iba-map-note)) .brewery-selected-card { bottom: 80px; }

/* News & events lists */
.sp-news-image { display: block; }
.sp-editorial-card h3 a,
.sp-event-card h3 a { color: inherit; text-decoration: none; }
.sp-editorial-card h3 a:hover,
.sp-event-card h3 a:hover { color: var(--sp-teal); }
.sp-editorial-card .sp-card-foot .sp-text-link { margin-top: 0; }
.sp-empty-note { padding: 1.3rem 0; }

/* Single story / event */
.sp-article .sp-intro { padding-bottom: 2rem; }
.sp-article .sp-intro h1 { font-size: clamp(3rem, 6.5vw, 5.6rem); }
.sp-article-meta { display: flex; align-items: center; gap: 8px; color: var(--sp-muted); font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.sp-article-meta svg { color: var(--sp-teal); flex: 0 0 auto; }
.sp-page .sp-article-image { display: block; margin: 0 0 2.6rem; max-height: 560px; overflow: hidden; background: #d7d9cd; }
.sp-article-image img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.sp-article-body { max-width: 760px; color: #3d3837; font-size: 18px; line-height: 1.8; }
.sp-article-body > * + * { margin-top: 1.15em; }
.sp-article-body h2, .sp-article-body h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; line-height: .95; color: var(--sp-ink); margin-top: 1.6em; }
.sp-article-body h2 { font-size: 2.6rem; }
.sp-article-body h3 { font-size: 2rem; }
.sp-article-body a { color: var(--sp-teal); text-decoration: underline; text-underline-offset: 3px; }
.sp-article-body ul { list-style: disc; padding-left: 1.4em; }
.sp-article-body ol { list-style: decimal; padding-left: 1.4em; }
.sp-article-body blockquote { border-left: 3px solid var(--sp-gold); padding-left: 1.2em; font-style: italic; }
.sp-article-body img { height: auto; }
.sp-article-body figure { margin-left: 0; margin-right: 0; }
.sp-article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--sp-line); max-width: 760px; }
.sp-article-actions .sp-text-link { margin-top: 0; }

/* Who owns your beer – final poster */
.sp-poster-final { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.sp-poster-final img { width: 100%; max-width: 900px; height: auto; box-shadow: 0 16px 42px #20252118; }
.sp-poster-download { margin-top: 1.4rem; }

/* ==========================================================================
   Client changes (Nov 2026)
   ========================================================================== */

/* No asterisk on the seal illustration */
.iba-site .seal-outline::before { content: none; display: none; }

/* Home hero: simple image banner */
.hero-banner { background: var(--brand-paper); padding: 40px 0 46px; }
.hero-banner-frame { overflow: hidden; border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .08); background: #eef0ea; }
.hero-banner-frame a { display: block; }
.hero-banner-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
	.hero-banner { padding: 22px 0 26px; }
	.hero-banner-frame { border-radius: 6px; }
}

/* About: one simple story block */
.iba-story-block-section { padding: 70px 0 80px; background: #F5EBD7; border-top: 1px solid rgba(22, 19, 21, .1); }
.iba-story-block { max-width: 880px; margin: 0 auto; padding: 56px 64px; background: #fff; border: 1px solid rgba(22, 19, 21, .1); border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .04); text-align: center; }
.iba-story-block h2,
.iba-story-block h3 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; color: var(--brand-black); margin: 2.2rem 0 .9rem; }
.iba-story-block h3 { font-size: clamp(22px, 2.2vw, 28px); }
.iba-story-block > :first-child { margin-top: 0; }
.iba-story-block p { max-width: 700px; margin: 0 auto 1.1rem; font-size: 17px; line-height: 1.75; color: #383838; }
.iba-story-block p:last-child { margin-bottom: 0; }
.iba-story-block a { color: var(--brand-teal); text-decoration: underline; text-underline-offset: 3px; }
.iba-story-block ul, .iba-story-block ol { display: inline-block; text-align: left; margin: 0 auto 1.1rem; padding-left: 1.3em; font-size: 17px; line-height: 1.75; color: #383838; }
.iba-story-block ul { list-style: disc; }
.iba-story-block ol { list-style: decimal; }
.iba-story-block img { height: auto; margin: 1rem auto; }
@media (max-width: 600px) {
	.iba-story-block-section { padding: 44px 0 50px; }
	.iba-story-block { padding: 32px 22px; }
	.iba-story-block p { font-size: 16px; }
}

/* Announcement bar with only one text: keep it visible on mobile
   (the original hides the right-hand span, which is now the only one). */
.utility-inner span:only-child { display: inline; }

/* Announcement bar text centred (client request) */
.utility-inner.is-centered { justify-content: center; text-align: center; }

/* Map credit: collapsed into a barely-visible ghost button in the bottom-right corner */
.leaflet-container .iba-attrib-compact { display: inline-flex; align-items: center; gap: 5px; margin: 0 6px 4px 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 10px !important; line-height: 1.4 !important; color: rgba(22, 19, 21, .75); }
.leaflet-container .iba-attrib-compact .iba-attrib-text { display: none; }
.leaflet-container .iba-attrib-compact .iba-attrib-text a { color: inherit; }
.leaflet-container .iba-attrib-compact .iba-attrib-btn { width: 16px; height: 16px; border: 0; border-radius: 50%; background: transparent; color: rgba(22, 19, 21, .08); font-family: Georgia, serif; font-style: italic; font-size: 10px; line-height: 1; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .2s ease, background-color .2s ease; }
.leaflet-container .iba-attrib-compact .iba-attrib-btn:hover,
.leaflet-container .iba-attrib-compact .iba-attrib-btn:focus-visible { color: rgba(22, 19, 21, .75); background: rgba(255, 255, 255, .85); }
.leaflet-container .iba-attrib-compact.is-open { padding: 2px 7px !important; background: rgba(255, 255, 255, .92) !important; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .14) !important; }
.leaflet-container .iba-attrib-compact.is-open .iba-attrib-text { display: inline; }
.leaflet-container .iba-attrib-compact.is-open .iba-attrib-btn { color: rgba(22, 19, 21, .65); background: rgba(22, 19, 21, .06); }

/* Mailchimp "Join the Fight" form on Contact page (migrated from GHL) */
.iba-mc-card { padding: 2.5rem; background: var(--sp-paper); border: 1px solid var(--sp-line); border-radius: 6px; }
#mc_embed_shell,
#mc_embed_signup { width: 100%; max-width: 100%; background: transparent; font-family: inherit; }
#mc_embed_signup form { margin: 0; padding: 0; }
#mc_embed_signup h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(28px, 3vw, 36px); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: -.015em; color: var(--brand-black); margin: .45rem 0 .4rem; }
#mc_embed_signup .indicates-required { font-size: 12px; color: var(--sp-muted); margin-bottom: 18px; }
#mc_embed_signup .asterisk { color: #b3261e; font-weight: 700; }
#mc_embed_signup .iba-mc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#mc_embed_signup .mc-field-group { margin-bottom: 16px; width: 100%; }
#mc_embed_signup .mc-field-group label,
#mc_embed_signup .mc-field-group.input-group strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-black); margin-bottom: 6px; }
#mc_embed_signup .mc-field-group input.text,
#mc_embed_signup .mc-field-group input.email { display: block; width: 100%; padding: 12px 14px; border: 1px solid #d9d8cc; border-radius: 4px; background: #fffefa; color: var(--brand-black); font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 400; box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease; }
#mc_embed_signup .mc-field-group input.text:focus,
#mc_embed_signup .mc-field-group input.email:focus { outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(0, 128, 199, .14); }
#mc_embed_signup .mc-field-group.input-group strong { margin-bottom: 10px; }
#mc_embed_signup .mc-field-group.input-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
#mc_embed_signup .mc-field-group.input-group li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
#mc_embed_signup .mc-field-group.input-group input[type="radio"] { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; accent-color: var(--brand-black); cursor: pointer; }
#mc_embed_signup .mc-field-group.input-group li label { display: inline; margin: 0; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: normal; color: #2b292a; cursor: pointer; }
#mc_embed_signup #mc-embedded-subscribe { display: inline-flex; align-items: center; justify-content: center; margin-top: 6px; padding: 14px 28px; border: 0; border-radius: 4px; background: var(--brand-black); color: #fff; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
#mc_embed_signup #mc-embedded-subscribe:hover,
#mc_embed_signup #mc-embedded-subscribe:focus-visible { background: var(--brand-gold); color: var(--brand-black); }
#mc_embed_signup #mce-responses { margin: 8px 0 4px; }
#mc_embed_signup .response { font-size: 14px; line-height: 1.5; padding: 10px 14px; border-radius: 4px; margin-bottom: 10px; }
#mc_embed_signup #mce-error-response { background: #fdf2f2; color: #b3261e; border: 1px solid #f5c2c0; }
#mc_embed_signup #mce-success-response { background: #edf7f1; color: #1f6b48; border: 1px solid #b7e1c9; font-weight: 600; }
#mc_embed_signup div.mce_inline_error { margin: 6px 0 0; padding: 0; background: transparent; color: #b3261e; font-size: 13px; font-weight: 600; }
#mc_embed_signup input.mce_inline_error { border-color: #b3261e !important; }
@media (max-width: 720px) {
	.iba-mc-card { padding: 1.4rem; }
	#mc_embed_signup .iba-mc-pair { grid-template-columns: 1fr; gap: 0; }
}
