/* Footer – responsive rework
   Loaded after the theme's style.css and custom.css. Matches the theme's own
   breakpoints (992px, 600px) and adds a small-laptop step at 993–1199px.

   ≥1200px      theme default: about | quick links | contact | certificates
   993–1199px   tighter columns, smaller certificates, email kept on one line
   601–992px    about block as a full-width row, then links | contact | certificates
   ≤600px       centred about block, links + contact side by side,
                certificates in one centred row, centred bottom bar           */

/* the e-mail address should never split mid-word */
.site-footer .footer-contact a[href^="mailto:"]{white-space:nowrap}

/* ---------- small laptop ---------- */
@media (min-width:993px) and (max-width:1199px){
  .site-footer .footer-grid{grid-template-columns:1.5fr 1fr 1.3fr auto;column-gap:32px}
  .site-footer .footer-certificates{grid-template-columns:repeat(2,64px);gap:12px}
  .site-footer .footer-certificates img{width:64px}
}

/* ---------- tablet ---------- */
@media (min-width:601px) and (max-width:992px){
  .site-footer .footer-grid{grid-template-columns:1fr 1fr auto;column-gap:40px;row-gap:36px}

  /* about: logo · tagline · social icons in one row */
  .site-footer .footer-about{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;
    padding-bottom:28px;border-bottom:1px solid rgba(74,178,74,.2)}
  .site-footer .footer-about>.footer-logo{margin-bottom:0}
  .site-footer .footer-about>p{margin:0;max-width:none;flex:1 1 auto}
  .site-footer .footer-social{margin-top:0}

  .site-footer .footer-certificates{grid-template-columns:repeat(2,64px);gap:12px;justify-content:end}
  .site-footer .footer-certificates img{width:64px}

  /* bottom bar: copyright left, policy links right */
  .site-footer .footer-bottom{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;text-align:left;padding:14px 0}
  .site-footer .footer-bottom p,
  .site-footer .footer-bottom .footer-policy li{margin:0}
}

/* ---------- phone ---------- */
@media (max-width:600px){
  .site-footer .footer-grid{grid-template-columns:1fr 1fr;column-gap:20px;row-gap:32px}

  /* about: centred */
  .site-footer .footer-about{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;text-align:center;
    padding-bottom:28px;border-bottom:1px solid rgba(74,178,74,.2)}
  .site-footer .footer-about>.footer-logo{margin-bottom:12px}
  .site-footer .footer-about>p{margin:0}
  .site-footer .footer-social{justify-content:center;margin-top:16px}

  /* quick links + contact side by side, slightly smaller text */
  .site-footer h4{margin-bottom:14px}
  .site-footer ul li{margin-bottom:10px}
  .site-footer ul li a,
  .site-footer .footer-contact p{font-size:13px}
  .site-footer .footer-contact p{margin:0 0 10px}
  .site-footer .footer-contact a[href^="mailto:"]{white-space:normal;overflow-wrap:anywhere}

  /* certificates: one centred row of four */
  .site-footer .footer-certificates{grid-column:1/-1;grid-template-columns:repeat(4,56px);gap:16px;justify-content:center}
  .site-footer .footer-certificates img{width:56px}

  /* bottom bar: centred, policy links centred under the copyright */
  .site-footer .footer-divider{margin:28px 0 16px}
  .site-footer .footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:6px;padding-bottom:12px}
  .site-footer .footer-bottom p{margin:0;font-size:12px}
  .site-footer .footer-bottom .footer-policy{justify-content:center;gap:20px}
  .site-footer .footer-bottom .footer-policy li{list-style:none}
}
