/* Footer trim and social links (30 Sep 2026). The owner kept the original footer design (styles.css,
   responsive.css, alignment.css) but asked for it about 20-25% shorter, with Facebook and Instagram
   buttons under the tagline. Loaded last, so these override the original spacing only. */

.footer { padding-top: 36px; }
.footer-top { padding-bottom: 30px; }
.footer-top h2 { font-size: 28px; }
.footer-details { padding-block: 28px; }
.footer-details h3 { margin-bottom: 8px; }
.footer-details address, .footer-details p, .footer-details li { line-height: 1.7; }
.footer-bottom { padding-block: 15px; }

.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social-link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #c9d8de; border-radius: 50%; color: var(--deep); transition: background .2s, border-color .2s; }
.footer-social-link:hover { background: #fff; border-color: var(--blue); text-decoration: none !important; }
.footer-social-link .icon { width: 18px; height: 18px; stroke-width: 1.6; }

/* Phones: one self-contained set of rules. The #footer prefix outranks the older phone footer rules
   in responsive.css and alignment.css (e.g. .footer-details a { display:inline-flex; min-height:44px }),
   which made spacing uneven and pushed the social icons off-centre. Every row is the same height;
   tap targets rely on WCAG 2.2's spacing allowance (rows at least 24px apart). */
@media (max-width: 600px) {
  #footer .footer { padding-top: 28px; }
  #footer .footer-top { padding-bottom: 22px; }
  #footer .footer-top h2 { font-size: 25px; }
  #footer .footer-top .actions { margin-top: 16px; }

  #footer .footer-details { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 22px; padding-block: 24px; font-size: 14px; }
  #footer .footer-details > .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  #footer .footer-brand img { width: 88px; height: 37px; }
  #footer .footer-brand p { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; font-size: 13px; line-height: 1.5; max-width: none; }
  #footer .footer-social { grid-column: 2; grid-row: 1; gap: 8px; margin: 0; }
  #footer .footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; padding: 0; }
  #footer .footer-social-link .icon { width: 17px; height: 17px; }

  #footer .footer-details h3 { font-size: 15px; margin-bottom: 6px; min-height: 0; }
  #footer .footer-details h3 small { font-size: 12px; margin-top: 1px; }
  #footer .footer-details address, #footer .footer-details li { font-size: 14px; line-height: 1.6; }
  #footer .footer-details ul { display: grid; gap: 4px; }
  #footer .footer-details a:not(.footer-social-link) { display: inline-flex; align-items: center; min-height: 0; padding: 0; }
  #footer .footer-details .text-link.small { margin-top: 8px; gap: 8px; }
  #footer .footer-details > div:last-child { grid-column: 1 / -1; }

  #footer .footer-bottom { display: block; padding-block: 16px 20px; font-size: 12px; }
  #footer .footer-bottom span { display: block; margin-top: 0; }
  #footer .footer-bottom .footer-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 6px; line-height: 1.4; }
  #footer .footer-bottom .footer-links a { display: inline-block; padding-block: 3px; }
}
