/* ==========================================================================
   footer.css — desktop footer layout

   Loaded after responsive.min.css and BEFORE mobile.css, so the phone-width
   rules in mobile.css still win at the sizes they target.

   Everything here is scoped to "section.footer", so no other part of the site
   can be affected. To roll back, delete the one <link> in header.php and
   revert footer.php — nothing else depends on this file.

   What it corrects, measured on the current footer at 1440px:
     - the logo column was 425px wide holding 176px of text, leaving a 261px
       gap between the address and the first link column
     - the three link columns came out 208 / 208 / 116px, because the first
       two carried pr-10 and the third carried nothing while
       justify-content:space-between distributed the remainder
     - the gaps between those columns were 146-147px, wider than the 168px of
       text inside them, so they read as three unrelated lists
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. THE GRID
   Four columns on one track definition, so the three link lists are always
   identical in width. The brand column gets a slightly larger share because
   it holds the address, but it is capped so it cannot open up the chasm the
   old is-4 column did.
   -------------------------------------------------------------------------- */
section.footer .footer-grid {
	display: grid;
	grid-template-columns: minmax(200px, 1.15fr) repeat(3, minmax(0, 1fr));
	gap: 2.25rem 3rem;
	align-items: start;
}

section.footer .footer-brand .logo {
	height: 2.2rem;
	display: block;
	margin-bottom: 1.25rem;
}
section.footer .footer-brand .logo img { max-height: 100%; }

section.footer .footer-brand p {
	line-height: 1.75;
}


/* --------------------------------------------------------------------------
   2. THE LINK LISTS
   Bulma gives .navbar-item 0.5rem 0.75rem of padding, and custom.min.css adds
   another 0.5rem of margin-bottom, which made each 13px link occupy a 41px
   row. Six links came to 288px of column height. Tightening the row to about
   27px keeps the list comfortable and takes roughly 80px off the footer.

   The padding override needs !important because custom.min.css already uses
   it on the .tel and .email items to make room for their icons; without it
   those two rows would keep the old spacing and the column would look ragged.
   The left padding those icons rely on is preserved below.
   -------------------------------------------------------------------------- */
section.footer .footer-grid ul {
	margin: 0;
	list-style: none;
}

/* The row pitch comes from THREE places stacked on top of each other, which
   is why the old rows were ~41px for 13px text: Bulma pads the <li> (it also
   carries .navbar-item), the <a> sits inside that, and custom.min.css adds
   0.5rem of margin under the <a>. Zeroing the <li> is what actually shortens
   the row — padding the <a> alone makes it taller. */
section.footer .footer-grid ul li.navbar-item {
	margin: 0;
	padding: 0;
}

section.footer .footer-grid ul li a.navbar-item {
	display: block;
	padding: 0.25rem 0 !important;
	margin-bottom: 0 !important;
	line-height: 1.5;
}

/* The phone and email rows carry an icon in a :before pinned to the left, so
   they keep their indent. Only the vertical padding is tightened. */
section.footer .footer-grid li.tel a.navbar-item,
section.footer .footer-grid li.email a.navbar-item {
	padding-left: 2rem !important;
	padding-top: 0.3rem !important;
	padding-bottom: 0.3rem !important;
}

/* Column headings */
section.footer .footer-grid ul .title {
	margin-bottom: 0.75rem !important;
	letter-spacing: 0.01em;
}

/* A hover state the links did not previously have */
section.footer .footer-grid ul li a.navbar-item:hover,
section.footer .footer-grid ul li a.navbar-item:focus-visible {
	color: #db0079;
}


/* --------------------------------------------------------------------------
   3. THE BOTTOM BAR
   The copyright line and the social icons previously sat on an unmarked row
   below a large gap. A hairline rule ties them to the columns above and gives
   the legal text somewhere to belong. Wording and links are unchanged.
   -------------------------------------------------------------------------- */
section.footer .copyright {
	margin-top: 2.75rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	flex-wrap: wrap;
	gap: 1rem 2rem;
}

section.footer .copyright small {
	line-height: 1.7;
}


/* --------------------------------------------------------------------------
   4. SOCIAL BUTTONS
   They rendered 20x23px as bare glyphs. Circling them makes them read as
   controls and gives a 38px target on desktop, 44px on touch.
   -------------------------------------------------------------------------- */
section.footer .socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

section.footer .socials a {
	width: 38px;
	height: 38px;
	margin-right: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

section.footer .socials a:hover,
section.footer .socials a:focus-visible {
	border-color: #db0079;
	background-color: rgba(219, 0, 121, 0.12);
}


/* --------------------------------------------------------------------------
   5. NARROWER SCREENS
   The old footer went from four columns straight to a single stack at 1024px,
   because Bulma's .columns only run horizontally on desktop. The grid gives
   it an intermediate step instead.
   -------------------------------------------------------------------------- */

/* Laptops and tablets: the brand block takes a full row and the three lists
   stay side by side underneath. A two-by-two arrangement was tried here first
   and came out 221px taller than what it replaced, which is the wrong trade
   on a short window. */
@media screen and (max-width: 1023px) {
	section.footer .footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem 2.5rem;
	}
	section.footer .footer-brand {
		grid-column: 1 / -1;
	}
}

/* Phones: one column. */
@media screen and (max-width: 600px) {
	section.footer .footer-grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
	section.footer .copyright {
		justify-content: flex-start;
		margin-top: 2rem !important;
	}
	section.footer .socials a {
		width: 44px;
		height: 44px;
	}
}
