/* =====================================================================
   IAFF Local 2956 under Avada.
   iaff.css is the approved brand design. Pages are Avada pages whose sections each hold the
   original section markup in one text block (.iaff-av-raw), so the design's own spacing applies
   untouched. This file only (1) makes Avada's wrappers invisible around those sections,
   (2) styles the Avada header, (3) lays out the news-post body, and (4) keeps Avada's form
   colours off the contact form. Loaded after Avada's own stylesheet.
   ===================================================================== */

/* ---------- Page ground ---------- */
html, body.iaff-site, body.iaff-site #wrapper, body.iaff-site #main, body.iaff-site .fusion-wrapper { background: #0b0b0b !important; }
body.iaff-site #main { padding: 0 !important; }
body.iaff-site #main > .fusion-row { max-width: none !important; padding: 0 !important; }
body.iaff-site .fusion-layout-column { margin-top: 0 !important; margin-bottom: 0 !important; }
body.iaff-site .fusion-layout-column > .fusion-column-wrapper { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }

/* Avada-built sections (header, post body): same column and side margins as the original .iaff-container. */
body.iaff-site .fusion-fullwidth:not(.iaff-av-raw) { padding-left: var(--iaff-gutter) !important; padding-right: var(--iaff-gutter) !important; }
body.iaff-site .fusion-fullwidth:not(.iaff-av-raw) > .fusion-row { width: 100%; max-width: calc(var(--iaff-max) - 2 * var(--iaff-gutter)) !important; margin-left: auto !important; margin-right: auto !important; padding: 0 !important; }

/* ---------- Original-design sections (.iaff-av-raw): Avada's wrappers made invisible ---------- */
body.iaff-site .fusion-fullwidth.iaff-av-raw { padding: 0 !important; margin: 0 !important; position: relative; border: 0 !important; }
body.iaff-site .fusion-fullwidth.iaff-av-raw > .fusion-row { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; display: block; }
body.iaff-site .iaff-av-raw > .fusion-row > .fusion-layout-column,
body.iaff-site .iaff-av-raw > .fusion-row > .fusion-layout-column > .fusion-column-wrapper,
body.iaff-site .iaff-av-raw > .fusion-row > .fusion-layout-column > .fusion-column-wrapper > .fusion-text { position: static !important; display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; transform: none !important; }
body.iaff-site .iaff-av-raw .fusion-text { font-size: inherit; line-height: inherit; color: inherit; }

