/* Footer, 3 Nov (Vandana): tablet = logo + Contact on the same row, then Services and Company;
   phone = logo, intro and social first, then Services and Company as collapsible sections, Contact last. */
.ftr-acc__btn{all:unset;display:block;cursor:default}
.ftr-acc__btn svg{display:none}
.ftr-acc__btn:focus-visible{outline:3px solid var(--amber);outline-offset:4px;border-radius:6px}

/* 4 Nov (Vandana): tablet (every iPad, up to the 13" iPad Pro at 1032 px) = the DHB logo, intro and social icons centred on the first row,
   then Services, Company and Contact side by side on one row, in a slightly smaller font */
@media (min-width:561px) and (max-width:1180px){
  .ftr__grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"brand brand brand" "svc co contact";gap:36px 24px}
  .ftr__grid>div:nth-child(1){text-align:center;max-width:520px;margin:0 auto;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.12)}
  .ftr__grid>div:nth-child(1) .logo{justify-content:center}
  .ftr__grid>div:nth-child(1) .social{justify-content:center}
  .ftr h4{font-size:14.5px;margin-bottom:12px}
  .ftr ul{font-size:14px}
  .ftr ul a{padding:7px 0}
  /* 4 Nov (2): Services, Company and Contact centred too, like the logo row */
  .ftr__grid>div:nth-child(2),.ftr__grid>div:nth-child(3),.ftr__grid>div:nth-child(4){text-align:center}
  .ftr-acc__btn{width:100%;text-align:center}
}

@media (max-width:560px){
  .ftr__grid{grid-template-columns:1fr;grid-template-areas:"brand" "svc" "co" "contact";gap:0}
  .ftr__grid>div:nth-child(1){padding-bottom:28px}
  .ftr-acc{border-top:1px solid rgba(255,255,255,.12)}
  .ftr-acc:last-of-type{border-bottom:1px solid rgba(255,255,255,.12)}
  .ftr .ftr-acc h4{margin:0}
  .ftr-acc__btn{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;min-height:54px;cursor:pointer;color:#ffffff;font:600 16px/1 var(--text)}
  .ftr-acc__btn svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
  .ftr-acc.is-open .ftr-acc__btn svg{transform:rotate(180deg)}
  .ftr-acc ul{display:none;padding:0 0 14px 2px}
  .ftr-acc.is-open ul{display:grid}
  .ftr__grid>div:nth-child(4){padding-top:26px}
  .ftr__grid>div:nth-child(4) h4{margin-bottom:12px}
}

/* the tablet layout above also covers the large iPads (861-1180 px), where the phone rules that name the columns don't apply */
@media (min-width:861px) and (max-width:1180px){
  .ftr__grid>div:nth-child(1){grid-area:brand}
  .ftr__grid>div:nth-child(2){grid-area:svc}
  .ftr__grid>div:nth-child(3){grid-area:co}
  .ftr__grid>div:nth-child(4){grid-area:contact}
  .ftr__grid{max-width:860px;margin:0 auto}
}