/* ---------- Header (Avada layout, so the menu stays editable under Appearance > Menus) ---------- */
.fusion-tb-header { position: fixed !important; top: 0; left: 0; right: 0; z-index: 999; transition: background-color .4s, transform .5s cubic-bezier(.2,.7,.2,1), backdrop-filter .4s; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
body.admin-bar .fusion-tb-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .fusion-tb-header { top: 46px; } }
.fusion-tb-header.is-scrolled { background: rgba(11,11,11,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.fusion-tb-header.is-hidden { transform: translateY(-100%); }
.fusion-tb-header .fusion-fullwidth { background: transparent !important; }
.fusion-tb-header.is-scrolled .iaff-util-bar { max-height: 0; opacity: 0; border-color: transparent; } /* strip folds away after scrolling, as before */
.iaff-av-util a { color: #fff !important; }
.iaff-av-util .iaff-util-em a { color: #ff3b3b !important; }
.iaff-av-nav .fusion-row { min-height: 84px; }
.iaff-av-logo img { width: 162px; height: auto; }
.iaff-av-menu .awb-menu__main-a { font-family: Inter, sans-serif !important; }
.iaff-av-contact.fusion-button, .iaff-av-contact .fusion-button { padding: 13px 24px !important; font-size: 12px !important; letter-spacing: .14em !important; line-height: 14px !important; border-radius: 0 !important; box-shadow: 0 10px 30px -10px rgba(225,29,29,.7) !important; }
.iaff-av-menu .awb-menu__main-a { font-family: Inter, system-ui, sans-serif !important; }
@media (min-width: 1025px) { .iaff-av-menu .iaff-menu-phone-only { display: none !important; } }
@media (max-width: 1024px) {
	.iaff-av-contact { display: none !important; }
	.iaff-av-nav .fusion-row { min-height: 70px; }
	.iaff-av-logo img { width: 150px; }
}

/* ---------- Footer (Avada layout holding the original footer) ---------- */
.fusion-tb-footer { background: transparent; }

/* ---------- Contact form: keep the dark fields over Avada's own form colours ---------- */
body.iaff-site .iaff-form-card .gform_wrapper input[type=text],
body.iaff-site .iaff-form-card .gform_wrapper input[type=email],
body.iaff-site .iaff-form-card .gform_wrapper input[type=tel],
body.iaff-site .iaff-form-card .gform_wrapper textarea { background-color: #0a0a0a !important; color: #fff !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 0 !important; height: auto !important; box-shadow: none; }
body.iaff-site .iaff-form-card .gform_wrapper select { background: #0a0a0a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e11d1d' stroke-width='2'/%3E%3C/svg%3E") right 16px center no-repeat !important; color: #fff !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 0 !important; height: auto !important; padding-right: 44px !important; }
body.iaff-site .iaff-form-card .gform_wrapper input:focus,
body.iaff-site .iaff-form-card .gform_wrapper select:focus,
body.iaff-site .iaff-form-card .gform_wrapper textarea:focus { border-color: #ff3b3b !important; background-color: #0d0d0d !important; box-shadow: 0 0 0 3px rgba(225,29,29,.18) !important; }
body.iaff-site .iaff-form-card .gform_wrapper .gfield_label, body.iaff-site .iaff-form-card .gform_wrapper legend { color: #fff !important; }
body.iaff-site .iaff-form-card .select-arrow { display: none !important; }

/* Home news cards: same centred 1280px column the original layout gave them. */
body.iaff-site .iaff-news-loop-wrapper > * { max-width: min(1280px, calc(var(--iaff-max) - 2 * var(--iaff-gutter))); margin-left: auto !important; margin-right: auto !important; }

/* The original page layout put a 24px gap between sections and between a news card's image and text. */
/* Applied to the section itself at zero strength (as the original layout did), so a section's own margin still wins. */
:where(body.iaff-site .fusion-fullwidth.iaff-av-raw + .fusion-fullwidth.iaff-av-raw .iaff-raw-html > :first-child) { margin-block-start: 24px; }
body.iaff-site .iaff-news-loop-wrapper .iaff-news-body, body.iaff-site .iaff-news-archive .iaff-news-body { margin-top: 24px; }
/* The original page layout also left a 24px gap between the page and the footer. */
body.iaff-site .fusion-tb-footer { margin-top: 24px; }
/* News list page: same column as the original. */
body.iaff-site .iaff-news-archive > * { max-width: min(1280px, calc(var(--iaff-max) - 2 * var(--iaff-gutter))); margin-left: auto !important; margin-right: auto !important; }



/* The original layout starts the page 24px down (behind the fixed header). */
body.iaff-site #main { padding-top: 24px !important; }
body.iaff-site #content { margin-bottom: 0 !important; } /* Avada adds 50px here on phones */

/* Phone menu: the original round button + full-screen panel (includes/phone-menu.php) replace Avada's dropdown. */
.iaff-av-menu .awb-menu__m-toggle { display: none !important; }
.iaff-av-phone-btn { display: none; margin: 0 !important; }
@media (max-width: 1024px) {
	.iaff-av-phone-btn { display: block; }
	.fusion-tb-header .iaff-menu-toggle { display: inline-flex !important; }
	.iaff-av-menu { display: none !important; }
}

/* Home "View all news" strip: on the original it directly followed the news cards, which gave it this padding. */
body.iaff-site .iaff-section.iaff-section--news-cta { padding-top: 40px; padding-bottom: 110px; }
/* Home Instagram button: the original had 16px more space under it. */
body.iaff-site .iaff-ig-cta { margin-bottom: 16px; }
/* Contact form: the original 10px under each field label (Avada's form styles remove it) and the original message-box height. */
body.iaff-site .iaff-form-card .gform_wrapper .gfield_label { margin-bottom: 10px !important; }
body.iaff-site .iaff-form-card .gform_wrapper textarea { height: 192px !important; }
body.iaff-site .iaff-form-card .gform_wrapper textarea { display: inline-block !important; vertical-align: baseline; }
body.iaff-site .iaff-form-card .gform_wrapper .gform_button { margin-bottom: 8px !important; }

/* Footer "Get in touch" button: under the big statement on every screen (Joseph, 2026-11-08). Phones keep the full-width bar. */
@media (min-width: 961px) { body.iaff-site .iaff-footer-statement { grid-template-columns: 1fr; gap: 36px; } }
@media (min-width: 641px) { body.iaff-site .iaff-footer-statement .iaff-btn { justify-self: start; } }

/* Member login link (top strip + footer), 2026-11-08 */
body.iaff-site .iaff-util-members { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; }
body.iaff-site .iaff-util-members:hover { color: #ff5a5a; }
body.iaff-site .iaff-util-members svg { opacity: .8; }
body.iaff-site .iaff-footer-members { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
body.iaff-site .iaff-footer-members:hover { color: #fff; text-decoration-color: #e11d1d; }

/* Phones: keep the top strip on one line now that it carries Member login */
@media (max-width: 600px) {
	body.iaff-site .iaff-util-right { gap: 9px; white-space: nowrap; font-size: 0; }
	body.iaff-site .iaff-util-right > span:not(.iaff-util-sep) { font-size: 0; }
	body.iaff-site .iaff-util-right > span:not(.iaff-util-sep) a,
	body.iaff-site .iaff-util-right .iaff-util-members { font-size: 11px; }
	body.iaff-site .iaff-util-right > span:not(.iaff-util-sep):not(.iaff-util-em)::before { content: "Non-emerg.\00a0"; font-size: 11px; color: rgba(255, 255, 255, .6); }
	body.iaff-site .iaff-util-inner { justify-content: center; }
}
@media (max-width: 380px) {
	body.iaff-site .iaff-util-right > span:not(.iaff-util-sep):not(.iaff-util-em)::before { content: none; }
}
